You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ziggy <zi...@gmail.com> on 2008/11/24 13:18:23 UTC

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

AW: problem with "excludes" in javac target.

Posted by Ja...@rzf.fin-nrw.de.
>ps. I thought the version number on the file "antlr-2.7.2.jar" 
>denotes the version of Ant. 

Yes, this is the version number. But from Antlr (parser generator) not
Ant (build tool) ;-)

Jan

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


Re: problem with "excludes" in javac target.

Posted by Ziggy <zi...@gmail.com>.
Thanks guys i have resolved this problem by excluding the ${src.dir}
directories from ${junit.path}

ps. I thought the version number on the file "antlr-2.7.2.jar" denotes the
version of Ant. Obviously i was wrong :)

Thanks

On Mon, Nov 24, 2008 at 1:14 PM, Rebhan, Gilbert <
Gilbert.Rebhan@huk-coburg.de> wrote:

>
>
> -----Original Message-----
> From: Ziggy [mailto:ziggy25@gmail.com]
> Sent: Monday, November 24, 2008 2:03 PM
> To: user@ant.apache.org
> Subject: Re: problem with "excludes" in javac target.
>
> /*
> Hi,
>
> I forgot to mention that i am using ANT v2.7.2
>
> Many thanks
> */
>
> ant version 2.7.2 !?
>
> You're Ziggy Stardust and write your posting in  the year 2023  ?
> ;-)))
>
> Regard, Gilbert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

RE: problem with "excludes" in javac target.

Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.

-----Original Message-----
From: Ziggy [mailto:ziggy25@gmail.com]
Sent: Monday, November 24, 2008 2:03 PM
To: user@ant.apache.org
Subject: Re: problem with "excludes" in javac target.

/*
Hi,

I forgot to mention that i am using ANT v2.7.2

Many thanks
*/

ant version 2.7.2 !?

You're Ziggy Stardust and write your posting in  the year 2023  ?
;-)))

Regard, Gilbert

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


Re: problem with "excludes" in javac target.

Posted by Ziggy <zi...@gmail.com>.
Hi,

I forgot to mention that i am using ANT v2.7.2

Many thanks

On Mon, Nov 24, 2008 at 12:18 PM, Ziggy <zi...@gmail.com> wrote:

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

AW: problem with "excludes" in javac target.

Posted by Ja...@rzf.fin-nrw.de.
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