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:
Jamie Doornbos
2011-01-10 21:03:27 +00:00
parent 7ed7e5ad7d
commit 2ae8b60e2f
@@ -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;
}