aalok singhvi | 1 Nov 22:34 2015

Class size

I have a basic question...

If i compile a simple hello world java program using javac in ant i get a
different size as compared to class compiled with maven plugin.
My java source and target it 1.6.

What is the reason. Can anyone help me with this. I will really appreciate
your help.



Aalok Singhvi
Jackie Xiao | 13 Oct 18:32 2015

Ant Jar Issue

​Dear list

>>The issue:
When jar-ing a module which contains binary certificate file (auth.p12) on CentOS, with Ant 1.9.2, it
seems the p12 file was corrupted after jar compression. (When reading the cerf file with InputStream,
below exception was thrown)

Exception message:

>>The subtle thing:
BUT, if we open the result jar with 7zip on Windows, drag out the p12 file, then drag into the jar again, the
certificate file can be read without problem by InputStream.

>>The guess:
So, 7zip can compress the file correctly, which made me guess it's the jar task which caused the problem.

So I use "jar xvf jarfile" to unjar, then "tar xvf myfile.jar *" to "tar a jar file", and it worked....

>>The question:
Have you guys encounter the same issue, or any suggestions.

Thanks in advance.

This e-mail and any attachments thereto are intended for the sole use of the recipient(s) named above and
may contain confidential and/or privileged material. Any use of the information contained herein
(Continue reading)

Christopher BROWN | 13 Sep 23:00 2015

Java 9 and javac


Java 9's new module system will add extra options for the "javac" command.
Are there any plans to provide support for this with Ant?

Stefan Bodewig | 8 Sep 13:30 2015

Re: What are the plans for Ant 2.0?

On 2015-09-07, Greg Hall wrote:

> I can't find any reference to any plans for 2.0 on the ant site.

As Jan said, there are no concrete plans for a major re-write of Ant.
We've really "only" been doing maintenance releases with small backwards
compatible improvements and bug fixes for quite some time now.

