ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Jain" <>
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

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

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

   <fileset dir="html">
    <include name="*.jsp"/>
   <fileset dir="conf">
    <include name="WEB-INF/web.xml"/>
    <include name="WEB-INF/lib/**"/>
    <include name="WEB-INF/classes/**"/>

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

Eric Jain

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message