[prev in list] [next in list] [prev in thread] [next in thread]
List: ant-user
Subject: =?utf-8?B?UmU6IGRldGVybWluZSB3aGF0IHNoZWxsc2NyaXB0IGp1c3QgcmFu?=
From: "=?utf-8?B?dmltaWxzYWp1QHlhaG9vLmNvbQ==?=" <vimilsaju () yahoo ! com>
Date: 2012-01-15 4:09:50
Message-ID: 342283.64390.bm () smtp216 ! mail ! gq1 ! yahoo ! com
[Download RAW message or body]
[Attachment #2 (text/plain)]
Why not create a macrodef that echoes the input command and then calls the \
ant-contrib task?
From my HTC Sensation 4G on T-Mobile. The first nationwide 4G network
----- Reply message -----
From: "Peter Reilly" <peter.kitt.reilly@gmail.com>
To: "Ant Users List" <user@ant.apache.org>
Subject: determine what shellscript just ran
Date: Sat, Jan 14, 2012 1:37 pm
The only way I can see, is to set shell into debug mode, using set -x
<antcontrib:shellscript shell="bash" failonerror="true">
set -x
ls -l /tmp
</antcontrib:shellscript>
Peter
On Fri, Jan 13, 2012 at 8:16 PM, grayaii <george.gray@rsa.com> wrote:
> A lot of our build.xmls contain things like this, where “ls -l /tmp” is just
> some arbitrary command:
>
> <antcontrib:shellscript shell="bash" failonerror="true">
> ls -l /tmp
> </antcontrib:shellscript>
>
> When you run this (with verbosity on), you get the output of ls. So far so
> good.
>
> What you *don’t* get is what command just ran. In this case, we do not see
> “ls -l /tmp” anywhere in ant's output!
> The only thing you do see is the name of shell script that was generated
> on-the-fly :
>
> [antcontrib:shellscript] Executing 'bash' with arguments:
> [antcontrib:shellscript] '/tmp/script1463789709null'
>
> Do you know how to get ant to echo what just ran?
>
> I have a bunch of build logs (which is just the output of ant), and I can't
> tell what command caused what output.
>
>
> --
> View this message in context: \
> http://ant.1045680.n5.nabble.com/determine-what-shellscript-just-ran-tp5143649p5143649.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic