Excluding eclipse, excluded in ant script

In eclipse, users are able to exclude files from the assembly. Then Eclipse will .classpath and create the following entry so that eclipse does not know how to create specific files during compilation.

<classpathentry excluding="file1|file2|file3" kind="src" path="src"/>

I am creating ant scripts for several Android projects. I am using the generated ADT script and overriding the -compile task. I was wondering if there is a way to get a list of excluded files?

I was thinking of a task in ant that would parse the .classpath file and extract the file names and then use them that way ... but I was hoping there was an easier way.

Thanks!

+8
java android eclipse ant
source share
2 answers

An alternative would be to build the project from the command line using the Eclipse command line builder . you can include it in ant script.

+1
source share

How to use Export-> General → ANT files ? This creates an ant build script against excluded classes.

0
source share

All Articles