ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jay Wright <jwri...@once.com>
Subject RE: jar update problem
Date Mon, 09 Dec 2002 22:09:09 GMT

The nightly build directory only has 1.6 alpha in it.  Any way to get 1.5.2?
Would prefer to work with the 1.5.x beta than a 1.6.x alpha.  I think.

Jay

> -----Original Message-----
> From: Dominique Devienne [mailto:DDevienne@lgc.com]
> Sent: Monday, December 09, 2002 10:06 AM
> To: 'Ant Users List'
> Subject: RE: jar update problem
> 
> 
> <jar update="true"/> is broken in Ant 1.5/1.5.1. BugZilla is 
> littered with
> bug reports about it. I think the 1.5.2 branch has the fix, 
> so you could try
> to pick up a nightly build of it. --DD
> 
> -----Original Message-----
> From: Jay Wright [mailto:jwright@once.com] 
> Sent: Monday, December 09, 2002 12:05 PM
> To: 'Ant Users List'
> Subject: jar update problem
> 
> 
> I am using ant 1.5.1 on windows2000 and have noticed some 
> peculiar behavior.
> 
> In the target below, the first operation is a <copy> which 
> copies a jar file
> to the dist directory where it will then be upated.  
> 
> IF there is a new jar file in the base directory, it is 
> copied to the dist
> directory, but the update does NOT happen.  
> 
> IF there is no new jar file in the base directory, then the 
> copy does not
> take place and the update does happen.
> 
> I tried to stick a <sleep seconds="10"/> between the two 
> statements to see
> if there was a problem with timing, but that didn't help.   
> 
> Why is it that the update will NOT work if the jar file has 
> just been copied
> into the directory?
> 
>     <target name="server" >
>         <copy file="${basedir}\wildcatEJB.jar" todir="${dist.dir}"/>
>         <jar jarfile="${dist.dir}\wildcatEJB.jar" update="true">
>             <fileset dir="${build.dir}">
>                 <include name="*.class"/>
>             </fileset>
>             <fileset dir="${conf.dir}">
>                 <include name="META-INF\ejb-jar.xml"/>
>                 <include name="META-INF\jboss.xml"/>
>             </fileset>
>         </jar>
>         <ear earfile="${dist.dir}/clientA.ear"
> appxml="${conf.dir}/META-INF/application.xml">
>             <fileset dir="${dist.dir}" includes="wildcatEJB.jar"/>
>         </ear>
>     </target>
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 

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


Mime
View raw message