GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — GitHub - sandeepmasa/sample-java-project at dd3854112b9d976154508b69ce7f8105d90316fa Folders and filesRepository files navigationThis is just a reference for setting up a new Java project. It contains some of the little Ant tricks I've learned. Building this project requires that Ivy be available to Ant. All you need is ivy.jar in Ant's classpath (in your $CLASSPATH, $ANT_HOME/lib, or ~/.ant/lib). You will need to have Astyle installed and in your path for the "format" target to work. If it's missing, that's fine. It won't affect any other targets. Ant will be looking for Checkstyle, which provides the "check" target. Except the extra target, I think it should work without it. Like a hardcore bureaucrat, Checkstyle will harshly criticize your code, requiring you to add every bit of excessive and needless boilerplate. That can keep some idle hands pretty busy. Ant will be looking for ProGuard, which provides the "optimize" target. You should still be able to build the project without it. Only the "optimize" target will not work. Note that ProGuard and Checkstyle are needed only in the build classpath, not your project's classpath. That means you probably don't want them in lib/. Like Ivy, they should be where Ant can get to them. I hate coding absolute paths in my build script and I hate including built files as part of the base project. My philosophy is that the *environment* should be set up so that the tool can easily find the external resources they need (JUnit, etc.) from the system, not within the project. It's the system that provides the libraries. Anyone who has the proper development environment set up -- one that carries across many projects -- should be able to clone the repository and do the build without editing anything or installing anything else into the project space. AboutExample Ant-based Java project ResourcesReleasesPackagesContributorsLanguages |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |