Al.
First off I'm wondering if doing things that way provides any
advantages? If the portability components were rolled into where they
are needed it would make the code easier to understand and possibly
easier to debug. Do you know what the design motivator was behind doing
file name munging?, from what I've seen in the past I would take a shot
that the original devs were Unix to guys the core and wanted a way to
bring all pathnames into their comfort zone ;).
I've pasted the "ant test" output from Windows below, and all of the
failures appear to stem from filenames not being brought into the
internal format (the failure messages seem make that clear).
The error is a bit more difficult to track down (mainly because my
regexp isn't as good as it should be). The problem is in the call in the
following line from GxpcFlagsTest;
config = createConfig(
"--source", "src_dir_1:src_dir_2",
"src_dir_1" + SLASH + "ford.gxp",
"src_dir_1" + SLASH + "zaphod.gxp",
"src_dir_2" + SLASH + "trillian.gxp");
From what I can see the src_dir_1 and src_dir_2 are not being expanded
and so you end up with things like
"[path_to_svn_checkout]/src_dir_1/[filename]". Given that I can run ant
test on a Linux VMWare instance and it doesn't fail (and I've tried with
and without spaces in the path name), I'm guessing that somewhere a
regex and/or replacement isn't scanning past the /C:/ which starts
windows paths. I would look into it a bit further, but, alas, the day
job calls....
Al.
>> Test output <<
test:
[junit] .........................................
[junit] ...............................E..........
[junit] .........................................
[junit] ................................F.F.F...F..F..
[junit] .........................................
[junit] .........................................
[junit] .........................................
[junit] .........................................
[junit] .........................................
[junit] .........................................
[junit] .........................................
[junit] .........................................
[junit] .........................................
[junit] ...........
[junit] Time: 11.08
[junit] There was 1 error:
[junit] 1)
testGetSourceFiles(com.google.gxp.compiler.cli.GxpcFlagsTest)java
.lang.IllegalArgumentException: C:\Users\Al
Sutton\Documents\Projects\Workspaces
\GXP\gxp\src_dir_1\ford.gxp not in source path
)junit.framework.ComparisonFailure: null expected:<[C:\Users\Al
Sutton\Documents
\Projects\Workspaces\GXP\gxp\]foobar> but was:<[/C:/Users/Al
Sutton/Documents/Pr
ojects/Workspaces/GXP/gxp/]foobar>
[junit] Tests run: 544, Failures: 5, Errors: 1
[junit]