ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: problem with "excludes" in javac target.
Date Mon, 24 Nov 2008 13:12:05 GMT
srcdir and excludes form an implicit fileset.
excludes and includes are relative to that basedir.

In that case change your junit.path to bt/ccs21/test .

btw: there is no Ant 2.7.2. Last released Ant is 1.7.1 (typo?).


Jan


>-----Urspr√ľngliche Nachricht-----
>Von: Ziggy [mailto:ziggy25@gmail.com] 
>Gesendet: Montag, 24. November 2008 13:18
>An: user@ant.apache.org
>Betreff: problem with "excludes" in javac target.
>
>Can anyone see why "excludes" in this code snippet does not work?
>
>[code]
><target name="compile" depends="prepare,resources">
>        <echo>Compiling java sources:</echo>
>        <echo>${junit.path}**</echo>
>        <javac excludes="${junit.path}/**" srcdir="${src.dir}"
>destdir="${classes.dir}">
>            <classpath refid="compile.classpath"/>
>        </javac>
> </target>
>[/code]
>
>Here are the relevant properties used in the above code
>
>[code]
><property name="src.dir"        value="../java/com"/>
><property name="junit.path"        value="${src.dir}/bt/ccs21/test" />
><property name="classes.dir"    value="${build.dir}/classes"/>
>[/code]
>
>
>Thanks
>

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


Mime
View raw message