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

Question about my ant

Hello,
 
I’m using an ant file and I have a question. ¿It is possible to use a function like substring-before function (xpath)?.
 
Thanks!.
 
Sergio Casillas Bayo
SI Technological Solutions
c/Albarracín, 25 1ªPlanta A 28037 Madrid, Spain
atos.net
 
 
 
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
Picon

[ANN] Apache Ant 1.9.6 Released


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

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
software.

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

http://ant.apache.org/bindownload.cgi
http://ant.apache.org/srcdownload.cgi

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.
   https://issues.apache.org/jira/browse/COMPRESS-317

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:

http://ant.apache.org/

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

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) (209.188.14.142)
>      by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2015 07:46:26 +0000
> Received: from localhost (localhost [127.0.0.1])
> 	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,
> 	MISSING_SUBJECT=1.767, RCVD_IN_MSPIKE_H3=-0.01,
> 	RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_WEB=0.614, SPF_PASS=-0.001]
> 	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 ([10.40.0.8])
> 	by localhost (spamd2-us-west.apache.org [10.40.0.9]) (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 [209.85.212.172])
> 	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 10.180.107.70 with SMTP id ha6mr28782249wib.20.1434354383998;
>          Mon, 15 Jun 2015 00:46:23 -0700 (PDT)
> Received: from [10.101.229.121] ([194.117.18.101])
>          by mx.google.com with ESMTPSA id df1sm14524197wib.12.2015.06.15.00.46.21
>          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
Picon

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
case.

Stefan
aalok singhvi | 13 Jun 18:29 2015
Picon

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

Hello,

I am working on a project where i am not able to delete certain files using
ant 1.7. I saw some bug with ant 1.7 where the suggestion was to use ant
1.8 version. My project is built out in 1.7 and it will be a big change to
built it out in 1.8. For a test i tried to use ant 1.8 to delete a file but
it is saying " Unable to delete a file.......". When i did -verbose it
fails on ant.taskdef.delete......method in ant. Any work around. The file
name i am trying to delete is aspectj1.6 specifically. Any thoughts.

Thanks
Aaok

