Re: Exec Task Problem on Linux

2015-04-14 Thread Steve Schlaifer
On Tue, Apr 14, 2015 at 03:04:28PM -0500, Earl Hood wrote: > On Tue, Apr 14, 2015 at 2:21 PM, Chris Barlock wrote: > > Thank you, Steve. If I make the executable="/bin/sh" and uncomment the > > protoc command, I get: > > You need the -c option to /bin/sh to indicate it should execute the command

Re: Exec Task Problem on Linux

2015-04-14 Thread Chris Barlock
Re: Exec Task Problem on Linux On Tue, Apr 14, 2015 at 2:21 PM, Chris Barlock wrote: > Thank you, Steve. If I make the executable="/bin/sh" and uncomment the > protoc command, I get: You need the -c option to /bin/sh to indicate it should execute the command that follows

Re: Exec Task Problem on Linux

2015-04-14 Thread Earl Hood
On Tue, Apr 14, 2015 at 2:21 PM, Chris Barlock wrote: > Thank you, Steve. If I make the executable="/bin/sh" and uncomment the > protoc command, I get: You need the -c option to /bin/sh to indicate it should execute the command that follows on the argument list. --ewh --

Re: Exec Task Problem on Linux

2015-04-14 Thread Chris Barlock
Re: Exec Task Problem on Linux On Tue, Apr 14, 2015 at 1:35 PM, Chris Barlock wrote: > I have the following Ant script: ... > Glob expansion is a shell function, hence the error you are getting since the file "*.proto" does not exist. Have a look at . It

Re: Exec Task Problem on Linux

2015-04-14 Thread Chris Barlock
of the command. [exec] /root/protoc/bin/protoc: /root/protoc/bin/protoc: cannot execute binary file [exec] Result: 126 Thoughts? Chris From: Steve Schlaifer To: Ant Users List Date: 04/14/2015 03:15 PM Subject:Re: Exec Task Problem on Linux

Re: Exec Task Problem on Linux

2015-04-14 Thread Earl Hood
On Tue, Apr 14, 2015 at 1:35 PM, Chris Barlock wrote: > I have the following Ant script: ... > Glob expansion is a shell function, hence the error you are getting since the file "*.proto" does not exist. Have a look at . It supports filesets. --ewh ---

Re: Exec Task Problem on Linux

2015-04-14 Thread Steve Schlaifer
On Tue, Apr 14, 2015 at 02:35:03PM -0400, Chris Barlock wrote: > I have the following Ant script: > > > > > value="/root/CCM/srcProtobufJava"/> > > > > > > > > > > >

Re: exec task with *

2008-09-12 Thread Christoph Dittberner
Hi, failonerror is supported ... I use this in my shellscriptlets. But your commandline : cd /home/${usr}/doc zip -ll doc.jar *.properties ignores the errorcode. Therefore I wrote your two commands in one row concatenated with the *&&*. If this doesn't work try something like cd /home/$

Re: exec task with *

2008-09-11 Thread glenn opdycke-hansen
Do you intent to create a zip or a jar file? What is the value of ${usr}? I suggest that the script be written to use the appropriate task, either or For example, usr = ${usr} --glenn On Thu, Sep 11, 2008 at 3:04 PM, I am Who i am <[EMAIL PROTECTED]> wrote: > Hi All > > I'm trying to zip one

Re: exec task with *

2008-09-11 Thread I am Who i am
Thanks for your reply, I think failonerror is not supported, coz i tried that already On Thu, Sep 11, 2008 at 4:30 PM, Christoph Dittberner < [EMAIL PROTECTED]> wrote: > hi you are who you are, > > I guess this problem occurs because YOU (your script) ignores the errorcode > of the cd-command. >

Re: exec task with *

2008-09-11 Thread Christoph Dittberner
hi you are who you are, I guess this problem occurs because YOU (your script) ignores the errorcode of the cd-command. Try something like that: cd /home/${usr}/doc && zip -ll doc.jar *.properties I am Who i am schrieb: Hi All I'm trying to zip one folder, with some specific files from i

Re: Exec task: Args not passed to task

