ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Jain" <Eric.J...@isb-sib.ch>
Subject Remapping file names in jar files
Date Thu, 21 Nov 2002 16:00:00 GMT
Is there any way to include files in a jar file under a path that doesn't
exist on the file system? For example I need to put org/test/* into
WEB-INF/org/test/*.

My current procedure involves copying the files, creating the jar file, and
then removing the copied files again, not exactly elegant. Perhaps something
could be done with a file mapper, or there is an obviously simple
solution...


  <copy todir="conf/WEB-INF/classes">
   <fileset dir="bin">
    <include name="org/test/*Servlet.class"/>
   </fileset>
  </copy>

  <jar
   jarfile="dist/test.war"
   update="no"
  >
   <fileset dir="html">
    <include name="*.jsp"/>
   </fileset>
   <fileset dir="conf">
    <include name="WEB-INF/web.xml"/>
    <include name="WEB-INF/lib/**"/>
    <include name="WEB-INF/classes/**"/>
   </fileset>
  </jar>

  <delete dir="conf/WEB-INF/classes"/>


--
Eric Jain


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