\r
**/\r
public static void main(String[] args) {\r
- // TODO Auto-generated method stub\r
-\r
+ \r
+ }\r
+ \r
+ private static void createDirectory(String path) throws Exception {\r
+ File f = new File(path);\r
+ path = f.getParent();\r
+ FileOperation.newFolder(path);\r
}\r
\r
/**\r
\r
**/\r
public static void saveMsaFile(String path, ModuleSurfaceArea msa) throws Exception {\r
+ //\r
+ // Create the file's directory first\r
+ //\r
+ createDirectory(path);\r
+ \r
//\r
// Remove all empty top level elements\r
//\r
\r
**/\r
public static void saveSpdFile(String path, PackageSurfaceArea spd) throws Exception {\r
+ //\r
+ // Create the file's directory first\r
+ //\r
+ createDirectory(path);\r
+ \r
PackageSurfaceAreaDocument spdDoc = PackageSurfaceAreaDocument.Factory.newInstance();\r
File f = new File(path);\r
\r
\r
**/\r
public static void saveFpdFile(String path, PlatformSurfaceArea fpd) throws Exception {\r
+ //\r
+ // Create the file's directory first\r
+ //\r
+ createDirectory(path);\r
+ \r
PlatformSurfaceAreaDocument fpdDoc = PlatformSurfaceAreaDocument.Factory.newInstance();\r
File f = new File(path);\r
\r