From: <ju...@ed...> - 2012-02-01 13:41:35
|
Has anybody attempted to cross compile a java (android) application which uses xstream (1.3.1 or the more stable 1.4.2) ? |
From: Arno P. <ar...@pu...> - 2012-02-01 17:42:40
|
I am not familiar with xstream, but the question whether XMLVM can cross-compile this to iOS largely depends on the API that xstream itself depends on. XMLVM supports XML API (including JAXP) so chances are pretty good. The only way to know for sure is to write a little iOS Hello World (take one of the tutorials in xmlvm/tutorial/ios/helloworld as a basis) and give it a try. Note that this will definitely *not* work with the Objective-C backend. You need to select --target=iphonec. Arno On 2/1/12 5:23 AM, ju...@ed... wrote: > Has anybody attempted to cross compile a java (android) application > which uses xstream (1.3.1 or the more stable 1.4.2) ? > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: <ju...@ed...> - 2012-02-01 17:53:33
|
Thanks Arno. Will get my Leopard VM image set up and do as you suggest. aside 1: XStream is I think the best bang for the buck if u need to just de/serialize objects/xml. If you're interested, just look here: http://xstream.codehaus.org/ aside 2 : With this darn Mac OS X environment...is this combination reliable for XMLVM purposes ?: 10.5.5, XCode 3.1, IOS SDK 3.1 I will post back on the outcome. Best Regards Julian Quoting Arno Puder <ar...@pu...>: > > I am not familiar with xstream, but the question whether XMLVM can > cross-compile this to iOS largely depends on the API that xstream itself > depends on. XMLVM supports XML API (including JAXP) so chances are > pretty good. The only way to know for sure is to write a little iOS > Hello World (take one of the tutorials in xmlvm/tutorial/ios/helloworld > as a basis) and give it a try. Note that this will definitely *not* work > with the Objective-C backend. You need to select --target=iphonec. > > Arno > > > On 2/1/12 5:23 AM, ju...@ed... wrote: >> Has anybody attempted to cross compile a java (android) application >> which uses xstream (1.3.1 or the more stable 1.4.2) ? >> >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Arno P. <ar...@pu...> - 2012-02-01 18:46:58
|
On 2/1/12 9:53 AM, ju...@ed... wrote: > aside 1: XStream is I think the best bang for the buck if u need to just > de/serialize objects/xml. > If you're interested, just look here: > http://xstream.codehaus.org/ I looked at it and I think there might be a good chance it works out of the box. > aside 2 : With this darn Mac OS X environment...is this combination > reliable for XMLVM purposes ?: > 10.5.5, XCode 3.1, IOS SDK 3.1 I'm not sure if the Xcode project that XMLVM creates is still compatible with Xcode 3.1. Panayotis might know. Arno |
From: <ju...@ed...> - 2012-02-01 18:40:07
|
My xmlvm trunk version is 2118 (I updated today). I created a skeleton project: xmlvm --skeleton=android --out=/path/to/TestAndroidXMLVMAppFolder --app-name=TestAndroidXMLVMApp No modifications whatsoever to the skeleton project. ------------------------------------------------------------------------------------------------- SUCESS with : xmlvm --in=bin/classes --iphone-app=TestIPhoneXMLVMApp_IPHONE --target=iphone ------------------------------------------------------------------------------------------------- Artifact tree created: /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE/build /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE/build/xcode /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE/build/xcode/src /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE/build/xcode/sys /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE/dist /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE/dist/TestIPhoneXMLVMApp_IPHONE.xcodeproj /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE/dist/Makefile ------------------------------------------------------------------------------------------------- FAILURE with : xmlvm --in=bin/classes --iphone-app=TestIPhoneXMLVMApp_IPHONEC --target=iphonec ------------------------------------------------------------------------------------------------- Here is the complete stack trace: /path/to/TestAndroidXMLVMAppFolder$ xmlvm --in=bin/classes --iphone-app=TestIPhoneXMLVMApp_IPHONEC --target=iphonec [02/01/12 19:06:23.213] WARNING: Using 'TestIPhoneXMLVMApp_IPHONEC' as output directory [02/01/12 19:07:18.633] ERROR: Couldn't create node for android.app.Activity Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.NullPointerException at org.xmlvm.util.ObjectHierarchyHelper.insertClass(ObjectHierarchyHelper.java:282) at org.xmlvm.util.ObjectHierarchyHelper.insertResource(ObjectHierarchyHelper.java:254) at org.xmlvm.util.ObjectHierarchyHelper.<init>(ObjectHierarchyHelper.java:82) at org.xmlvm.proc.out.VtableOutputProcess.processPhase2(VtableOutputProcess.java:108) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) at org.xmlvm.Main.main(Main.java:53) ... 6 more |
From: Arno P. <ar...@pu...> - 2012-02-01 18:46:08
|
unfortunately the online doc is a little out of date. After creating a skeleton project you should use the generated ant-script for cross-compiling your app: ant run-Xcode Arno On 2/1/12 10:40 AM, ju...@ed... wrote: > My xmlvm trunk version is 2118 (I updated today). > > I created a skeleton project: > xmlvm --skeleton=android --out=/path/to/TestAndroidXMLVMAppFolder > --app-name=TestAndroidXMLVMApp > No modifications whatsoever to the skeleton project. > > ------------------------------------------------------------------------------------------------- > SUCESS with : xmlvm --in=bin/classes > --iphone-app=TestIPhoneXMLVMApp_IPHONE --target=iphone > ------------------------------------------------------------------------------------------------- > Artifact tree created: > /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE > /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE/build > /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE/build/xcode > /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE/build/xcode/src > /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE/build/xcode/sys > /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE/dist > /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE/dist/TestIPhoneXMLVMApp_IPHONE.xcodeproj > /TestAndroidXMLVMApp/TestIPhoneXMLVMApp_IPHONE/dist/Makefile > > ------------------------------------------------------------------------------------------------- > FAILURE with : xmlvm --in=bin/classes > --iphone-app=TestIPhoneXMLVMApp_IPHONEC --target=iphonec > ------------------------------------------------------------------------------------------------- > Here is the complete stack trace: > /path/to/TestAndroidXMLVMAppFolder$ xmlvm --in=bin/classes > --iphone-app=TestIPhoneXMLVMApp_IPHONEC --target=iphonec > [02/01/12 19:06:23.213] WARNING: Using 'TestIPhoneXMLVMApp_IPHONEC' > as output directory > [02/01/12 19:07:18.633] ERROR: Couldn't create node for > android.app.Activity > Exception in thread "main" java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at com.simontuffs.onejar.Boot.run(Boot.java:306) > at com.simontuffs.onejar.Boot.main(Boot.java:159) > Caused by: java.lang.NullPointerException > at > org.xmlvm.util.ObjectHierarchyHelper.insertClass(ObjectHierarchyHelper.java:282) > at > org.xmlvm.util.ObjectHierarchyHelper.insertResource(ObjectHierarchyHelper.java:254) > at org.xmlvm.util.ObjectHierarchyHelper.<init>(ObjectHierarchyHelper.java:82) > at > org.xmlvm.proc.out.VtableOutputProcess.processPhase2(VtableOutputProcess.java:108) > at > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) > at > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:53) > ... 6 more > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: <ju...@ed...> - 2012-02-05 14:58:27
|
From this thread: [xmlvm-users] --target=iphonec NullPointerException https://sourceforge.net/mailarchive/message.php?msg_id=28772376 Arno has identified that an invocation of ant target 'run-XCode' is required against a skeleton project in order to avoid this error: >> [02/01/12 19:07:18.633] ERROR: Couldn't create node for >> android.app.Activity Running this ant target on a skeleton project does create all of the necessary artifacts to avoid this error: xcode things are generated nicely. NOW, I have *existing* Maven projects against which I have run the xmlvm-maven-plugin [0.0.1-SNAPSHOT] (which is itself built locally). HOWEVER, during the build I see the same error as that discussed above: [INFO] --- xmlvm-maven-plugin:0.0.1-SNAPSHOT:generate-xmlvm (generate) @ AndroidXMLVMXCodePOC --- [INFO] Running XMLVM with command line: [--in=/path/to/project/target/classes, --out=/path/to/project/target/AndroidXMLVMXCodePOC, --target=posix, --app-name=AndroidXMLVMXCodePOC, -DXcodeProject=iphone, -DBundleIdentifier=apkg.AndroidXMLVMXCodePOC, -DBundleVersion=0.0.1-SNAPSHOT, -DPrerenderedIcon=false, -DStatusBarHidden=false, -DApplicationExits=true, --debug=warning] [02/05/12 15:38:34.516] ERROR: Couldn't create node for android.app.Activity So, my 1st, and more important, question is: Is it possible to have the necessary boilerplate artifacts generated during this process of converting a maven project ? SECONDLY, I notice the -DXcodeProject-iphone argument, but from Arno's response in the thread: [xmlvm-users] XStream : Android -> iOS https://sourceforge.net/mailarchive/message.php?msg_id=28770943 Arno says <quote> --target=iphonec is required as the obj-C backend cannot support this. </quote> So, my 2nd question is : does -DXcodeProject=iphone use C or Obj-C backend ? Julian |
From: Arno P. <ar...@pu...> - 2012-02-06 17:33:34
|
On 2/5/12 6:58 AM, ju...@ed... wrote: > -DStatusBarHidden=false, -DApplicationExits=true, --debug=warning] > [02/05/12 15:38:34.516] ERROR: Couldn't create node for > android.app.Activity This seems to indicate that you are not compiling against the Android Compat Lib. Sorry, but there is no support for Maven. Again, I would suggest you start with a fresh skeleton project and then move your code over. > So, my 2nd question is : does -DXcodeProject=iphone use C or Obj-C backend ? This property is not related to the selection of the backend (which is determined by --target) but the kind of Xcode project that should be created. The -DXcodeProject=iphone specifies that an iphone project should be created (and not an ipad project). See --help for details. Arno |
From: Markus H. <ma...@ti...> - 2012-02-06 18:11:51
|
He seems to be using my xmlvm maven plugin from https://github.com/tisoft/xmlvm-maven-plugin I have never tested the plugin for an android build. I will try to add support for android builds in the next days. Markus Am 06.02.2012 um 18:33 schrieb Arno Puder: > > > On 2/5/12 6:58 AM, ju...@ed... wrote: >> -DStatusBarHidden=false, -DApplicationExits=true, --debug=warning] >> [02/05/12 15:38:34.516] ERROR: Couldn't create node for >> android.app.Activity > > This seems to indicate that you are not compiling against the Android > Compat Lib. Sorry, but there is no support for Maven. Again, I would > suggest you start with a fresh skeleton project and then move your code > over. > >> So, my 2nd question is : does -DXcodeProject=iphone use C or Obj-C backend ? > > This property is not related to the selection of the backend (which is > determined by --target) but the kind of Xcode project that should be > created. The -DXcodeProject=iphone specifies that an iphone project > should be created (and not an ipad project). See --help for details. > > Arno > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Markus H. <ma...@ti...> - 2012-02-07 21:56:57
|
I have added a sample that shows how to use the maven plugin with android: https://github.com/tisoft/xmlvm-maven-plugin/tree/master/src/test/resources/xmlvm-android-test Hope that helps. Markus Am 06.02.2012 um 18:53 schrieb Markus Heberling: > He seems to be using my xmlvm maven plugin from https://github.com/tisoft/xmlvm-maven-plugin > > I have never tested the plugin for an android build. I will try to add support for android builds in the next days. > > Markus > > Am 06.02.2012 um 18:33 schrieb Arno Puder: > >> >> >> On 2/5/12 6:58 AM, ju...@ed... wrote: >>> -DStatusBarHidden=false, -DApplicationExits=true, --debug=warning] >>> [02/05/12 15:38:34.516] ERROR: Couldn't create node for >>> android.app.Activity >> >> This seems to indicate that you are not compiling against the Android >> Compat Lib. Sorry, but there is no support for Maven. Again, I would >> suggest you start with a fresh skeleton project and then move your code >> over. >> >>> So, my 2nd question is : does -DXcodeProject=iphone use C or Obj-C backend ? >> >> This property is not related to the selection of the backend (which is >> determined by --target) but the kind of Xcode project that should be >> created. The -DXcodeProject=iphone specifies that an iphone project >> should be created (and not an ipad project). See --help for details. >> >> Arno >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |