mirror of
https://github.com/OMGeeky/ATCS.git
synced 2026-01-06 19:45:31 +01:00
Fixed export issue zhere the loadresources.xml file couldn't be created
because its parent folder do not exist.
This commit is contained in:
@@ -1290,6 +1290,9 @@ public class Project implements ProjectTreeNode, Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Transformer transformer = TransformerFactory.newInstance().newTransformer();
|
Transformer transformer = TransformerFactory.newInstance().newTransformer();
|
||||||
|
if (!outputFile.getParentFile().exists()) {
|
||||||
|
outputFile.getParentFile().mkdirs();
|
||||||
|
}
|
||||||
Result output = new StreamResult(new FileOutputStream(outputFile));
|
Result output = new StreamResult(new FileOutputStream(outputFile));
|
||||||
Source input = new DOMSource(doc);
|
Source input = new DOMSource(doc);
|
||||||
transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
|
transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
|
||||||
|
|||||||
Reference in New Issue
Block a user