On Thu, Jun 11, 2015 at 8:51 PM, <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.
>
> Acknowledgment: I have added the address
>
>    aaloksinghvi <at> gmail.com
>
> to the user mailing list.
>
> Welcome to user <at> ant.apache.org!
>
> Please save this message so that you know the address you are
> subscribed under, in case you later want to unsubscribe or change your
> subscription address.
>
>
> --- 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: <aaloksinghvi <at> gmail.com>
> Received: (qmail 3119 invoked by uid 99); 12 Jun 2015 00:51:58 -0000
> Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142)
>     by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2015 00:51:58
> +0000
> Received: from localhost (localhost [127.0.0.1])
>         by spamd1-us-west.apache.org (ASF Mail Server at
> spamd1-us-west.apache.org) with ESMTP id 3F2FACD54B
>         for <user-sc.1434061204.nkplmhpdhpmeedmamepa-aaloksinghvi=
> gmail.com <at> ant.apache.org>; Fri, 12 Jun 2015 00:51:58 +0000 (UTC)
> X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org
> X-Spam-Flag: NO
> X-Spam-Score: 2.879
> X-Spam-Level: **
> X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31
>         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
>         HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01,
>         SPF_PASS=-0.001] autolearn=disabled
> Authentication-Results: spamd1-us-west.apache.org (amavisd-new);
>         dkim=pass (2048-bit key) header.d=gmail.com
> Received: from mx1-eu-west.apache.org ([10.40.0.8])
>         by localhost (spamd1-us-west.apache.org [10.40.0.7])
> (amavisd-new, port 10024)
>         with ESMTP id wnUVMh4qEVkW
>         for <user-sc.1434061204.nkplmhpdhpmeedmamepa-aaloksinghvi=
> gmail.com <at> ant.apache.org>;
>         Fri, 12 Jun 2015 00:51:56 +0000 (UTC)
> Received: from mail-ig0-f173.google.com (mail-ig0-f173.google.com
> [209.85.213.173])
>         by mx1-eu-west.apache.org (ASF Mail Server at
> mx1-eu-west.apache.org) with ESMTPS id D0C5924C28
>         for <user-sc.1434061204.nkplmhpdhpmeedmamepa-aaloksinghvi=
> gmail.com <at> ant.apache.org>; Fri, 12 Jun 2015 00:51:55 +0000 (UTC)
> Received: by igbpi8 with SMTP id pi8so1777406igb.1
>         for <user-sc.1434061204.nkplmhpdhpmeedmamepa-aaloksinghvi=
> gmail.com <at> ant.apache.org>; Thu, 11 Jun 2015 17:51:54 -0700 (PDT)
> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
>         d=gmail.com; s=20120113;
>
> h=mime-version:in-reply-to:references:date:message-id:subject:from:to
>          :content-type;
>         bh=pWZAuGb5spcoMA0CCnNrERaHLtWDJXw/WbmnXnaDSTw=;
>
> b=BLGdS2mRJy/dEu0V3f6HIU7SnDaric1onQmi2lVHLwsUL2fzrX13o0mqTrwH815ok2
>
>  FBUgr4l1cI8CtQ63rquH3kviIhe0pZJnKdbCe4WfSLo4gCUcpmEJyddmeZ704fxCOdna
>
>  zM8ip4bpGXVQ1mfa6zWCqox1JfM7tobKyCO7uV2EOsmP5usG+Z2/PWO5hNhvtVo/7CAW
>
>  2sv0ImfAvGb+V9h4FYBW1zE04NF814NnfG/H+T9VrPtP/Cm/AaRB52c9KHDHQzjQ+gEu
>
>  CP47GOXOKDa3QXLowXD5R4jljzrdwBZmeaoqKV97wXec45UXSFaNsAL6ywKy0Lf/2iD6
>          TZHw==
> MIME-Version: 1.0
> X-Received: by 10.50.79.202 with SMTP id l10mr1239998igx.7.1434070314614;
> Thu,
>  11 Jun 2015 17:51:54 -0700 (PDT)
> Received: by 10.36.49.133 with HTTP; Thu, 11 Jun 2015 17:51:54 -0700 (PDT)
> In-Reply-To: <1434061204.71565.ezmlm <at> ant.apache.org>
> References: <1434061204.71565.ezmlm <at> ant.apache.org>
> Date: Thu, 11 Jun 2015 20:51:54 -0400
> Message-ID: <
> CAObRyaRdjOE_oYQbxacxK4rRoYAw4YQ56+2c0AfHzm7VLmrufQ <at> mail.gmail.com>
> Subject: Re: confirm subscribe to user <at> ant.apache.org
> From: aalok singhvi <aaloksinghvi <at> gmail.com>
> To: user-sc.1434061204.nkplmhpdhpmeedmamepa-aaloksinghvi=
> gmail.com <at> ant.apache.org
> Content-Type: multipart/alternative; boundary=089e0122aaeeaf892e0518478314
>
>

--

-- 
Aalok Singhvi
Stefan Bodewig | 4 Jun 06:16 2015
Picon

[ANN] Apache Ant 1.9.5 Released


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

Version 1.9.5 is mostly a bug fix release but adds a few new features
like new resource collections allbutlast/allbutfirst that complement the
existing first/last collections.

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

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

http://ant.apache.org/bindownload.cgi
http://ant.apache.org/srcdownload.cgi

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

Changes in this version include:

Changes that could break older environments:
-------------------------------------------

 * The ReplaceTokens filter can now use token-separators longer than
   one character.
   Bugzilla Report 56584

 * The changes that added <get>'s support for gzip encoding
   automatically uncompressed content that would not have been touched
   before - like when downloading .tar.gz files.  A new flag has
   been added to control the behavior and its default will make <get>
   work as it did in 1.9.3.
   Bugzilla Report 57048

Fixed bugs:
-----------

 * TarArchiveInputStream failed to read archives with empty gid/uid
   fields.
   Bugzilla Report 56641

 * TarArchiveInputStream could throw IOException when reading PAX
   headers from a "slow" InputStream.

 * XMLJunitResultFormatter could throw NullPointerException if Java
   cannot determine the local hostname.
   Bugzilla Report 56593

 * URLResource#getLastModified tried to access the connection to the
   URL without making sure it was established, potentially leading to
   a NullPointerException when using FTP.
   Bugzilla Report 56873

 * Long-Name and -link or PAX-header entries in TAR archives
   always had the current time as last modfication time, creating
   archives that are different at the byte level each time an
   archive was built.

 * runant.py should now work as well when the path of the Java
   executable contains spaces.
   github pull request #1

 * <junitreport> now supports nested <classpath> and <factory> elements.
   Bugzilla Report 47002

 * complete-ant-cmd.pl now also knows about the -file option.
   Bugzilla Report 57371

 * the br-replace template inside the XSLT stylesheets used by
   <junitreport> could cause stack overflows or out-of-memory errors
   when applied to big outputs.
   Bugzilla Report 57341

 * removed spurious warning about unclosed ZipFiles when reading the
   archive failed.
   Port of https://issues.apache.org/jira/browse/COMPRESS-297

 * FileUtils.rename which is used by several tasks can throw a
   NullPointerException if the "normal" renameTo operation fails and
   an exception occurs while rename falls back to copying and
   deleting the file.
   Bugzilla Report 57533

 * complete-ant-cmd.pl would incorrectly suggest words from the build
   file description.
   Bugzilla Report 51931

 * complete-ant-cmd.pl now also completes tasks without a description.
   Bugzilla Report 57542

 * LocalPropertyStack could run into ConcurrentModificationException
   when tasks spawned new child threads that accessed the properties.
   Bugzilla Report 55074

 * TarEntry's constructor with a File and a String arg didn't
   normalize the name.

 * Between 1.8.4 and 1.9.0 TarInputStream started to parse file
   names using the platform's default encoding rather than as ASCII.
   This has been a breaking change that has never been marked as such
   (in fact it went unnoticed).  In order to allow <untar> and
   <tarfileset> to work on platforms who's encoding doesn't match
   the encoding of file names inside the archive, both now support
   encoding attributes.
   The attribute has also been added to <tar> for symmetry.
   Bugzilla Report 57822

Other changes:
--------------

 * it is now possible to provide proxy configuration to signjar
   when using the timestamped authority.
   Bugzilla Report 56678

 * complete-ant-cmd.pl now also analyzes the ANT_ARGS environment
   variable.
   Bugzilla Report 57371

 * ported some of the write-optimization of Commons Compress 1.10 to
   the ZIP package

 * adapted unit tests to Java9 and added "javac1.9" as valid option
   for javac's compiler attribute.

 * performance improvements for <intersect>
   Bugzilla Report 57588

 * MailLogger can now add CC and BCC addresses.
   Bugzilla Report 57789.

 * <scp>'s buffer size has been increased from 1k to 100k to match
   <ftp> and <get>.
   github pull requests #8 and #9

 * The tar package can now deal with group and user ids bigger than
   0x80000000.
   https://issues.apache.org/jira/browse/COMPRESS-314
   https://issues.apache.org/jira/browse/COMPRESS-315

 * <scp> has new attributes fileMode and dirMode that control the
   permissions on the remote side when sending data via SSH.
   Bugzilla Report 43271.

 * New <allbutlast> and <allbutfirst> resource collections can be used
   to select all but a given subset of a resource collection.
   Bugzilla Report 57834.

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

http://ant.apache.org/

Stefan Bodewig, on behalf of the Apache Ant community
WebServices Development | 25 May 13:58 2015

Extracting individual tokens after using stringtokenizer

I am trying to extract individual tokens in ANT after using stringtokenizer to separate the tokens out.  Is
it possible? How do I do it without using any other external ant libraries like ant-contrib?

I attempted to do below, but am stuck at extracting individual tokens

<property name="dirlist" value="./src:./.apt_generated:abc" />
<loadresource property="dirseplist">
      <string value="${dirlist}" />
      <filterchain>
            <tokenfilter>
            <stringtokenizer  delims=":" id="dirliststr"/>
            <replaceregex pattern="(.+)" replace="[\1]" />
            </tokenfilter>
      </filterchain>
</loadresource>
<echo level="info" message="dirlist: '${dirlist}'" />
<echo level="info" message="dirseplist : '${dirseplist}'" />

And the output is
     [echo] dirlist: './src:./.apt_generated:abc'
     [echo] dirseplist : '[./src]:[./.apt_generated]:[abc]'

Thanks

This email transmission and any accompanying attachments may contain CSX privileged and confidential
information intended only for the use of the intended addressee. Any dissemination, distribution,
copying or action taken in reliance on the contents of this email by anyone other than the intended
recipient is strictly prohibited. If you have received this email in error please immediately delete it
and notify sender at the above CSX email address. Sender and CSX accept no liability for any damage caused
directly or indirectly by receipt of this email.
Christopher BROWN | 16 May 15:38 2015
Picon

How should an Ant <fileset> be created programmatically from another (custom) Ant task?

Hello,

I've developed a few custom Ant tasks over time, but I need a little help
doing something specific to Ant's data types.  I've created a task that
retrieves a set of files from a server, but the names aren't known in
advance, they're determine during execution of the task.  I'd like to
create a fileset that has an ID and can be referred to later on by other
tasks and targets in the build.

This is how I assumed I'd get started:

FileSet fs = new FileSet();
fs.setId("someid");
fs.setProject(_project_);
fs.setDir(_dir_);
fs.createInclude().setName("entry/within/dir1/containing/file.abc");
fs.createInclude().setName("entry/within/dir2/containing/file.xyz");

I've some doubts about the "createInclude" logic... but I haven't got that
far yet.  I'm stuck on the "setId()" part which just doesn't exist.

In a build script, I'd write:

<fileset id="someid" dir="somedir">
  <include name="relative/path/to/file" />
</fileset>

... then refer to it later with "refid".

How can I get this to work?

Thanks,
Christopher
Dilini Asanga | 9 May 11:45 2015
Picon

Ant does not return after calling org.glassfish.tyrus.client.ClientManager.connectToServer()

Hi,

I have a main class which I want to run using an ant script. 
(I have attached the project, which includes this main class: WebsocketLocalClient; and the ant script I'm referring to)

This main class executes fully, when I'm running it through the command line.

But when I run it using the ant script, it executes upto,
System.out.println("Starting Websocket-local publisher");

but does not execute beyond the line:
client.connectToServer(new WebsocketLocalEndpoint(), cec, new URI(socketServerUrl));

Ant output is given in attachment-1. 
It does not execute anything after printing the log '[java] Starting Websocket-local publisher'

It seems that,
ant does not return after calling org.glassfish.tyrus.client.ClientManager.connectToServer() method.

Any clues as to why this is happening?

Appreciate any help.
Thanks,
Dilini

Attachment-1:
dilini <at> dilini-Latitude-E6540:~/github/product-cep/modules/samples/producers/websocket-local-client$ ant
Buildfile: /home/dilini/github/product-cep/modules/samples/producers/websocket-local-client/build.xml

init:

compile:
    [javac] /home/dilini/github/product-cep/modules/samples/producers/websocket-local-client/build.xml:58: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
     [copy] Copying 1 file to /home/dilini/github/product-cep/modules/samples/producers/websocket-local-client/temp/classes

run:
     [echo]  Configure -Durl=xxxx -Dtopic=xxxx and (-DfilePath=xxxx and/or -Dsn='sample number') 
     [java] Starting Websocket-local publisher


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe <at> ant.apache.org
For additional commands, e-mail: user-help <at> ant.apache.org
John J. Hughes II | 27 Apr 18:26 2015

tools.jar not found

All,

I have searched online and can't fine and answer so please bear with me.

When I run ANT it says it can't find tools in the JRE lib, why is it looking
there?

If I copy tools.jar from the JDK to the JRE lib it works fine but that will
break on the next update so I would prefer to fix it correctly.

I have rebooted and retested.

There are no extra JDK or JRE values in the path, path simplified to only
show useful values.

I dumped the SET values to text files and search and don't fine any
references to JRE there either.

In settings: 

PATH = .;%JAVA_HOME%\bin;%ANT_HOME%\bin;

Converts to: 

PATH  = .;C:\Program
Files\Java\jdk1.8.0_05\bin;C:\devenv\apache-ant-1.9.4\bin;

C:\Projects>SET JAVA_HOME

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_05

C:\Projects>SET ANT_HOME

ANT_HOME=C:\devenv\apache-ant-1.9.4

Error:

C:\Projects>ant -version

Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre1.8.0_45\lib\tools.jar

Apache Ant(TM) version 1.9.4 compiled on April 29 2014 

So what am I doing wrong, thanks.

John

Stranzenbach, Ralf | 14 Apr 10:50 2015

Acessing ANTs execution graph

Hi,

i have a fairly complex build system that recently introduces some additional compexity. To describe my
problem, i'll sketch a very simplified Ant build:

<project>

    <target name="clean" depends="-clean" />

    <extension-point name="-clean" />

    <target name="init" depends="-init" />

    <extension-point name="-init" />

    <target name="compile" depends="-compile" />

    <extension-point name="-compile" depends="-init" />

    <target name="install" depends="-install" />

    <extension-point name="-install" depends="-compile" />

    <target name="recompile" depends="-recompile" />

    <extension-point name="-recompile" depends="-clean, -compile" />

</project>

This basic structure of the ANT file is required, because all extension-points are extended by specific
implementatiosn for various implementation languages (including PL/I and COBOL).

This way i was able to maintain structured and standardized procedures, to generate the artifacts based on
the varous sources.

Recently we tried to include that "recompile" step, that introduces a different "clean" semantic.
Therefore i've implemented the "clean semantics as follows:

    <target name="std-clean" extensionOf="-clean">

        <echo>Std. Clean</echo>

    </target>

    <target name="recompile-clean" extensionOf="-clean" if="is.Recompile" >

        <echo>Additional behaviour for recompile</echo>

    </target>

    <target name="-recompile-switch">

        <property name="is.Recompile" value="true" />

    </target>

And the "-recompile" Target was extended this way:

    <target name="recompile" depends="-recompile-switch, -recompile" />

While this solution - in principle - activates "-recompile-switch" just before executing "-clean", this
is not guaranteed by ANT. The ANT documentation states, that this dependcy declaration just states, that
"-recompile-switch" will be activated BEFORE recompile executes, but it does not guarantee the order of
execution for "-recompile-switch" and "-recompile".

In my case, the "-clean" targets activates, before "-recompile-switch" has any chance to execute.
(Sometime it works, sometime it fails. But it's backed by ANTs definition.)

Now my question(s):

================

    Are there any ways to define the order of execution to guarantee an optional task just like
"-recompile-switch" to execute at the right moment?

    Is there any way using the Java API to the ANT core to inspect the execution graph?
    Instead of injecting a target setting switch into the execution graph, it might by suitable to look up the
chain of target execution to get an idea wich main target is active.

Unfortunately it is impossible to manipulate the execution graph at runtime, conditionally <import>ing
different extesions.

A interim solution using <antcall> is in place.

    <target name="recompile">

        <antcall target="-recompile" inheritAll="true">

            <param name="is.Recompile" value="true" />

        </antcall>

    </target>

But ths solution requires a complete re-evaluation of the complete set of ANT build filles which takes a
long time and is not applicable in any case.

Mit freundlichen Grüßen,

Ralf Edmund Stranzenbach
Manager, FS-Technology

BearingPoint
Management & Technology Consultants

Karl-Arnold-Platz 1
Düsseldorf 40474
Germany

T + 49 211 17143 6038
C + 49 174 3075 211
F + 49 211 17143 6060

www.bearingpoint.com
<../../owa/redir.aspx?C=4fef6935f97e45feb117b401747f61f1&URL=http%3a%2f%2fwww.bearingpoint.com%2f>
________________________________
BearingPoint GmbH
Geschäftsführer: Marcel Nickler (Vorsitzender), Hans-Werner Wurzel (stellv. Vorsitzender),
Kiumars Hamidian, Matthias Loebich, Kai Wächter, Dr. Robert Wagner
Vorsitzender des Aufsichtsrats: Beat Leimbacher
Sitz: Frankfurt am Main
Registergericht: Amtsgericht Frankfurt am Main HRB 55490

The information in this email is confidential and may be legally privileged. If you are not the intended
recipient of this message, any review, disclosure, copying, distribution, retention, or any action
taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended
recipient, please reply to or forward a copy of this message to the sender and delete the message, any
attachments, and any copies thereof from your system.

Gmane