You could store these ex/includes in textfiles and use in/excludesfile
attribute.
fs.includes
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<----
de/cas/abc/abcobject/**
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<----
fs.excludes
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<----
**/package.html
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<----
<fileset
dir="${src.dir}"
id="client.src.fileset"
includesfile="fs.includes"
excludesfile="fs.excludes"
/>
<fileset
dir="${class.dir}"
id="client.class.fileset"
includesfile="fs.includes"
excludesfile="fs.excludes"
/>
Jan
> -----Ursprüngliche Nachricht-----
> Von: Ingo Siebert [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 7. Dezember 2007 16:39
> An: [email protected]
> Betreff: howto reuse includes and excludes definitions for
> different filesets
>
> Hi,
>
> i have to create two files: src.zip and binary.jar .
>
> The src.zip contains the source code files and the binary.jar contains
> the class files.
>
> They only contains a _subset_ of my complete project.
> That's why i have to filesets.
>
>
> <fileset dir="${src.dir}" id="client.src.fileset" >
> <include name="de/cas/abc/abcobject/**" />
> // ...
> <exclude name="**/package.html" />
> </fileset>
>
> <fileset dir="${class.dir}" id="client.class.fileset" >
> <include name="de/cas/abc/abcobject/**" />
> // ...
> <exclude name="**/package.html" />
> </fileset>
>
>
> But i don't want to maintain the includes and excludes two times in my
> build file. It there a way the define the includes and
> excludes only one
> time?
>
> Any great ideas?
>
> Ingo
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]