Suggestion:
Command line option to load .[a]xml layout file?!
thx
mel
Comment #1
Posted on Sep 4, 2011 by Happy Kangaroonice suggestion. we need cmd arg to pass the path of the layout xml file.
Comment #2
Posted on Dec 12, 2011 by Quick DogThis has been added to the Java code. It will need to be added to the scripts as well, and rolled out with the next release.
Comment #3
Posted on Jan 16, 2012 by Quick WombatHi
When can we expect next release?!
thanks
mel
Comment #4
Posted on Jan 27, 2012 by Massive KangarooHi,
Any date for the next version supporting command line ?
Thanks Alain
Comment #5
Posted on Feb 25, 2012 by Quick DogThis should be in the .jar, but not the scripts.
running:
java -jar droiddraw.jar
should work.
I'll work on getting the different launchers to support this too. Linux is easy, the other OS's are trickier.
Comment #6
Posted on Feb 25, 2012 by Quick DogAh, also, it looks like the windows.exe should pass along command line arguments too, so:
droiddraw.exe some_file.xml
should also work. Let me know if it doesn't.
Comment #7
Posted on Feb 25, 2012 by Quick Dog(No comment was entered for this change.)
Comment #8
Posted on Feb 26, 2012 by Quick WombatHi
cd D:\SRC\HolisticWare\HolisticWare_Inkunabula\HolisticWare.Inkunabula.EXE_723_ClntMob_MDrd\Resources\Layout
java -jar D:\SRC\java\dd.jar Main.axml java -jar D:\SRC\java\dd.jar Main.xml
axml goes ok, but nothing is loaded xml says C:\Users\moljac\Desktop>java -jar D:\SRC\java\dd.jar Main.xml java.io.FileNotFoundException: Main.xml (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(Unknown Source) at java.io.FileReader.(Unknown Source) at org.droiddraw.gui.DroidDrawPanel.open(DroidDrawPanel.java:171) at org.droiddraw.Main.open(Main.java:113) at org.droiddraw.Main.main(Main.java:935)
C:\Users\moljac\Desktop>pause Press any key to continue . . .
regards
mel
PS sorry, but it took me a little bit longer, cos I'm .net dev and needed time to remember how to make jar packages...
Comment #9
Posted on Feb 26, 2012 by Quick WombatCorrection!!
it works!
the problem is disk/partition
script needs: d: to switch discs
so:
d: cd D:\SRC\HolisticWare\HolisticWare_Inkunabula\HolisticWare.Inkunabula.EXE_723_ClntMob_MDrd\Resources\Layout
dir
java -jar D:\SRC\java\dd.jar Main.axml java -jar D:\SRC\java\dd.jar Main.xml
pause
Loads xml, but not axml. Would it be a problem to add this other extension, cos Mono For Android projects use it extensively...
thanks
regards
mel
Comment #10
Posted on Feb 26, 2012 by Quick WombatCorrection!!
it works!
the problem is disk/partition
script needs: d: to switch discs
so:
d: cd D:\SRC\HolisticWare\HolisticWare_Inkunabula\HolisticWare.Inkunabula.EXE_723_ClntMob_MDrd\Resources\Layout
dir
java -jar D:\SRC\java\dd.jar Main.axml java -jar D:\SRC\java\dd.jar Main.xml
pause
Loads xml, but not axml. Would it be a problem to add this other extension, cos Mono For Android projects use it extensively...
thanks
regards
mel
Comment #11
Posted on Feb 27, 2012 by Quick WombatHi
I have changed few lines with comment before in Main.java and added in utils: FileFilterExtensionMonoForAndroid extends extends FileFilter {....}
to add .axml extension...
It seems to work I can load both...
If You want the files are attached
regards
- Main.java 30.24KB
Comment #12
Posted on Feb 27, 2012 by Quick WombatHi
Tested with commandline and here is Main.java corrected
regards
mel
- Main.java 30.36KB
Status: Fixed
Labels:
Type-Defect
Priority-Medium