Content received from: http://JavaFAQ.nu/java-article55.html
Question: I'm trying to write a script to package my class files into a jar file Tuesday, February 11, 2003 (00:00:00)
Posted by jalex
Question: I'm trying to write a script to
package my class files into a jar file. I can use "jar cf a.jar temp" and it
takes all files in the temp directory. Unfortunatly it also includes all source
java files. Is it possible to just include the *.class files but also recurse
all directories?
Answer: Compile with the -d option that lets to
specify a directory where your class files must be placed.
***************************************
Our older tips: March 22, 2001 - Oktober 21, 2002
read here.
All published and not published on site tips you can find
here
|