| Author |
including source in JAR
|
greg buela
Ranch Hand
Joined: Sep 04, 2007
Posts: 71
|
|
|
How do you tell the compiler to include the source files in the destination JAR, along with the bytecode?
|
SCJP 1.5
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16695
|
|
The compiler doesn't generate the jar file -- the jar packager does that. And that tool doesn't care what you add to it. If you want the source in the jar file, just add it to the args list of files to be included. Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
greg buela
Ranch Hand
Joined: Sep 04, 2007
Posts: 71
|
|
|
Thanks, I got it. My IDE was set to exclude .java files when packaging.
|
 |
 |
|
|
subject: including source in JAR
|
|
|