• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jar file MANIFEST.MF question.  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the manifest.mf file of a jar file. There is a Class-Path attribute.
Is it mandatory to enumerate each and every jar in the value of the Class-Path attribute. I cannot do a

Class-Path: mylib/*.jar
but have to instead

Class-Path: mylib/1.jar mylib/2.jar mylib/3.jar and so on..

This is tedious. Is there an ant task that will generate the classpath
attribute?
 
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do it in Ant using a path (containing your jars) and the pathconvert task.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!