ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Custom task with classpath and exclusion
Date Thu, 22 Apr 2010 12:15:35 GMT
On 2010-04-22, Blaise Gervais <gervais.b@gmail.com> wrote:

> exclusions.createExcludesFile().setName(entry.path.getPath()+File.separatorChar+exclusion);

In a fileset an excludesfile is a text file that contains an exclusion
pattern per line.  I don't think you really want this but
createExclude(),

> And the output :

>> Buildfile: C:\Dev\Perso\App\app-builder\build.xml

> test:

> [eclipseclasspath] Parent : C:\Dev\Perso\App\app-impl\app-manager

> [eclipseclasspath] Exclude :
>> src.main\be/me/app/manager/commons/components/OgTreeTable.java

This is probably a good name for an exclude pattern which is resolved
relative to the fileset's dir.

> But the build fail and tell me that the file is not found. In fact she is
> not found bacause ANt try to find it from a wrong folder.

excludesfiles as opposed to exclude patterns are resolved relative to
the project's basedir, not the dir of the fileset.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message