From: Panayotis K. <pan...@pa...> - 2011-07-14 07:25:15
|
On 11 Ιουλ 2011, at 9:58 μ.μ., Scott deBeaubien wrote: > Hey all - > > I figured it out. Sorry, I didn't take the time to do this on Sat. I was a little rushed. Anyhow, I got into the class: > > org.xmlvm.ant.SrcPluginExtractor > > and I found the problem. The problem was in a method called: > > ... > private File getProjectFile(String path) { > if (path.startsWith("/")) > return new File(path); > return new File(getProject().getBaseDir(), path).getAbsoluteFile(); > } > ... > > It was not written to work in Windows is all. I fixed it. > > ... > private File getProjectFile(String path) { > if ((path.startsWith("/")) || (path.indexOf(":\\") == 1)) > return new File(path); > return new File(getProject().getBaseDir(), path).getAbsoluteFile(); > } > ... > > As you can see in the redlit line, my changes are rather simpleminded, but it worked, and made all my demos compile just fine. I do have Linux (Ubuntu) installed on my machine as well, and the demos probably all would have compiled under Linux, but for whatever reason, I was not able to get them to compile under Cygwin either. > > Anyhow, consider this a proposed bug-fix now. > > Thanks! There is a more generic approach for this problem. Please update to the latest svn and tell me if it fixes the problem for you. Remember though that there are still places that require the Unix semantics and will probably break the scripts. |