ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject AW: Jarpend.jar
Date Tue, 31 May 2005 16:41:58 GMT
Never heard. Here some infos:

Project Page:
Short Description:
  Jarpend is a tool to create jar-files containing all Java classes required
by a given set of classes. It 
  also allows you to test whether a certain classpath fulfills the
dependencies of a class. Use it to make 
  the NoClassDefFoundError extinct.
  The goal of the Jarpend Project is to provide tools concerning dependency
checking for Java. It provides 
  a tool called jarpend, that allows you to test whether a certain classpath
fulfills the requirements of a 
  given set of classes and to build a JAR file containing only the required
classes. You can use it through 
  a command line interface or as an Ant Task. Of course this is an Open
Source Project. 

The jarpend.jar is in the source- and binary distro.

In the src-distro there is a class net.sourceforge.jarpend.ant.JarpendTask
which seems to be the task you
need. Declare it with <taskdef> like every external task. 
A look into its source shows following attributes: 
  classes, excludeclasses, excludepackages (all space separated lists), 
  ignoreunfulfilleddependencies, ignorestrangenamedclasses,
includedefaultjavaclasses, debug (boolean),
  destfile (filename)
and a nested

I think you are deeper in that topic than me, so you should be able to guess
what that names could mean :-)


> -----Urspr√ľngliche Nachricht-----
> Von: S I []
> Gesendet am: Dienstag, 31. Mai 2005 18:12
> An:
> Betreff: Jarpend.jar
> Hi
> Have any of you ever used jarpend?  The documentation on 
> makes a  VAGUE mention of the existence of a <jarpend> Ant 
> task and that's 
> where it stops.  No explanation or any examples are given.  
> In the download 
> section there are only 2 files; ~tar.tar and ~tar.gz (which 
> are for unix) 
> but given that java is platform-indpendent...I download both 
> files to my 
> WindowsXP desktop to find them both give a Winzip error msg, 
> "..files are 
> empty..."
> Could anyone please give me an example of <jarpend> Ant task within a 
> build.xml and what .jar/libraries I need to make it work?
> Thanks
> Steven
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message