2008-04-29 Thread Xavi
Bug 44900 2008/4/29, Xavi <[EMAIL PROTECTED]>: > > Hi, > > Ok, Im preparing a testcase (it doesnt work only when executing ant from > java, using ant's api), and I will open a bug with testcase attached. > > > 2008/4/29, Peter Reilly <[EMAIL PROTECTED]>: > > > > can you make a selfcontained build.

Re: Exec task: Args not passed to task

2008-04-29 Thread Xavi
Hi, Ok, Im preparing a testcase (it doesnt work only when executing ant from java, using ant's api), and I will open a bug with testcase attached. 2008/4/29, Peter Reilly <[EMAIL PROTECTED]>: > > can you make a selfcontained build.xml that shows the > problem, this will help in tracking down the

Re: Exec task: Args not passed to task

2008-04-28 Thread Peter Reilly
can you make a selfcontained build.xml that shows the problem, this will help in tracking down the problem. Also, can you open a bugzilla issue for the problem, this will help in tracking the issue. Peter On Tue, Apr 29, 2008 at 7:46 AM, Xavi <[EMAIL PROTECTED]> wrote: > Hi, > > I tried it too.

Re: Exec task: Args not passed to task

2008-04-28 Thread Xavi
Hi, I tried it too. It doesn't work -nested args are ignored- :( I forgot to say that I'm running ant in java 1.5. I changed ant's libs (I used again ant 1.6) and args work (arg line arg value, it doesn't matter). But I need to use ant 1.7 :/ 2008/4/28, David Weintraub <[EMAIL PROTECTED]>: > >

Re: Exec task: Args not passed to task

2008-04-28 Thread David Weintraub
What if you used the instead of ? That is: On Mon, Apr 28, 2008 at 3:20 AM, Xavi <[EMAIL PROTECTED]> wrote: > Hi, I'm migrating an app from Ant 1.6.1 to Ant 1.7.0, and I have problems > with exec tasks. Ant execute task without passing arguments to process! > > For example, I have this

RE: exec task

2008-04-09 Thread Shawn Castrianni
:22 AM To: Ant Users List Subject: Re: exec task you can under bash.. Buona fortuna Martin- - Original Message - From: "Shawn Castrianni" <[EMAIL PROTECTED]> To: "'Ant Users List'" Sent: Wednesday, April 09, 2008 11:00 AM Subject: RE: exec task Will t

Re: exec task

2008-04-09 Thread Martin Gainty
you can under bash.. Buona fortuna Martin- - Original Message - From: "Shawn Castrianni" <[EMAIL PROTECTED]> To: "'Ant Users List'" Sent: Wednesday, April 09, 2008 11:00 AM Subject: RE: exec task Will the semicolon trick of executing more than on

RE: exec task

2008-04-09 Thread Shawn Castrianni
Will the semicolon trick of executing more than one command with one exec task work on all platforms?? --- Shawn Castrianni -Original Message- From: Vallon, Justin [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 09, 2008 9:54 AM To: Ant Users List Subject: RE: exec task Shawn, '

RE: exec task

2008-04-09 Thread Vallon, Justin
Shawn, 'exec' runs a process. Side-effects (environment variables, etc) that happen in the process are lost when the process exits. If you want this behavior, then you could generate a script on the fly that does the equivalent ("set-some-vars\nrun-the-command\n"). If you want one task to choos

Re: Exec task not to show a console window under Windows

2007-01-25 Thread dperez
Hi Peter, It is a regular console Windows app. I've taken from http://sourceforge.net/project/shownotes.php?release_id=325693&group_id=23617 It is the xgettext exec that is creating the window - were did you get it from ? -- View this message in context: http://www.nabble.com/Exec-task-not-

Re: Exec task not to show a console window under Windows

2007-01-19 Thread Peter Reilly
It is the xgettext exec that is creating the window - were did you get it from ? Peter On 1/19/07, dperez <[EMAIL PROTECTED]> wrote: Hi Benjamin, Of course:

RE: Exec task not to show a console window under Windows

2007-01-19 Thread dperez
Hi Benjamin, Of course: This is in a loop where I call

RE: Exec task not to show a console window under Windows

2007-01-18 Thread Burgess, Benjamin
Could you show the portion of your build that makes the call now? Ben -Original Message- From: dperez [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007 7:11 AM To: user@ant.apache.org Subject: Exec task not to show a console window under Windows Hi, I have an Ant build.xml sc

Re: Exec task failed while executing bat which locates in different level directory

2005-08-18 Thread Leon Pu
Hi all, I found the problem can be solved by following build script. Leon --- Leon Pu <[EMAIL PROTECTED]> wrote: > Hi all, > > the exec task always failed while executing a bat which in a > different > level directory compare to basedir. > > Here is the sample file system of my buil

Re: Exec task does not fail inspite of non-zero error level

2005-08-06 Thread David A. Bartmess
I may be entirely wrong, been a while, but I think you need to "return 50" or "exit 50" to get the error code returned to ant... At 12:03 PM 8/5/2005, you wrote: Hi, I am using an ant script to trigger off my builds and unit tests but for some reason I am unable to get the exec task to work p

RE: Exec task does not fail inspite of non-zero error level

2005-08-05 Thread Currimbhoy Shahyan
Yes that works !..Thanks ! -Original Message- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 2:06 PM To: Ant Users List Subject: Re: Exec task does not fail inspite of non-zero error level Try: EXIT 50 -Matt --- Currimbhoy Shahyan <[EMAIL PROTECTED]>

Re: Exec task does not fail inspite of non-zero error level

2005-08-05 Thread Matt Benson
Try: EXIT 50 -Matt --- Currimbhoy Shahyan <[EMAIL PROTECTED]> wrote: > > Hi, > > I am using an ant script to trigger off my builds > and unit tests but for > some reason I am unable to get the exec task to work > properly. > My ant script contains the following code snippet: > > > > > f

Re: exec task failing

2005-06-22 Thread Bijo Alex Thomas
It seems that you are trying to execute the command '/usr/local/bin/php' with the argument 'httpd/htdocs/includes/tests/alltests.php' In that case it should be Attribute 'executable' does not buy any arguments. Regards, Bijo _ Bijo Alex Thomas DSRC, 6, Smith

RE: exec task failing

2005-06-22 Thread Bill Rich
Because of the space in the path (/php httpd/)? There has been much discussion on this forum about spaces in path names. HTH Bill -Original Message- From: blackwater dev [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 22, 2005 8:11 AM To: Ant Users List Subject: exec task failing I have

RE: exec task

2004-08-17 Thread Akhil Kumar
Guys, I could do it, its mentioned in the ant tutorial. Regards, Akhil -Original Message- From: Akhil Kumar To: '[EMAIL PROTECTED]' Sent: 17/08/04 12:03 Subject: exec task Hi folks, I wanted to run a DOS command from the ant scripts. for example "dir". How is this possible. I find o