What steps will reproduce the problem? 1. when export as .apk or to device
What is the expected output? What do you see instead? it should generate a executable file but ERROR is thrown
What version of the product are you using? On what operating system? \droiddraw-r1b21 and \droiddraw-r1b20..... OS is Windows 7
Please provide any additional information below. i have defined ANT_HOME and classpath is also set... i tried modifying the build.xml inside the activity folder, but no fruit !!!
Comment #1
Posted on May 14, 2012 by Massive ElephantHi,
it's not a setup problem on your machine, it's Windows related problem in Main.makeAPK()
String[] cmd = install ? new String[]{"ant", "install"} : new String[]{"ant"}; File wd = new File( dir, "activity" ); run(cmd, wd);
In this case on a Windows machine an executable "ant.exe" would be expected in the program execution path.
As windows decide on the file extension if a binary (*.exe) or script (e.g. *.cmd) is executable, I see no simple workaround to get it work, beside the code needs to be changed for the Windows behavior.
I will have a look and post a patch.
cheers Frank
Comment #2
Posted on May 14, 2012 by Massive ElephantHi,
I had a look into it, see the intermediate state below.
The problem with ant could be solved on Windows machines with something similar to String[] cmd = install ? new String[]{"ant.bat", "install"} : new String[]{"ant.bat"};
But this is only half of the way. It seems following issue is still pending: see https://code.google.com/p/droiddraw/issues/detail?id=165#c3
I'll try this week to have a closer look into both.
cheers Frank
Comment #3
Posted on May 19, 2012 by Quick DogFrank, If you develop a fix, please send me a patch and I'll integrate it into the code.
Thanks!
Comment #4
Posted on May 21, 2012 by Massive ElephantHi Brendan,
the attached patch will manage the executable names in the different supported OS.
In combination with the patch for issue #165 the "Export to .apk" feature should now work as expected.
cheers Frank
- 0002-ant-executable.patch 1.03KB
Comment #5
Posted on Jun 16, 2012 by Quick DogThis issue was closed by revision r201.
Status: Fixed
Labels:
Type-Defect
Priority-Medium