mu_sa
mu_sa

Reputation: 2735

Necessary component while delivering the Ant based Java Project

I have a Java Project. Initially i started with .java and .class files. After that i deployed Ant to my project and now i have dist and docs folder in my project directory while also the build.xml .My question is while shipping this project which files should be given to the recepient so he can compile and run it and is there any dependencies that should be mentioned. Bytheway, the recepienet has asked me for the source code and the binaries. Also, do i have to worry about setting the ant classpath ?, Thanks

Upvotes: 0

Views: 55

Answers (2)

Perception
Perception

Reputation: 80633

You should deliver to your client, absolutely everything required to compile and run your program. Which would mean at a bare minimum the source, all dependent library files, and the build script, all nicely packaged up. Here's a basic layout you can use:

src         (all your source code here)
lib         (third party libraries here)
build.xml   (your build script)

Make sure you can build your project based off just the content in the laid out folders. Then clean up the folders, zip them into an archive and send the archive to your client.

Upvotes: 2

JavaKungFu
JavaKungFu

Reputation: 1314

If you are using Ant to build your project and you have already created a build.xml file, then including this would help the person to build your project by specifying the dependencies etc.

The Ant site has example of a build.xml file. http://ant.apache.org/manual/using.html#example

Upvotes: 0

Related Questions