from my experience, eclipse never used the build.xml for it's internal
builds - how did you do that ?
you can omit the android_rules file if you paste the needed targets
into your build file (or if you had them working in an older version)
then afaik just a few additions are needed (see below)

quoted from our developer list
>>

<!-- 1.5 Changes START -->
    <!-- Custom Android task to deal with the project target, and
import the proper rules.
         This requires ant 1.6.0 or above. -->
    <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>

<!-- 1.5 Changes END -->

<!-- 1.5 Changes START -->
    <taskdef name="setup"
        classname="com.android.ant.SetupTask"
        classpathref="android.antlibs"/>
        <setup import="false" />
    <taskdef name="aaptexec"
        classname="com.android.ant.AaptExecLoopTask"
        classpathref="android.antlibs"/>

    <taskdef name="apkbuilder"
        classname="com.android.ant.ApkBuilderTask"
        classpathref="android.antlibs"/>

<!-- 1.5 Changes END -->

add one line to build.properties
#new prop needed for 1.5
sdk-location=\\your\\android-sdk--1.5_r1\\path

<<
hope this helps

cheers,
zero
openintents.org



On May 26, 3:06 am, Craig <[email protected]> wrote:
> Hi,
>
> I use ant to do release builds, and eclipse to do all my debug builds.
> With the new 1.5 sdk, my build.xml overides the resource-src target in
> order to perform some additional tasks, and it then depends on
> android_rules.resource-src to get the proper toolchain behaviour:
>
> e.g.
> ...
> <setup />
> <target name="resource-src" depends="my-own-target,
> android_rules.resource-src" />
> ...
>
> This works well for ant, but eclipse doesn't seem to know where
> android_rules comes from (not surprising since it is dynamically
> imported via code), and thus says there is an error in the file. This
> in turn stops the entire android project from building.
>
> So I need to either somehow get eclipse to parse the build.xml
> properly, or better still, get eclipse to ignore the build.xml
> altogether since build.xml takes no part in the eclipse build.
>
> Any ideas?
>
> thanks,
> Craig
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to