Skip to content

Commit

Permalink
fix for windows compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudenw committed May 25, 2024
1 parent 7bb8b02 commit 215097e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public static void main(String[] args) throws IOException {
List<AntOption> options = OptionCollection.buildOptions().getOptions().stream().filter(ANT_FILTER).map(AntOption::new)
.collect(Collectors.toList());

File file = new File(new File(new File(destDir), packageName.replaceAll("\\.", File.separator)),className+".java");
System.out.println("Creating "+file);
String pkgName = String.join(File.separator,new CasedString(StringCase.DOT, packageName).getSegments());
File file = new File(new File(new File(destDir), pkgName),className+".java");
file.getParentFile().mkdirs();
try (InputStream template = AntGenerator.class.getResourceAsStream("/Ant.tpl");
FileWriter writer = new FileWriter(file);
Expand Down

0 comments on commit 215097e

Please sign in to comment.