ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Custom task with classpath and exclusion
Date Thu, 22 Apr 2010 12:15:35 GMT
On 2010-04-22, Blaise Gervais <> 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

> 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/

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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message