From: Yenwen F. <tem...@gm...> - 2011-06-14 13:47:57
|
Hi, This is my first time trying out XMLVM. I was able to compile the project, but failed to compile the demos. Below is the exception I got: BUILD FAILED D:\java\xmlvm\build.xml:340: The following error occurred while executing this line: D:\java\xmlvm\demo\iphone\ihelloworld\fullscreen\nbproject\xmlvm.xml:95: The following error occurred while executing this line: D:\java\xmlvm\demo\iphone\ihelloworld\fullscreen\nbproject\build-Xcode.xml:48: java.io.IOException: Unable to use path D:\java\xmlvm\demo\iphone\ihelloworld\fullscreen\D:\java\xmlvm\demo\iphone\ihelloworld\fullscreen\build\plugins\objc at org.xmlvm.ant.SrcPluginExtractor.execute(SrcPluginExtractor.java:90) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) After taking a look at the source code, I found out that there is a absolute path problem in SrcPluginExtractor.java. See below: ### Eclipse Workspace Patch 1.0 #P xmlvm Index: src/tools/ant/xcode-updater/org/xmlvm/ant/SrcPluginExtractor.java =================================================================== --- src/tools/ant/xcode-updater/org/xmlvm/ant/SrcPluginExtractor.java (revision 1718) +++ src/tools/ant/xcode-updater/org/xmlvm/ant/SrcPluginExtractor.java (working copy) @@ -144,8 +144,9 @@ } private File getProjectFile(String path) { - if (path.startsWith("/")) - return new File(path); + File p = new File(path); + if(p.isAbsolute()) + return p; return new File(getProject().getBaseDir(), path).getAbsoluteFile(); } How this helps. BR, Yenwen |