ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Using recursive processing.
Date Wed, 25 Jul 2001 05:27:47 GMT
On Wed, 25 Jul 2001, <pgonia@ccis.com> wrote:

>     <jar jarfile="${project_jar}/TCPStat.jar">
>         <fileset dir="${classes_output}/gov/nasa/dfrc/MeasUNet/**"/>
>     </jar>
> 
> I basicaly wish to jar of of the currents project .class files
> (located in gov/nasa/dfrc/MeasUNet directory structure).

That would be

    <jar jarfile="${project_jar}/TCPStat.jar">
        <fileset dir="${classes_output}/gov/nasa/dfrc/MeasUNet"
                 includes="**/*.class" />
    </jar>

Assuming classes_output points to the correct parent directory.

> The rube is that the are several other packets included in the
> gov.nasa.dfrc package prefix. However, I wish only to compile, and
> jar up those .java source files related to the current project.

So use the excludes attribute or nested exclude elements - to exclude
packages rincewind and twoflower:

        <fileset dir="${classes_output}/gov/nasa/dfrc/MeasUNet">
           <include name="**/*.class" />
           <exclude name="**/rincewind/**" />
           <exclude name="**/twoflower/**" />
        </fileset>

Stefan

Mime
View raw message