ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <umag...@apache.org>
Subject Jar file from Verbose Output
Date Tue, 03 Sep 2002 20:53:26 GMT
Hi,
I propose to create a task that reads in the output 
of java -verbose:class MyApp (stored in a file)
and create a jar file that contains all the classes
that were loaded to run MyApp.

The use case is described here (though the 
implementation is not quite elegant enough)
http://www.michaelmoser.org/jarjar/jarjar.htm

Weblogic ships with a verboseToZip utility too,
primarily to create a jar that contains just those
weblogic files that are needed for a remote EJB 
client to run without having to have the huge 
weblogic.jar copied over to the client machine 
as well.

The task's syntax would be:

<verbosetojar srcFile="verbose.txt" 
              destFile="mini.jar"
              <!-- optional --> manifest="mymanifest.mf">
    <!-- optional -->
    <patternset>
        <exclude name="java**"/>
    </patternset>
</verbosetojar>

Would such a task be useful?

Cheers,
Magesh

**************************************************
*  Opportunist: A person who starts taking bath  *
*  if he accidentally falls into a river.        *
**************************************************


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message