Is it possible to exclude a directory containing
test classes when creating a jar file?
I created an application with Eclipse. To test functionality I created some test classes. These classes do not have to be included in my jar file.
MyApplication is part of the
foo.bar package. To test the application I also have a
foo.bar.test directory.
My directory structure looks like:
manifest.txt contains:
I would jar this with:
And as far as I can see (jarring is on verbose)
MyTest1.class and
MyTest2.class are both included in the jar file.