including non source code in jar file
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   seb_seb
Posted On:   Sunday, May 22, 2005 03:50 AM

Can someone tell me what to write in my build file so that when i compile and build my jar file it includes other files (such as .properties files or image files) that are in the source package structure to go into the jar file?


Thanks in advance

/seb

Re: including non source code in jar file

Posted By:   Anonymous  
Posted On:   Monday, May 23, 2005 07:02 AM

I think you´re compiling the sources (*.java, *.gif...) into a build directory (*.class). The compiler only compiles java sources other files are ignored. Therefore these files are not in your build directory and cant be found by . them into your build directory or better use a nested in for getting these directly from source dir.














Re: including non source code in jar file

Posted By:   Roseanne_Zhang  
Posted On:   Sunday, May 22, 2005 07:49 PM

See ant manual javac and jar tasks


http://ant.apache.org/manual/coretasklist.html

About | Sitemap | Contact