JTemplate
JTemplate is a simple java project skeleton. Use it to start out new java projects without making a big deal out of it. There are no dependencies other than java and ant, and there is no framework or IDE needed. Good for if you don't use Eclipse or Netbeans or whatever.
Quickstart
-
Edit the build.xml file to your liking. The first few properties are clearly marked, and are expected to be set for your specific project.
-
Run 'ant init'. This deletes .git and makes you a /src tree with a Main class stub and the resources/, lib/, and doc/ directories for your resource files, external jarfile dependencies, and project documentation.
-
You're cooking!
Ant targets you might use from here on out (remember ant -projecthelp):
- 'all' or 'dist'
- 'clean'
- 'jar'
- 'javadoc'
Directories
-
docs: Project documentation. API javadocs will be written to docs/api/ directory. You can include anything you want here (documentation for dependencies, etc).
-
lib: Jar files to be incorporated into the distribution jar file.
-
resources: Resources to be included in the distribution jar file. They will be added to the jar with a path relative to this directory, i.e., resources/foo/bar.jpg will be accessed in java as "foo/bar.jpg".
-
src: Java source files go here.
Files
- projectname-start.sh Application launcher wrapper script.