Jan Matèrne (jhm | 8 Sep 08:06 2015

AW: What are the plans for Ant 2.0?

Yes this is the right list.

We don't have a release plan - next release comes when we (the PMC) decide to release one.
Could be 1-2 years after the last release (like 1.9.5), could be just few weeks (like 1.9.6) - 
depends of the changes.

2.0 would be a version with massive changes in the architecture - I don't see such effords.
So the next version would be 1.9.7 or 1.10.0 ...


> -----Ursprüngliche Nachricht-----
> Von: Greg Hall [mailto:greghall <at> bantling.me]
> Gesendet: Montag, 7. September 2015 19:53
> An: user <at> ant.apache.org
> Betreff: What are the plans for Ant 2.0?
> Hi.
> I can't find any reference to any plans for 2.0 on the ant site.
> Having used ant for a long time, I have some ideas on stuff I'd like to
> see in the 2.0 release when it comes out. Is this the right mailing
> list to discuss this on?
> Tx.
Greg Hall | 7 Sep 19:53 2015

What are the plans for Ant 2.0?


I can't find any reference to any plans for 2.0 on the ant site.

Having used ant for a long time, I have some ideas on stuff I'd like to see
in the 2.0 release when it comes out. Is this the right mailing list to
discuss this on?

Martin Gainty | 7 Sep 14:10 2015

RE: build_tools.jar missing

From: mgainty <at> hotmail.com
To: users <at> ant.apache.org
Subject: build_tools.jar missing
Date: Sun, 6 Sep 2015 20:04:54 -0400

<taskdef name="manifest-version"
           classpath="..\build_tools.jar" />

cannot find ManifestVersion
cannot find build_tools.jar

any clues?


Casillas Bayo, Sergio (ext | 13 Aug 09:17 2015

Question about my ant

I’m using an ant file and I have a question. ¿It is possible to use a function like substring-before function (xpath)?.
Sergio Casillas Bayo
SI Technological Solutions
c/Albarracín, 25 1ªPlanta A 28037 Madrid, Spain
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.

Este mensaje y los ficheros adjuntos pueden contener información confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente y pueden estar protegidos por secreto profesional.
Si usted recibe este correo electrónico por error, gracias por informar inmediatamente al remitente y destruir el mensaje.
Al no estar asegurada la integridad de este mensaje sobre la red, Atos no se hace responsable por su contenido. Su contenido no constituye ningún compromiso para el grupo Atos, salvo ratificación escrita por ambas partes.
Aunque se esfuerza al máximo por mantener su red libre de virus, el emisor no puede garantizar nada al respecto y no será responsable de cualesquiera daños que puedan resultar de una transmisión de virus.
Stefan Bodewig | 3 Jul 07:04 2015

[ANN] Apache Ant 1.9.6 Released

The Apache Ant Team is pleased to announce the release of Apache Ant

Version 1.9.6 fixes a regression in Ant's zip package introduced with
Ant 1.9.5.

Apache Ant is a Java library and command-line tool that helps building

Source and binary distributions are available for download from the
Apache Ant download site:


When downloading, please verify signatures using the KEYS file available
at the above location when downloading the release.

Changes in this version include:

Fixed bugs:

 * ArrayIndexOutOfBoundsException when ZIP extra fields are read and
   the entry contains an UnparseableExtraField.

Other changes:

* Hidden <javaconstant> resource is published now. It reads the
  value of a specified java constant.

For complete information on Ant, including instructions
on how to submit bug reports, patches, or suggestions for improvement,
see the Apache Ant website:


Stefan Bodewig, on behalf of the Apache Ant community
xeonmailinglist-gmail | 15 Jun 09:46 2015

Re: confirm unsubscribe from user <at> ant.apache.org

On 06/15/2015 08:46 AM, user-help <at> ant.apache.org wrote:
> Hi! This is the ezmlm program. I'm managing the
> user <at> ant.apache.org mailing list.
> I'm working for my owner, who can be reached
> at user-owner <at> ant.apache.org.
> To confirm that you would like
>     xeonmailinglist <at> gmail.com
> removed from the user mailing list, please send a short reply
> to this address:
>     user-uc.1434354386.iincodccddlahmiiapgl-xeonmailinglist=gmail.com <at> ant.apache.org
> Usually, this happens when you just hit the "reply" button.
> If this does not work, simply copy the address and paste it into
> the "To:" field of a new message.
> or click here:
> 	mailto:user-uc.1434354386.iincodccddlahmiiapgl-xeonmailinglist=gmail.com <at> ant.apache.org
> I haven't checked whether your address is currently on the mailing list.
> To see what address you used to subscribe, look at the messages you are
> receiving from the mailing list. Each message has your address hidden
> inside its return path; for example, mary <at> xdd.ff.com receives messages
> with return path: <user-return-≤number>-mary=xdd.ff.com <at> ant.apache.org.
> Some mail programs are broken and cannot handle long addresses. If you
> cannot reply to this request, instead send a message to
> <user-request <at> ant.apache.org> and put the entire address listed above
> into the "Subject:" line.
> --- Administrative commands for the user list ---
> I can handle administrative requests automatically. Please
> do not send them to the list address! Instead, send
> your message to the correct command address:
> To subscribe to the list, send a message to:
>     <user-subscribe <at> ant.apache.org>
> To remove your address from the list, send a message to:
>     <user-unsubscribe <at> ant.apache.org>
> Send mail to the following for info and FAQ for this list:
>     <user-info <at> ant.apache.org>
>     <user-faq <at> ant.apache.org>
> Similar addresses exist for the digest list:
>     <user-digest-subscribe <at> ant.apache.org>
>     <user-digest-unsubscribe <at> ant.apache.org>
> To get messages 123 through 145 (a maximum of 100 per request), mail:
>     <user-get.123_145 <at> ant.apache.org>
> To get an index with subject and author for messages 123-456 , mail:
>     <user-index.123_456 <at> ant.apache.org>
> They are always returned as sets of 100, max 2000 per request,
> so you'll actually get 100-499.
> To receive all messages with the same subject as message 12345,
> send a short message to:
>     <user-thread.12345 <at> ant.apache.org>
> The messages should contain one line or word of text to avoid being
> treated as sp <at> m, but I will ignore their content.
> Only the ADDRESS you send to is important.
> You can start a subscription for an alternate address,
> for example "john <at> host.domain", just add a hyphen and your
> address (with '=' instead of ' <at> ') after the command word:
> <user-subscribe-john=host.domain <at> ant.apache.org>
> To stop subscription for this address, mail:
> <user-unsubscribe-john=host.domain <at> ant.apache.org>
> In both cases, I'll send a confirmation message to that address. When
> you receive it, simply reply to it to complete your subscription.
> If despite following these instructions, you do not get the
> desired results, please contact my owner at
> user-owner <at> ant.apache.org. Please be patient, my owner is a
> lot slower than I am ;-)
> --- Enclosed is a copy of the request I received.
> Return-Path: <xeonmailinglist <at> gmail.com>
> Received: (qmail 75835 invoked by uid 99); 15 Jun 2015 07:46:26 -0000
> Received: from Unknown (HELO spamd2-us-west.apache.org) (
>      by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2015 07:46:26 +0000
> Received: from localhost (localhost [])
> 	by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 20ABB1A55C7
> 	for <user-unsubscribe <at> ant.apache.org>; Mon, 15 Jun 2015 07:46:26 +0000 (UTC)
> X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org
> X-Spam-Flag: NO
> X-Spam-Score: 2.26
> X-Spam-Level: **
> X-Spam-Status: No, score=2.26 tagged_above=-999 required=6.31
> 	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
> 	autolearn=disabled
> Authentication-Results: spamd2-us-west.apache.org (amavisd-new);
> 	dkim=pass (2048-bit key) header.d=gmail.com
> Received: from mx1-us-west.apache.org ([])
> 	by localhost (spamd2-us-west.apache.org []) (amavisd-new, port 10024)
> 	with ESMTP id HqmnSUcxMVhi for <user-unsubscribe <at> ant.apache.org>;
> 	Mon, 15 Jun 2015 07:46:25 +0000 (UTC)
> Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [])
> 	by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 3E42B216F0
> 	for <user-unsubscribe <at> ant.apache.org>; Mon, 15 Jun 2015 07:46:25 +0000 (UTC)
> Received: by wiwd19 with SMTP id d19so66279318wiw.0
>          for <user-unsubscribe <at> ant.apache.org>; Mon, 15 Jun 2015 00:46:24 -0700 (PDT)
> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
>          d=gmail.com; s=20120113;
>          h=message-id:date:from:user-agent:mime-version:to:content-type
>           :content-transfer-encoding;
>          bh=MbpGfC0o8MZZ6J4r/It9RWD5i54IqB9WP3vPIGikw0M=;
>          b=uPoFFBlTSJLIYVVJ1RpDw6CrT82Lt2/MEqUSlYqrhFqUhtYSgFlFE6ajN+bdZ5L14g
>           6cKqjyj4a7x19/LlJ9+9ct6iCqBUno9RuLXQerOSbeZWSZCoazNQ5pmu7SROXuKPpOQr
>           GkRzZSnnfxqGv8qKf/tPtdfdMAjbwZUMM17+GiZf6gyJzUutTAvdW3+iJBugEwb+WgiH
>           kDi6mLVz3cWgTHH+fawZ94Wey/36UouN6rgcGlUg+/Cdzm0jn7IEsSb3MMI+HN1DQ6kb
>           N7KeL2yKyy0F/xOj3cffrWDxEeb7+VAYo7SzYGkEAa1E9iDi/SISR+fwGAkzSF5J9xfp
>           BWeQ==
> X-Received: by with SMTP id ha6mr28782249wib.20.1434354383998;
>          Mon, 15 Jun 2015 00:46:23 -0700 (PDT)
> Received: from [] ([])
>          by mx.google.com with ESMTPSA id df1sm14524197wib.12.2015.
>          for <user-unsubscribe <at> ant.apache.org>
>          (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
>          Mon, 15 Jun 2015 00:46:22 -0700 (PDT)
> Message-ID: <557E82A5.8000800 <at> gmail.com>
> Date: Mon, 15 Jun 2015 08:45:41 +0100
> From: xeonmailinglist-gmail <xeonmailinglist <at> gmail.com>
> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
> MIME-Version: 1.0
> To: user-unsubscribe <at> ant.apache.org
> Content-Type: text/plain; charset=utf-8; format=flowed
> Content-Transfer-Encoding: 7bit


Stefan Bodewig | 14 Jun 19:08 2015

Re: WELCOME to user <at> ant.apache.org

[please don't drop the user list from replies]

On 2015-06-14, aalok singhvi wrote:

> When i use verbose to print errors.... its gives certain info as follows...

> It errors out on ant taskdef delete handle
> Delete.java line 720, 769 765 and 586.

It owuld be better if you could paste the full stack trace - and even
more important - tell us the exact version of Ant you are using (output
of "ant -version")

> I am on Win7.

On Windows files may be locked by processes that have opened it - which
includes Ant itself, so this means you may run into trouble of you try
to remove something that has been touched by Ant before.

> I am deleting this file before it is copied over to the project and used in
> classpath.

If it was part of your CLASSPATH environment variable, Java would load
it when starting Ant and there is no chance for Ant to remove it.

I'm not sure how you copy the file after you've deleted it :-)

If you copy the file (using Ant) before trying to delete it, the file
may still be considered open by Windows.  This is a known problem and
Ant tries to work around it by registering the file as "deleteOnExit".
Even with 1.7.0 you should see a message about "This attempts to delete
the file when the Ant jvm has exited and might not succeed" in this