mirror of
https://github.com/OMGeeky/ATCS.git
synced 2025-12-26 23:57:25 +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();
|
||||
if (!outputFile.getParentFile().exists()) {
|
||||
outputFile.getParentFile().mkdirs();
|
||||
}
|
||||
Result output = new StreamResult(new FileOutputStream(outputFile));
|
||||
Source input = new DOMSource(doc);
|
||||
transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
|
||||
|
||||
Reference in New Issue
Block a user