Hi,
There seems to be an inconsistency between the model of build output
assumed by the Eclipse plugin and the model of build output assumed by
ant for SDK 1.5.
Both the Eclipse plugin and ant put the resulting apk file in the bin
directory (by default). But for the Eclipse plugin, compiled classes
are rooted at bin, whereas for the ant task, these classes are rooted
at bin/classes.
As a result, after an ant build (ant debug, for example) Eclipse
complains with messages like this:
class name (com/example/android/notepad/TitleEditor) does not match
path (classes/com/example/android/notepad/TitleEditor.class)
It would be nice if the two tools were consistent in this respect out
of the box.
A simple workaround is to have ant create its output in an entirely
separate directory by setting the out-folder property, e.g.:
<property name="out-folder" value="bin_ant"/>
But having both tools use the same output areas would be preferable.
Unfortunately, I have not been able to figure out how to do that.
Consistency would mean that the out-folder of ant and the "default
output folder" of the Eclipse project would have to be the same, say,
"bin", so that the apk files end up in the same place in both cases.
However, since ant would then output class files to bin/classes, we
would have to configure Eclipse to do the same for its class files. I
have not been able to
do that. One approach that failed is to try to provide specific output
folders for specific source folders in Eclipse. Eclipse will not allow
the output folder for the source folder "src", say, to be "bin/
classes", if the general output folder for the project is "bin".
So one question is whether it is possible to configure the ant task to
output classes to a directory other than "${out-folder}/classes"?
Is there specific documentation on ant for the 1.5 SDK over and above
the comments in the generated build.xml file?
Many thanks.
Azad
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---