Skip to content

Commit 79df593

Browse files
author
joeretro
committed
Fix for windows path separator (By Magne Rasmussen)
1 parent 119fcf2 commit 79df593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generator/org/hamcrest/generator/config/XmlConfigurator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static void main(String[] args) throws Exception {
7373
String fullClassName = args[1];
7474
File outputDir = new File(args[2]);
7575

76-
String fileName = fullClassName.replaceAll("\\.", File.separator) + ".java";
76+
String fileName = fullClassName.replace('.', File.separatorChar) + ".java";
7777
int dotIndex = fullClassName.lastIndexOf(".");
7878
String packageName = dotIndex == -1 ? "" : fullClassName.substring(0, dotIndex);
7979
String shortClassName = fullClassName.substring(dotIndex + 1);

0 commit comments

Comments
 (0)