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:[EMAIL PROTECTED] 
>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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to