private static void processDir( Args theArgs ) throws Exception {
String fileData = generateXML( theArgs.inputDir, theArgs.id );
File outDir = new File(theArgs.outputDir);
if (!outDir.exists()) {
outDir.mkdirs();
}
File outputFile = new File(outDir, "archetype.xml");
PrintWriter writer = new PrintWriter(new FileOutputStream(outputFile));
try {
writer.print( fileData );
} finally {
writer.close();
}
}
java code processDir
最新推荐文章于 2024-11-03 11:01:20 发布