You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Manish, Sanga" <ma...@tanning.com> on 2001/06/26 15:08:59 UTC

build.xml

Hi all,

I am new to ant tool and  shall appreciate if some one would help me out
.... 
I am facing strange problem while using ant 1.2 with jdk1.2.2/1.3, its like
am not able to exclude some of the java files during the build .
I had tried using excludes/excludefile option but it is taking all files
including the one to be excluded without showing any errors.

     for example below in target release am trying to exclude all the files
under xml folder but its compiling all the java files

 <project name="hartford" default="release" basedir=".">
    <target name="init">
       <tstamp/>
       <property name="classpath" value="icr\icrprime\lib\activation.jar"/>
       <property name="src" value="icr\icrprime\java"/>
       <property name="destdir" value="icr\icrprime\classes"/>
    </target>

    <target name="release" depends="init">
       <javac srcdir="${src}" destdir="${destdir}" classpath="${classpath}">
          <exclude name="${src}\com\claimplace\icr\xml\*.java"/>
       </javac>
    </target>

Looking forward for some feedback..........

thanks and regards,

manish 




























regards,

Manish Sanga
Tanning Technologies International
 Call : 91 40 3550093/95 Ext - 8467



Re: build.xml

Posted by Calvin Yu <ca...@mindspring.com>.
The name attribute of the exclude tag should be a path relative to the
javac's srcdir attribute.  So try this:

<javac srcdir="${src}" destdir="${destdir}" classpath="${classpath}">
   <exclude name="com\claimplace\icr\xml\*.java"/>
</javac>

Calvin

----- Original Message -----
From: "Manish, Sanga" <ma...@tanning.com>
To: <st...@jakarta.apache.org>
Sent: Tuesday, June 26, 2001 9:08 AM
Subject: build.xml


> Hi all,
>
> I am new to ant tool and  shall appreciate if some one would help me out
> ....
> I am facing strange problem while using ant 1.2 with jdk1.2.2/1.3, its
like
> am not able to exclude some of the java files during the build .
> I had tried using excludes/excludefile option but it is taking all files
> including the one to be excluded without showing any errors.
>
>      for example below in target release am trying to exclude all the
files
> under xml folder but its compiling all the java files
>
>  <project name="hartford" default="release" basedir=".">
>     <target name="init">
>        <tstamp/>
>        <property name="classpath"
value="icr\icrprime\lib\activation.jar"/>
>        <property name="src" value="icr\icrprime\java"/>
>        <property name="destdir" value="icr\icrprime\classes"/>
>     </target>
>
>     <target name="release" depends="init">
>        <javac srcdir="${src}" destdir="${destdir}"
classpath="${classpath}">
>           <exclude name="${src}\com\claimplace\icr\xml\*.java"/>
>        </javac>
>     </target>
>
> Looking forward for some feedback..........
>
> thanks and regards,
>
> manish
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> regards,
>
> Manish Sanga
> Tanning Technologies International
>  Call : 91 40 3550093/95 Ext - 8467
>