oulan / droiddraw

Automatically exported from code.google.com/p/droiddraw
0 stars 0 forks source link

Command line option to load layout #223

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Suggestion:

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

thx

mel

Original issue reported on code.google.com by miljenko...@gmail.com on 18 Aug 2011 at 10:26

GoogleCodeExporter commented 9 years ago
nice suggestion. we need cmd arg to pass the path of the layout xml file.

Original comment by anidotNET on 4 Sep 2011 at 10:53

GoogleCodeExporter commented 9 years ago
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.

Original comment by brendan....@gmail.com on 12 Dec 2011 at 5:41

GoogleCodeExporter commented 9 years ago
Hi

When can we expect next release?!

thanks

mel

Original comment by mcvje...@holisticware.com on 16 Jan 2012 at 10:34

GoogleCodeExporter commented 9 years ago
Hi,

Any date for the next version supporting command line ?

Thanks
Alain

Original comment by a.fala...@gmail.com on 27 Jan 2012 at 1:45

GoogleCodeExporter commented 9 years ago
This should be in the .jar, but not the scripts.

running:

java -jar droiddraw.jar <your> <args> <here>

should work.

I'll work on getting the different launchers to support this too.  Linux is 
easy, the other OS's are trickier.

Original comment by brendan....@gmail.com on 25 Feb 2012 at 9:51

GoogleCodeExporter commented 9 years ago
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.

Original comment by brendan....@gmail.com on 25 Feb 2012 at 9:57

GoogleCodeExporter commented 9 years ago

Original comment by brendan....@gmail.com on 25 Feb 2012 at 9:57

GoogleCodeExporter commented 9 years ago
Hi

cd 
D:\SRC\HolisticWare\HolisticWare_Inkunabula\HolisticWare.Inkunabula.EXE_723_Clnt
Mob_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.<init>(Unknown Source)
        at java.io.FileReader.<init>(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...

Original comment by mcvje...@holisticware.com on 26 Feb 2012 at 10:06

GoogleCodeExporter commented 9 years ago
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_Clnt
Mob_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

Original comment by mcvje...@holisticware.com on 26 Feb 2012 at 10:15

GoogleCodeExporter commented 9 years ago
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_Clnt
Mob_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

Original comment by mcvje...@holisticware.com on 26 Feb 2012 at 10:16

GoogleCodeExporter commented 9 years ago
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

Original comment by mcvje...@holisticware.com on 27 Feb 2012 at 1:00

Attachments:

GoogleCodeExporter commented 9 years ago
Hi

Tested with commandline and here is Main.java corrected

regards

mel

Original comment by mcvje...@holisticware.com on 27 Feb 2012 at 1:35

Attachments: