aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes MANIFEST.MF Class-path 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.MF Class-path" Watch "MANIFEST.MF Class-path" New topic
Author

MANIFEST.MF Class-path

ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 370
I used eclipse and have a project. I saw in its MANIFEST.MF file it includes

Class-Path:

project_1.jar
project_2.jar

I believe this file is created by eclipse. However when I looked at the project's property --> Java build path, I only saw "project_1" there. So

Question 1: when I build this project, do I have to build (compile) "project_1" and "project_2" first ? Or do I just need to compile "project_1" first ?


Question 2: when I write ant script to create a jar file for this project, the jar will include a "META-INF" and a MANIFEST.MF inside. How do I specify in my ant script that I will just use this MANIFEST.MF ? (I assume I should provide this info in the "jar" target, but how ?)

Thank You.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: MANIFEST.MF Class-path
 
Similar Threads
assignment JAR problem
Not able to display starting jsp page index.jsp
Submission Jar: test case + Ant build script
ClassCastException: org.apache.struts.action.ActionServlet cannot be cast to javax.servlet.Servlet
Ant Run error: duplicacy of java file in different jar