• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Update a list of classes to an existing jar file

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there,

I need to be able to update a specified list of classes to an existing jar file. Now one way to do this would be to use the include file attribute for each of the classes i need to update and set the update attribute to true for teh jar task.

But what i need is to be able to read this list from an external properties file and take it from there rather than changing the ant script itself to reflect the changes in files I would like to update to the jar.

Help and suggestion would be deeply appreciated.

cheers
Jack
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried using the
includesfile attribute of jar, from the Ant Manual on Jar Task?

It's "the name of a file. Each line of this file is taken to be an include pattern"

I remember someone specifying the includes for the tar task in a file, the only issue they were having was unexpected behavior when the file was empty.

Here's a code snipped from the tar example.,,

[ September 15, 2006: Message edited by: Carol Enderlin ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic