commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anil Philip <goodnewsfor...@yahoo.com>
Subject Re: help! how to reduce the size of Commons libs needed?
Date Mon, 07 Aug 2006 11:06:55 GMT
Thanks for replying. 
How would I know what classes I need for ftp and
email?

>From the JarJar manual:
"Zapping: Often your project will need only a subset
of the classes another
library provides. As a convenience, JarJarTask also
adds a "zap"
element, which uses the same wildcard patterns but
causes any matched
class to be removed from the resulting jar file.

In our example, suppose we do not need JDOM support.
With a single "zap"
element we can remove that entire package (and
subpackages, if any):

    <target name="jar" depends="compile">
	<taskdef name="jarjar"
classname="com.tonicsystems.jarjar.JarJarTask"
classpath="lib/jarjar.jar"/>
        <jarjar jarfile="dist/example.jar">
            <fileset dir="build/main"/>
            <zipfileset src="lib/jaxen.jar"/>
            <rule pattern="org.jaxen.**"
result="org.example.jaxen.@1"/>
            <zap pattern="org.jaxen.jdom.**"/>
        </jarjar>
    </target>"

--- Henri Yandell <flamefew@gmail.com> wrote:

> Try JarJar:
> 
> http://tonicsystems.com/products/jarjar/
> 
> It won't do it automatically by the look of it, but
> you can use it to
> remove the parts of Net that you don't need.
> 
> Hen
> 
> On 8/4/06, Anil Philip <goodnewsforyou@yahoo.com>
> wrote:
> > Hello,
> > I have a very pressing problem.
> > My application is distributed via Java Webstart,
> hence
> > it needs to be sensitive to download times and is
> only
> > about < 300Kb.
> > I also need to do basic ftp, and send basic email
> with
> > an attachment. However the library sizes are
> > overwhelming when I use Commons Net.
> > Here are the library sizes:
> >
> > 1) javamail - 349Kb
> > 2) Java Activation Framework - 55 Kb
> > 3) Commons.Net - 177 Kb
> >
> > Thus the Commons libs are TWICE my application
> size!!!
> > Can anyone suggest a solution?
> > Much appreciate any help.
> > thanks,
> > Anil
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> >
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message