Export to GitHub

droiddraw - issue #223

Command line option to load layout


Posted on Aug 18, 2011 by Swift Elephant

Suggestion:

Command line option to load .[a]xml layout file?!

thx

mel

Comment #1

Posted on Sep 4, 2011 by Happy Kangaroo

nice suggestion. we need cmd arg to pass the path of the layout xml file.

Comment #2

Posted on Dec 12, 2011 by Quick Dog

This 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 Wombat

Hi

When can we expect next release?!

thanks

mel

Comment #4

Posted on Jan 27, 2012 by Massive Kangaroo

Hi,

Any date for the next version supporting command line ?

Thanks Alain

Comment #5

Posted on Feb 25, 2012 by Quick Dog

This 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 Dog

Ah, 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 Wombat

Hi

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 Wombat

Correction!!

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 Wombat

Correction!!

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 Wombat

Hi

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

Attachments

Comment #12

Posted on Feb 27, 2012 by Quick Wombat

Hi

Tested with commandline and here is Main.java corrected

regards

mel

Attachments

Status: Fixed

Labels:
Type-Defect Priority-Medium