File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Manifest file with ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Manifest file with ant" Watch "Manifest file with ant" New topic
Author

Manifest file with ant

pradeep selvaraj
Ranch Hand

Joined: Nov 29, 2005
Posts: 62
I am creating a jar file for my application through ant. At the moment i just have something like the code shown below; where i can have only have one jar file in the class path.



How do i make the Class-Path attribute in the manifest to point to more than one jar file.

Thanks
Serish


[<a href="http://cyvis.sourceforge.net" target="_blank" rel="nofollow">CyVis - Software Complexity Visualiser</a>] [<a href="http://pradeepselvaraj.blogspot.com" target="_blank" rel="nofollow">Pradeep's Blog</a>]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

just put a space between multiple entries
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

If you would like to automatically generate the classpath enties based on ANT rules, check the way the 'package' target generates the 'Class-Path' in the sample file here.

It makes life a bit easier.

Dave
[ May 29, 2006: Message edited by: David O'Meara ]
pradeep selvaraj
Ranch Hand

Joined: Nov 29, 2005
Posts: 62
thanks guys
Serish
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Manifest file with ant
 
Similar Threads
[Ant]Does not run java task
Why can't run?
Manifest Classpath problem
How do you add a classpath to an EAR file?
assignment JAR problem