Shikhar13 / codenameone

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

Ant task is throwing exception when build hints are present #243

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?
If you remove the build hints, the build gets sent to server, otherwise a 
"java.lang.StringIndexOutOfBoundsException: String index out of range" is 
thrown.

What version of the product are you using? On what operating system?
Fails on both Eclipse and Netbeans.

Please provide any additional information below.

In the Ant task, when attempting to strip 'codename1.arg' from the build hint 
keys, it's doing it against the value instead of the key:

   r.putArgument(key, value.substring(14));

should be:

   r.putArgument(key.substring(14), value);

Original issue reported on code.google.com by 1815...@coolman.ca on 5 Jul 2012 at 3:26

GoogleCodeExporter commented 9 years ago
Thanks. I fixed this in the current version.

Original comment by shai.almog on 5 Jul 2012 at 4:45