rvasa / jseat

Automatically exported from code.google.com/p/jseat
0 stars 0 forks source link

Filter that will omit certain types of classes while loading the JAR files. #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Background::
Some applications tend to be shipped as a single JAR file incorporating a
number of libraries (e.g. Apache XML library will be bundled into the
actual application JAR file).

Issue:
These additional classes should not be processed, we need to skip them
while loading the JAR file.

Potential method:
This can be done by providing a regex inside the Versions file to indicate
classes that need to be excluded.  This can work well because most of these
additional class files have a clear Package name at the start that we can
use -- e.g. EXCLUDE=org.apache.xml.*;com.ibm.xml.*

This feature will make the data collection more consistent for certain type
of applications that tend to ship these libraries.

This also means we no longer have to manually remove the JAR files that we
are not interested in processing.

Original issue reported on code.google.com by rajesh.v...@gmail.com on 16 Jul 2007 at 6:42

GoogleCodeExporter commented 9 years ago
Feature will be fine if we can work by including and excluding packages.

INCLUDE_PKG=<semi-colon seperated list of package names>
EXCLUDE_PKG=

Implementation can use the startWith() method on the String.

Original comment by rajesh.v...@gmail.com on 16 Jul 2007 at 6:53

GoogleCodeExporter commented 9 years ago

Original comment by rajesh.v...@gmail.com on 17 Jul 2007 at 7:46