Allow paths with backslashes
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1108 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
package com.threerings.tools;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.Serializable;
|
||||
@@ -109,7 +110,7 @@ public class CompiledConfigTask extends Task
|
||||
}
|
||||
|
||||
String baseDir = getProject().getBaseDir().getPath();
|
||||
File target = new File(source.getPath().replaceAll(baseDir, _dest.getPath()));
|
||||
File target = new File(source.getPath().replaceAll(Pattern.quote(baseDir), _dest.getPath()));
|
||||
target = new File(FileUtil.resuffix(target, ".xml", ".dat"));
|
||||
return target;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user