ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From webhiker <webhi...@tiscali.fr>
Subject Re: Uptodate - need some help...
Date Wed, 19 Mar 2003 09:01:32 GMT
I think this is done automagically by the Jar task anyway.
  At least it seems to be for mine :

    <target name="jar" depends="stub">
         <echo message="Checking jar for ${ant.project.name} 
(${jar.file})" />
	<jar jarfile="${jar.file}" update="yes">
          <fileset dir="${classes.dir}" />
          <fileset dir="${metadata.dir}" >
            <include name="**/*.properties"/>
            <include name="**/*.css"/>
          </fileset>
          <zipfileset dir="${image.dir}" prefix="images"/>
          <manifest>
            <attribute name="Built-By" value="${user.name}"/>
            <attribute name="Main-class" 
value="${package.name}.${main.class}"/>
            <attribute name="Class-path" value="lib/GuibioMiRe.jar 
lib/linguisticServices.jar lib/jaxb-api.jar lib/jaxb-ri.jar 
lib/jaxb-libs.jar lib/jaxb-xjc.jar lib/log4j-1.2.5.jar lib/jgraph.jar 
lib/jlfgr-1_0.jar lib/dom4j.jar "/>
          </manifest>
         </jar>
</target>




Ciramella, EJ wrote:
> could someone give me a little guidance using the uptodate task?  I'm trying
> to compare a set of jars against the build directory to see if the classes
> are newer than the jars.
> 



Mime
View raw message