hey calvin,

great it worked perfectly, i appreciate your quick response and it really
helped me out..
thanks a lot..  

regards,

Manish 



-----Original Message-----
From: Calvin Yu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 6:44 PM
To: [EMAIL PROTECTED]
Subject: Re: build.xml


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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>

Reply via email to