• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

including source in JAR

 
greg buela
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you tell the compiler to include the source files in the destination JAR, along with the bytecode?
 
Henry Wong
author
Marshal
Pie
Posts: 21489
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
greg buela
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I got it. My IDE was set to exclude .java files when packaging.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic