LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-18-2007, 03:57 PM   #1
revof11
Member
 
Registered: Nov 2003
Location: Macungie, PA
Distribution: Fedora Core 9, Gentoo 2008.0
Posts: 108

Rep: Reputation: 15
Java + Ant - multiple Jar update


I have a single file that I wish to place in multiple, existing Jar files. The problem is that the number of Jar files will be growing significantly and I do not wish to copy-and-paste the Ant script pieces each time one appears.

The update I am currently using is this (roughly):

Code:
<jar jarfile="${my.jar.file.1}" update="true">
  <fileset file="${my.extra.info}" />
</jar>
<jar jarfile="${my.jar.file.2}" update="true">
  <fileset file="${my.extra.info}" />
</jar>
I would hate to reinvent the wheel and create a custom Ant task for this, so I would like to know if there is some way to do something similar to this (I could not find anything after Googling for a little while):

Code:
<jar update="true">
  <jars dir="${my.jar.dir}" includes="**/*.jar" />
  <fileset file="${my.extra.info}" />
</jar>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Update Your XML with XSLT, Apache Ant, and Java SE LXer Syndicated Linux News 0 08-24-2006 07:54 PM
ant for tomcat5 on FC5, problems with classpath/jar files rhoekstra Programming 0 05-24-2006 04:31 AM
Fedora Core 1 Associating .jar files with java -jar command pymehta Fedora 0 01-13-2005 05:26 AM
Compile Java - .class, .java, .jar ? woranl Programming 2 11-09-2004 10:12 PM
java ant tomcat j-ray Linux - Software 1 09-12-2002 11:59 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration