Standardizes GeneratedResources on Windows to use system-independant partial paths. Fixes NoDeployTest on Windows.
Review by: bobv (desk check)
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@2142 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/linker/impl/StandardLinkerContext.java b/dev/core/src/com/google/gwt/dev/linker/impl/StandardLinkerContext.java
index e038991..6471d2b 100644
--- a/dev/core/src/com/google/gwt/dev/linker/impl/StandardLinkerContext.java
+++ b/dev/core/src/com/google/gwt/dev/linker/impl/StandardLinkerContext.java
@@ -184,9 +184,10 @@
if (generatorDir != null) {
for (String path : Util.recursiveListPartialPaths(generatorDir, false)) {
try {
- GeneratedResource resource = new StandardGeneratedResource(path,
- (new File(generatorDir, path)).toURL());
- generatedResourcesByName.put(path, resource);
+ String partialPath = path.replace(File.separatorChar, '/');
+ GeneratedResource resource = new StandardGeneratedResource(
+ partialPath, (new File(generatorDir, path)).toURL());
+ generatedResourcesByName.put(partialPath, resource);
genResources.add(resource);
logger.log(TreeLogger.SPAM, "Added generated resource " + resource,
null);