ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Buonassisi, Vincent" <vbuon...@sprintspectrum.com>
Subject problem when updating a jar file
Date Wed, 11 Sep 2002 13:34:34 GMT
hi,

i am having problems updating a jar file after it was created.  i use the
following target to create my jar file:

<target name="jar" depends="compile">
     <jar destfile="${ejb.delivery.jar}" manifest="${manifest}"
basedir="${conf}" 
	includes="audit.properties, META-INF/**" update="true"/>
     <jar destfile="${ejb.delivery.jar}" basedir="${build}"
	includes="**/QueueReceiveBean.class, **/OracleAccess.class,
**/MessageProcessor.class, **/AuditMessage.class" />
     <jar destfile="${ejb.delivery.jar}" basedir="/tmp"
	includes="Version.class" update="true"/>
</target>

the jar file is created just fine with the first jar task.  but, the next
two tasks do not update the jar file.  the ant output is:

jar:
      [jar] Building jar:
/workspaces/dev/vbuona01/sec/dist/audit/deployable_sec_audit.jar
      [jar] adding directory META-INF/
      [jar] adding entry META-INF/MANIFEST.MF
      [jar] adding entry META-INF/ejb-jar.xml
      [jar] adding entry META-INF/weblogic-ejb-jar.xml
      [jar] adding entry audit.properties
      [jar] erc/sec/audit/OracleAccess.class omitted as
/workspaces/dev/vbuona01/sec/dist/audit/deployable_sec_audit.jar is up to
date.
      [jar] erc/sec/audit/AuditMessage.class omitted as
/workspaces/dev/vbuona01/sec/dist/audit/deployable_sec_audit.jar is up to
date.
      [jar] erc/sec/audit/QueueReceiveBean.class omitted as
/workspaces/dev/vbuona01/sec/dist/audit/deployable_sec_audit.jar is up to
date.
      [jar] Version.class omitted as
/workspaces/dev/vbuona01/sec/dist/audit/deployable_sec_audit.jar is up to
date.

i can replace the three jar targets with one and use the fileset target and
it will work just fine.  but, i would like to know why the above is
happening.

thanks,

Vincent J. Buonassisi
IT Enterprise Reusable Components
Sprint PCS
(913) 762-9320



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