ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barry Pape" <bp...@netspend.com>
Subject RE: Strip directory from fileset includesfile jar location
Date Mon, 19 May 2008 21:21:41 GMT
Zipfileset works with jars also, I don't know if there is a reason not
to use it with them though.  The prefix attribute allows you to change
the path for the files of the fileset in the archive.
http://ant.apache.org/manual/CoreTypes/zipfileset.html

-Barry

-----Original Message-----
From: Tom Corcoran [mailto:boardtc@gmail.com] 
Sent: Monday, May 19, 2008 11:29 AM
To: user@ant.apache.org
Subject: Strip directory from fileset includesfile jar location


Doing the following creates a sub directory properties in my jar with my
groovy property files, as desired:

<jar destfile="${jar.dir}/${jar.name}.jar" update="no"
basedir="${classes.dir}">
<fileset dir="."><include name="**/properties/*.groovy" /></fileset>	
</jar>

However, I have a log4j.properties file which is also located in this
the
properties directory on my _file system_ but I want it in the root level
of
the jar (so it can be found in the path) and not in the properties
directory. how can I do that?
-- 
View this message in context:
http://www.nabble.com/Strip-directory-from-fileset-includesfile-jar-loca
tion-tp17322626p17322626.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


-----------------------------------------
Confidentiality Notice!
This electronic transmission and any attached documents or other
writings are confidential and are for the sole use of the intended
recipient(s) identified above. This message may contain information
that is privileged, confidential or otherwise protected from
disclosure under applicable law. If the receiver of this
information is not the intended recipient, or the employee, or
agent responsible for delivering the information to the intended
recipient, you are hereby notified that any use, reading,
dissemination, distribution, copying or storage of this information
is strictly prohibited. If you have received this information in
error, please notify the sender by return email and delete the
electronic transmission, including all attachments from your
system.


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


Mime
View raw message