Jan
Thank you for your help. I already use jarpend in my daily builds from the
command line, however, I was hoping that there would be an ANT task for it,
so I could do it from within ANT. Right now, I found out that I can pass it
to <java> task as an Arg and make it work but it's somewhat messy and
requires the use of many other Ant task to accomplish what I do on the DOS
command line.
I found out both the .tar and tar.gz files on jarpend.sourceforge.net are
beta and in mime/base64 and not unzippable by winzip.
jarpend.sourceforge.net Not good, don't download from here.
However, should you ever need this file, go to sourceforge.net home and do a
search for jarpend and download it from that link.
http://sourceforge.net/projects/jarpend/ Download from here.
THANK YOU especially for this part: I wasn't sure how to achieve this.
Thanks again :)
-------------------------------------------------
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
<classpath>
-----------------------------------------------------
----Original Message Follows----
From: [EMAIL PROTECTED]
Reply-To: "Ant Users List" <user@ant.apache.org>
To: user@ant.apache.org
Subject: AW: Jarpend.jar
Date: Tue, 31 May 2005 18:41:58 +0200
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by mc3-f16.hotmail.com
with Microsoft SMTPSVC(6.0.3790.211); Tue, 31 May 2005 10:05:57 -0700
Received: (qmail 35091 invoked by uid 500); 31 May 2005 17:05:49 -0000
Received: (qmail 35042 invoked by uid 99); 31 May 2005 17:05:49 -0000
Received: pass (hermes.apache.org: local policy)
Received: from dnsinet.rzf-nrw.de (HELO dnsinet.rzf-nrw.de) (193.109.238.66)
by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 31 May 2005 10:05:47 -0700
Received: from z011100.bk.fin.local (z011104.bk.fin.local
[193.109.238.140])by dnsinet.rzf-nrw.de (8.12.10/8.12.10) with ESMTP id
j4VH5HRs019001for <user@ant.apache.org>; Tue, 31 May 2005 19:05:17 +0200
Received: from z011104.bk.fin.local ([130.11.7.104]) by z011100.bk.fin.local
with Microsoft SMTPSVC(6.0.3790.0); Tue, 31 May 2005 18:42:10 +0200
Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2657.72)id
<MAQXPF0K>; Tue, 31 May 2005 18:41:59 +0200
X-Message-Info: JGTYoYF78jHHG9kuxJ8d5HlTuy8nt6S3aUsW7JRXnWU=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:user@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.3
required=10.0tests=HTML_40_50,HTML_MESSAGE,NO_REAL_NAME
X-Spam-Check-By: apache.org
X-Mailer: Internet Mail Service (5.5.2657.72)
X-OriginalArrivalTime: 31 May 2005 16:42:11.0173 (UTC)
FILETIME=[B111D950:01C565FF]
X-Virus-Checked: Checked
Return-Path: [EMAIL PROTECTED]
Never heard. Here some infos:
Homepage:
http://jarpend.sourceforge.net/
Project Page:
http://sourceforge.net/projects/jarpend/
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.
Description:
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.
License:
BSD
Download:
http://prdownloads.sourceforge.net/jarpend/jarpend-0.8.0.1.tar.gz?download
http://prdownloads.sourceforge.net/jarpend/jarpend-0.8.0.1-with-source.tar.g
z?download
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
<classpath>
I think you are deeper in that topic than me, so you should be able to guess
what that names could mean :-)
Jan
> -----Ursprüngliche Nachricht-----
> Von: S I [mailto:[EMAIL PROTECTED]
> Gesendet am: Dienstag, 31. Mai 2005 18:12
> An: user@ant.apache.org
> Betreff: Jarpend.jar
>
> Hi
>
> Have any of you ever used jarpend? The documentation on
> Sourceforge.net
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]