Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

excluding eclipse's excludes in an ant script

In eclipse users have the ability to exclude files from the build. Eclipse will then modify the .classpath and create the following entry so that eclipse knows not to build the particular files when compiling.

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

I am creating ant scripts for several android projects. I am using the ADT auto generated script and overriding the -compile task. I was wondering if there was a way that i can get a list of the files that are being excluded?

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

Thanks!

like image 353
prolink007 Avatar asked Jan 26 '12 15:01

prolink007


1 Answers

An alternative option could be to build project from command line, using Eclipse's command line builder. you can incorporate it into an ant script too.

like image 169
Eugene Kuleshov Avatar answered Sep 29 '22 22:09

Eugene Kuleshov