Jump to content
Excelsior Forums
orasis

.usg file format?

Recommended Posts

Hello,

In order to simplify our JET perfect process, we are using proguard (http://proguard.sourceforge.net/) to eliminate dead classes and methods in our jars before using JET.

This way, it only takes us 30 seconds to spot an error with missing a reflectively invoked class rather than waiting an hour for JET Perfect to compile and give us hard to decipher errors.

So, what we want to do is manually specify that all classes and methods within a given package should be included in the JET Perfect.

So I want to include com.onionnetworks.* and org.apache.commons.*, how do I do this?

Share this post


Link to post
Share on other sites

Hi,

Possible solution is to use the MakeUSG utility (http://www.excelsior-usa.com/download/jet/MakeUSG30.jar)

It takes a set of jar files and prints its contents in the format of .usg file to the standard output. To run it enter:

java -jar MakeUsg30.jar YourJarWithClasses.jar >YourUsgFile.usg

Then you can manually remove all unnecesary mentions of fields, methods and classes from the YourUsgFile.usg.

Regards.

Share this post


Link to post
Share on other sites

×