From: Scott d. <sde...@ho...> - 2011-07-11 18:58:56
|
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! -Scotty Scott deBeaubien Software Engineer sde...@ho... http://sdebeaubien.comxa.com Los Angeles From: sde...@ho... To: xml...@li... Subject: newbie - question Date: Sat, 9 Jul 2011 22:24:25 +0000 Sorry to hit this list with probably an obvious question, but I can't find answers anywhere else at present. I downloaded XMLVM according to the docs, and am building it. The XMLVM portion builds fine, but the demos won't build. I get the following error with "ant demos": ... -xproject-plugins: [echo] your run classpath: C:\dev\XMLVM\xmlvm\dist\xmlvm.jar:build/classes [echo] your dest: build/plugins/objc/ BUILD FAILED C:\dev\XMLVM\xmlvm\build.xml:336: The following error occurred while executing this line: C:\dev\XMLVM\xmlvm\demo\build.xml:46: The following error occurred while executing this line: C:\dev\XMLVM\xmlvm\demo\iphone\ifireworks\nbproject\xmlvm.xml:100: The following error occurred while executing this line: C:\dev\XMLVM\xmlvm\demo\iphone\ifireworks\nbproject\build-xcode.xml:52: java.io.IOException: Unable to use path C:\dev\XMLVM\xmlvm\demo\iphone\ifireworks\C:\dev\XMLVM\xmlvm\demo\iphone\ifireworks\build\plugins\objc Total time: 21 seconds C:\dev\XMLVM\xmlvm>ant -version Apache Ant version 1.6.5 compiled on June 2 2005 ... I've included my ant version in case that matters. I'm using Java 1.6.0_14 as well, as a 1.6 VM is recommended, I should be OK, right? Anyhow, I thought there might be some bug or other in there. If needed I can build in Cygwin. The demos are ... pretty necessary at this point. It's kinda not gonna be easy to figure this out without them, eh? Thanks in advance! -Scotty Los Angeles |