I used Eclipse to build a pretty simple Java project. It builds and runs in the IDE. I have a few unit tests I wrote using JUnit. They all build and pass in the IDE.
My project is in the following path:
/home/vg1890/workspace/project/
The main source is in:
/home/vg1890/workspace/project/src
And the tests are in:
/home/vg1890/workspace/project/tests
The package name is com.vg1890.stuff.
When I type: echo $CLASSPATH at the command line, nothing is returned (ubuntu).
- How can I build the entire project from outside the IDE?
- How do make it so that when I distribute the source to another computer that it will build and run (including the unit tests)?
Thanks!
This is exactly the kind of thing that Apache Ant is usually used for. Eclipse supports ant scripts quite well.