Richard Parkins
Richard Parkins

Reputation: 145

generating an android ant file from eclipse

I have an android project containing all my activities and manifest file etc and I am referencing 2 class libraries that contain various helpers, adapters etc. The class libraries are standard java projects.

My issue is that when I use the android update project --path . to generate the build.xml and run an ant release against this it fails because there is no dependency on the 2 class libraries.

Am I missing something big with the "android" command? or do I have to manually add to the generated build.xml to add these 2 class library builds.

Upvotes: 0

Views: 378

Answers (1)

omermuhammed
omermuhammed

Reputation: 7385

You can write a custom "compile" task in your build.xml, to compile your class libraries and then compile your android project. It is not hard at all, just copy paste the compile target from /tools/ant/main_rules.xml into your build.xml and modify accordingly.

You can read up on main_rules.xml to learn how to do this for any part of android build.

Upvotes: 1

Related Questions