Hi Fred,
I'm glad someone's working on a more powerful and flexible Ant system
for Android. The basic Ant script we include with the SDK is really
the minimum and it's not really flexible enough to add custom steps
like many people need.
I started looking at some of your stuff and in particular android_build.xml.
I'm not sure why you are manually testing against ${target}, and
especially why you are hard-coding things like android-3 ==
"android-1.5", or expecting that android-4 will be "android-2.0",
android-5 "android-2.5", etc...
I can actually tell you that it's pretty much guaranteed to not work
in the very near future.
Additionally, this does not support add-ons such as the Google APIs
add-on that ships with the SDK, as the target property contains a
completely different string in this case.
I understand you're trying to figure out the path to android.jar, but
this is exactly what the "setup" Ant task is doing. I encourage you to
look at its source code in development/tools/anttasks/
This task reads the target property (coming from default.properties)
and from it figures out the path to the target platform (or add-ons),
and then sets up properties for the path to the android.jar file,
aidl, aapt, and other files provided by the platform. In case of an
add-on it also adds the jar files provided by the add-on in a <path>
object alongside the android.jar file.
It should be pretty much anything you need. If you need this task to
create additional properties, we can definitively talk about it.
These are just some very early comments, as I haven't looked at the
rest of AndCooper yet.
I've seen you post here and there recently about working with an
"evolving" SDK. While I do realize that the Android 1.5 SDK was a
complete change from previous SDK, it was very much needed, as the
previous monolithic SDK was a big problem for people dealing with
multiple SDK. I don't foresee any major changes happening in the
future releases and we'll definitively be very careful from now on to
not break existing 3rd party scripts or tools (though we cannot
guarantee that won't happen, but we'll try to give a heads up if it
happens.)
Xav
--
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---