How to get Eclipse / ADT to read the nocompress tags that I added to build.xml?

In a nutshell

I need the Eclipse APK auto-build feature to use roughly the same build settings as the ant command-line version.

Longer version

There was a moderate discussion on how to pack assets or resources into the APK without compression. The solutions I saw are related to using an extension, such as .mp3, which is not compressed or does not add a new tag to the build.xml file, for example, <nocompress extension="pak" /> for * .pak.

For various reasons that are not important, an mp3 route is not possible for this project. I'm fine with changes to build.xml, but Eclipse seems to have its own APK build process that doesn't use the Android-SDK build.xml file. As a result, pak files are still compressed.

How to force Eclipse to use regular ant build files or change the configuration to mirror the same settings without compression?

Thanks!

+7
source share
1 answer

A) You can run Ant build from eclipse:

  • In eclipse add Ant View: click Windows> Show View> Ant
  • In the Ant view, click Add Build File Icon and link the build.xml file.
  • Now the Ant view will display Ant targets. Run the tag you want.

B) Try Custom Build Rules for Eclipse

0
source

All Articles