<taskdel name="setup" .../> defines a custom Ant task that does the following:
- From the content of 'default.properties' (value is 'target'), resolve the project Build Target (ie which platform or add-on your project is compiling against). - From this resolution, find the path to the target folder (for example $SDK/platforms/android-1.5/). - Import the files containing the target and all the build logic (for example $SDK/platforms/android-1.5/templates/android_rules.xml) - Setup properties that define paths to things inside the resolved target folder (android.jar, aapt, dx, etc...) Xav ---------- Forwarded message ---------- From: [email protected] <[email protected]> Date: Mon, May 18, 2009 at 5:41 AM Subject: [android-developers] Understanding build.xml in SDK version 1.5 - where are the targets? To: Android Developers <[email protected]> Hi there, I just tried to figure out the build.xml from the SDK 1.5. I used "android update project" an an existing project and got a very short build.xml. When I strip out all the comments, this is what's left: <?xml version="1.0" encoding="UTF-8"?> <project name="com.webxells.ourproduct" > <property file="local.properties"/> <property file="build.properties"/> <property file="default.properties"/> <path id="android.antlibs"> <pathelement path="${sdk-location}/tools/lib/anttasks.jar" /> <pathelement path="${sdk-location}/tools/lib/sdklib.jar" /> <pathelement path="${sdk-location}/tools/lib/ androidprefs.jar" /> <pathelement path="${sdk-location}/tools/lib/apkbuilder.jar" / > <pathelement path="${sdk-location}/tools/lib/jarutils.jar" /> </path> <taskdef name="setup" classname="com.android.ant.SetupTask" classpathref="android.antlibs"/> <setup /> </project> The documentation tells me to call "ant debug" or "ant release". As far as I know, "debug" and "release" must be the names of targets in this build.xml, but the build.xml does not contain any target at all. I would expect to get a message like "Target "debug" does not exist in the project", but to my big surprise, it works and does something. Anyway, compilation fails for several reasons. If I knew where the <javac> task is called, I knew which parameters to add to fix it, but I can't find it anywhere in this small build.xml. There are many other things I'd like to customize, but I just don't get where to find them. thanks for your answers, Brian -- 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 -~----------~----~----~----~------~----~------~--~---

