Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

including source in JAR  RSS feed

 
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
Sheriff
Posts: 22818
119
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
Boost this thread!