hwellmann / jeeunit

Automatically exported from code.google.com/p/jeeunit
Other
0 stars 1 forks source link

Generated war file contains platform jar #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Running with IDEA on OSX, the generated war file contains theses jar files:
IDE:
WEB-INF/lib/idea_rt.jar
OSX:
WEB-INF/lib/junit-rt.jar
WEB-INF/lib/dt.jar
WEB-INF/lib/jconsole.jar
WEB-INF/lib/sa-jdi.jar
WEB-INF/lib/tools.jar
WEB-INF/lib/rt.jar
WEB-INF/lib/resources.jar
WEB-INF/lib/management-agent.jar
WEB-INF/lib/jsse.jar
WEB-INF/lib/JObjC.jar
WEB-INF/lib/jce.jar
WEB-INF/lib/charsets.jar

It would be good if jee unit had some heuristic to excludes these

Original issue reported on code.google.com by den...@sunrunhome.com on 19 Jan 2012 at 11:28

GoogleCodeExporter commented 9 years ago
Accepted, that's an issue. 

jeeunit does indeed use heuristics to excluded unwanted libs, but these are 
mainly aimed at Eclipse and Linux at the moment, and unfortunately, one size 
does not fit all...

There is an API ContainerLauncher.setClasspathFilter(FileFilter) which can be 
used to install a custom filter. At the moment, however, this is not accessible 
via JeeunitRunner. 

A possible approach would be a new property in jeeunit.properties which lets 
you specify a list of exclude patterns.

If you need a quick solution and are not afraid of working with a locally 
modified version of jeeunit, look for setClasspathFilter() in 
EmbeddedGlassfishContainer or EmbeddedTomcat7Container or whatever container 
you're using and adapt the filter to your needs.

Original comment by hwellman...@gmail.com on 25 Jan 2012 at 11:54