Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Build the project with maven using just the "mvn" command. This has a whole bunch of things built in e.g. running findbugs, pmd, a license checker, executing the tests, building jar for code, sources, and javadoc. You can also easily put in things like code coverage. Also it can generate a pretty nice html website with reports for everything that is run.
Maven is a really a powerful tool, I highly recommend it. The initial learning curve is steep but once you get used to it you'll never want to go back to ant.
I think we should move anything else you need out of the build.xml, and get rid of altogether. I'll leave it to you to decide when it's best to do that. For example I noticed there are some executable tasks in there, we could make simple bash scripts for that.
As I already mentioned we should fix up the ProjectSearcher as right now the code won't really work as a library. Are there other things that are path dependent? We should probably replace them with proper resources usage.
Also another thing I noticed: The tests should really be separated from the main code. With maven you normally make a separate directory for tests, and then can run them with "mvn test". Note just running "mvn" will also run them as it does the full build. Furthermore it's rather weird that we use JUnit in non-test code.
I've actually already used a tweak of this to deploy the jar to maven central under my group name:
http://search.maven.org/#artifactdetails%7Ccom.nitayjoffe.thirdparty.org.ggp%7Cggp-base%7C0.1%7Cjar. The tweaked pom.xml is here: https://github.com/nitay/ggp-base/blob/dev/pom.xml. As you can see I just replaced org.ggp with com.nitayjoffe.thirdparty.org.gpp. Also this jar looks for classes under ~/code/ggp-base/bin (see https://github.com/nitay/ggp-base/blob/dev/src/org/ggp/base/util/configuration/ProjectConfiguration.java).