This may be a very basic question but I am really confused.
I want to add a few jar files to the build, so that when the build is generated using ant
, the jars will be correctly included.
In my IDE eclipse
, I have added the jar file to build path but have not selected it for export. Now I want to make sure the jar is exported when build is generated. If I go to build path > order and export
and select the jars to be added for export, I can see that its entry is added in .classpath
file of the project. i.e. if the project was X then X.classpath file will be modified.
My question is, is doing what I have described above enough to export a jar? Or Am I supposed to change the build.xml file of the project?
Should I change both the .classpath file & build.xml file or just one of them? Whats the difference between these two files?