exec task fails for service account

2017-01-17 Thread Sebastian Götz
run my builds again. But until now I face the problem that an exec tasks in a very early stage of the build script fails with the following message: Execute failed: java.io.IOException: Cannot run program "javac" (in directory "C:\Program Files\Java\jdk1.8.0_111\bin"): C

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
Thank you, Earl. Was not aware of apply. That worked nicely! I would love to understand why exec does not work, though, when the executable is "/bin/sh" and the protoc command is the first arg. Chris From: Earl Hood To: Ant Users List Date: 04/14/2015 03:20 PM Subject:

Re: Exec Task Problem on Linux

2015-04-14 Thread Chris Barlock
ments are [chmod] not part of the command. [chmod] Applied chmod to 1 file and 0 directories. [exec] Current OS is Linux [exec] Setting environment variable: LD_LIBRARY_PATH=/root/protoc/lib [exec] Executing '/bin/sh' with arguments: [exec] '/root/protoc/b

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
a because it already exists. > [chmod] Executing 'chmod' with arguments: > [chmod] '755' > [chmod] '/root/protoc/bin/protoc' > [chmod] > [chmod] The ' characters around the executable and arguments are > [chmod] not

Exec Task Problem on Linux

2015-04-14 Thread Chris Barlock
se it already exists. [chmod] Executing 'chmod' with arguments: [chmod] '755' [chmod] '/root/protoc/bin/protoc' [chmod] [chmod] The ' characters around the executable and arguments are [chmod] not part of the command. [chmod] Applied chmod

AW: how do I "echo" or display the full command exec is about to run?

2013-08-20 Thread jhm
No by mind. But afaik all is run via "run configuration". So have a look there. Jan > -Ursprüngliche Nachricht- > Von: Vincent Cai [mailto:w...@cypress.com] > Gesendet: Dienstag, 20. August 2013 10:52 > An: Ant Users List > Betreff: RE: how do I "echo"

RE: how do I "echo" or display the full command exec is about to run?

2013-08-20 Thread Vincent Cai
Thanks for the reply. Could you tell me in Eclipse how to configure ant to run in "-verbose" mode? -Original Message- From: Jan Matèrne (jhm) [mailto:apa...@materne.de] Sent: 2013年8月20日 15:27 To: 'Ant Users List' Subject: AW: how do I "echo" or display the

AW: how do I "echo" or display the full command exec is about to run?

2013-08-20 Thread jhm
Run Ant in "-verbose" mode. Jan > -Ursprüngliche Nachricht- > Von: Vincent Cai [mailto:w...@cypress.com] > Gesendet: Dienstag, 20. August 2013 08:51 > An: user@ant.apache.org > Betreff: how do I "echo" or display the full command exec is about to

how do I "echo" or display the full command exec is about to run?

2013-08-19 Thread Vincent Cai
This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message.

R: Exception with Ant exec task

2012-11-22 Thread Ravagli Virgilio
] Inviato: giovedì 22 novembre 2012 9.38 A: Ant Users List Oggetto: Exception with Ant exec task Hi , Below is the code snippet i am trying to execute : Exception i am getting : Execute failed

Re: Problems with exec task on Windows machine

2012-04-12 Thread ivadim
It is works good.:) Thank you Harold. -- View this message in context: http://ant.1045680.n5.nabble.com/Problems-with-exec-task-on-Windows-machine-tp5627489p5635806.html Sent from the Ant - Users mailing list archive at Nabble.com

Re: Problems with exec task on Windows machine

2012-04-12 Thread Harold Putman
. But > nothing changed :( > > I found that new invoke_targets list saving old information > > Setting ro project property: ant.project.invoked-targets -> > run,clean,clean,clean,clean,clean,clean,clean,clean > > > -- > View this message in context: > http://a

Re: Problems with exec task on Windows machine

2012-04-11 Thread ivadim
ro project property: ant.project.invoked-targets -> run,clean,clean,clean,clean,clean,clean,clean,clean -- View this message in context: http://ant.1045680.n5.nabble.com/Problems-with-exec-task-on-Windows-machine-tp5627489p5633602.html Sent from the Ant - Users mailing list archive

Re: [SPAM] Problems with exec task on Windows machine

2012-04-11 Thread Harold Putman
How does "run" get into the target list here? [exec] 'C:\Users\dmivanov\Projects\tmp\build.xml' [exec] 'clean run' According to the sample build.xml you provided only clean should be there: Somehow the order of the

Re: [SPAM] Problems with exec task on Windows machine

2012-04-10 Thread ivadim
of "ant run -d" http://ant.1045680.n5.nabble.com/file/n5630671/log.txt log.txt I can't update my ant package in some reasons. And it would be good to find workaround -- View this message in context: http://ant.1045680.n5.nabble.com/Problems-with-exec-task-on-Windows-machine-tp56

Re: [SPAM] Problems with exec task on Windows machine

2012-04-10 Thread Harold Putman
Try invoking with -d and ant will show you exactly the command line it is running. This may reveal your issue. In this particular case you might want to consider using the task instead of exec. > > > > > > > > > > > Harold

Re: [SPAM] Problems with exec task on Windows machine

2012-04-09 Thread Jarek Czekalski
On 1.8.2 and same windows it runs fine. W dniu 2012-04-09 16:54, ivadim pisze: Hello. I have some problems with exec task. I have build.xml: When I run

Problems with exec task on Windows machine

2012-04-09 Thread ivadim
Hello. I have some problems with exec task. I have build.xml: When I run "ant run" command I expected to see CLEAN message. But actualy this is r

exec: : not found

2012-02-14 Thread luke devon
Hi When I execute antRun in my fedora 16, box it gives the following message . Could you please help me resolve this issue ??? /opt/java/apache-ant-1.8.2/bin/antRun: line 24: exec: : not found Thank you Luke

RE: Regarding exec task

2012-02-08 Thread Adam Bruss
: Wednesday, February 08, 2012 10:18 AM To: Ant Users List Subject: Re: Regarding exec task This sounds good, but won't it kill processes that wasn't started by my script too? From: Adam Bruss To: Ant Users List ; Vimil Saju Sent: Wednesday, February 8,

Re: Regarding exec task

2012-02-08 Thread Vimil Saju
This sounds good, but won't it kill processes that wasn't started by my script too? From: Adam Bruss To: Ant Users List ; Vimil Saju Sent: Wednesday, February 8, 2012 6:34 AM Subject: RE: Regarding exec task Set failonerror=false on the parent

RE: Regarding exec task

2012-02-08 Thread Adam Bruss
ailto:vimils...@yahoo.com] Sent: Tuesday, February 07, 2012 10:11 PM To: Ant Users List Subject: Regarding exec task Hi, I noticed that on windows, if I use the exec task to run a batch script which in turn starts other processes then if kill ant then the sub-processes created by the batch script

Regarding exec task

2012-02-07 Thread Vimil Saju
Hi, I noticed that on windows, if I use the exec task to run a batch script which in turn starts other processes then if kill ant then the sub-processes created by the batch script still continues to run. I did some research on google and found that the default java implementation of

exec

2011-12-02 Thread ext-simon.steiner
Hi, Shouldn’t ant offer a

Ant exec task not writing STDOUT to console or to file in Windows.

2011-09-27 Thread Nagesh S
Hi, I am using the exec task to execute a program whose versions exist on Windows and Linux both. The build file is added in the Ant view of an Eclipse IDE. When the IDE is running on Windows, the STDOUT (to which, command would write to) is not directed to the output file as mentioned in the

Exec on Windows is not fired if ant started from sinatra

2011-08-03 Thread Radek Simcik
Hi I run ant from sinatra http://www.sinatrarb.com/ on Windows XP When there was one target (not exec) everything worked fine. Now I added new target with exec. I run another ruby script from there. Now the tricky part comes I run ant from command line or .bat or simple (not sinatra) rb

RE: ant exec task message priority

2011-07-14 Thread Echlin, Robert
essage- > From: Stefan Bodewig [mailto:bode...@apache.org] > Sent: Thursday, July 14, 2011 7:33 AM > To: user@ant.apache.org > Subject: Re: ant exec task message priority > > On 2011-07-12, Adam Bruss wrote: > > > ant 1.7.0 would naturally classify messages from mak

Re: ant exec task message priority

2011-07-14 Thread Stefan Bodewig
On 2011-07-12, Adam Bruss wrote: > ant 1.7.0 would naturally classify messages from make with priorities of > info, warning or error. > ant 1.8.2 classifies all messages from make as priority info! Ant really only reads stderr and stdout from make. For everything that goes to stderr it will use

RE: ant exec task message priority

2011-07-13 Thread Martin Gainty
iif you dont mind the task running as daemon you can setup a list of daemons in daemons nested element in the parallel task http://ant.apache.org/manual/Tasks/parallel.html similar to exec with spawn http://ant.apache.org/manual/Tasks/exec.html Martin Gainty

RE: ant exec task message priority

2011-07-13 Thread Adam Bruss
240.0291 x104 F: 1.262.240.0294 E: abr...@awrcorp.com W: http://www.awrcorp.com -Original Message- From: Echlin, Robert [mailto:robert.ech...@windriver.com] Sent: Wednesday, July 13, 2011 11:28 AM To: Ant Users List Subject: RE: ant exec task message priority Hi Adam, I'm not familiar

RE: ant exec task message priority

2011-07-13 Thread Echlin, Robert
or the ant exec task to see if they show differences of this nature? Rob > -Original Message- > From: Adam Bruss [mailto:abr...@awrcorp.com] > Sent: Tuesday, July 12, 2011 3:42 PM > To: user@ant.apache.org > Subject: ant exec task message priority > > We run make with t

ant exec task message priority

2011-07-12 Thread Adam Bruss
We run make with the ant exec task ant 1.7.0 would naturally classify messages from make with priorities of info, warning or error. ant 1.8.2 classifies all messages from make as priority info! This causes our cruisecontrol emails to contain no messages from the make build. Why does ant 1.8.2

Re: ant exec task: ssh username contains spaces, how to escape?

2011-02-04 Thread Antoine Levy-Lambert
echo $i " argument : " $arg " END" done - output Buildfile: C:\dev\build.xml [exec] 1 argument : -tt END [exec] 2 argument : stein inge morisbak@localhost END [exec] 3 argument : if [ -f /tmp/test.txt ]; then rm -f /tmp/test.txt ; fi END BUILD SUCCESSF

Re: ant exec task: ssh username contains spaces, how to escape?

2011-02-02 Thread Stein Inge Morisbak
That's what I thought also, but in practice it doesn't work, at least not on my machine (mac os x) I know about the sshexec task, but the problem with this task is that it is not possible to give options to the ssh command. I left that out in my example, but I need to give the '-tt' option to s

Re: ant exec task: ssh username contains spaces, how to escape?

2011-02-01 Thread Antoine Levy-Lambert
Hi, in theory, this should work : when you use I am trying to call ssh using the ant exec task from maven. My problem is that I can't figure out how to escape spaces in usernames. I have tried: - To unsubs

ant exec task: ssh username contains spaces, how to escape?

2011-02-01 Thread Stein Inge Morisbak
I am trying to call ssh using the ant exec task from maven. My problem is that I can't figure out how to escape spaces in usernames. I have tried: ... and also: ... and finally: ... but no luck :-( Any

Fwd: Re: Output of perl exec behaving oddly (solved)

2011-01-24 Thread Laurence Mills-Gahl
Output of perl exec behaving oddly Date: Mon, 24 Jan 2011 10:41:19 -0500 From: Laurence Mills-Gahl To: user@ant.apache.org I wasn't looking at the ${BUILDTIME} property because I was assuming that wouldn't change during the run, but it is (I noticed the output director

Re: Output of perl exec behaving oddly

2011-01-24 Thread Laurence Mills-Gahl
I wasn't looking at the ${BUILDTIME} property because I was assuming that wouldn't change during the run, but it is (I noticed the output directory created ended with 20110124103046 (the timestamp) and the second invocation of compile_patients_on_alert was trying to write a file to 20110124103052.

Re: Output of perl exec behaving oddly

2011-01-24 Thread Michael Ludwig
Laurence Mills-Gahl schrieb am 24.01.2011 um 00:56 (-0500): > On 1/23/11 10:12 PM, Michael Ludwig wrote: > > Laurence Mills-Gahl schrieb am 23.01.2011 um 21:27 (-0500): > >> > >> I have a list of centerid's and a "foreach" loop > > Red flag goes up … > > What is the red flag? Ah, that was just a

Re: Output of perl exec behaving oddly

2011-01-23 Thread Laurence Mills-Gahl
On 1/23/11 10:12 PM, Michael Ludwig wrote: > Laurence Mills-Gahl schrieb am 23.01.2011 um 21:27 (-0500): >> I have an ant exec task that is behaving inconsistently. >> >> I have a list of centerid's and a "foreach" loop > Red flag goes up … What is the

Re: Output of perl exec behaving oddly

2011-01-23 Thread Michael Ludwig
Laurence Mills-Gahl schrieb am 23.01.2011 um 21:27 (-0500): > I have an ant exec task that is behaving inconsistently. > > I have a list of centerid's and a "foreach" loop Red flag goes up … > that calls the following target: > > > patient

Output of perl exec behaving oddly

2011-01-23 Thread Laurence Mills-Gahl
I have an ant exec task that is behaving inconsistently. I have a list of centerid's and a "foreach" loop that calls the following target: patient detail for patients NOT on alert for center ${centerid} The report script (repor

Re: exec (and apply) tasks cut off the output

2011-01-20 Thread Antoine Levy-Lambert
Hi, in fact there has been a bug reported concerning lines of output which get mixed up. https://issues.apache.org/bugzilla/show_bug.cgi?id=50507 We should fix it. Regards, Antoine On 1/19/11 3:03 PM, Gilbert Rebhan wrote: > Original Message > Subject: exec (and

Re: exec (and apply) tasks cut off the output

2011-01-19 Thread Gilbert Rebhan
Original Message Subject: exec (and apply) tasks cut off the output From: Hudson To: user@ant.apache.org Date: Wed Jan 19 2011 15:10:39 GMT+0100 (CET) > Hello, > > I try to build my project with the following ant statement. >resultproperty=

exec (and apply) tasks cut off the output

2011-01-19 Thread Hudson
Hello, I try to build my project with the following ant statement. There are some lines missing in the output from time to time (~50%). Does anybody has the same Problem? Do you need further information? I couldn't find any help in the net so far.

Logging in ANT from an exec task running javaws.exe

2010-05-25 Thread christopher smith
I'm planning on running a java program using Web Start in an exec task. I would like the logging in my programs to log to the ANT logger that started the exec task. I'm not clear on how this is done. My program will be using commons-logging and I'm open to anything from there. Any suggestions?

Re: ant 1.8.0 exec issue

2010-04-16 Thread Stefan Bodewig
On 2010-04-15, Phil Bromley wrote: > I've found the issue below with 1.8.0 that worked in 1.8.0RC1. This > seems to have been fixed in the latest build - 1.8.1alpha compiled on > April 15 2010 built locally, so I'm not reporting in on bugzilla, >From your description it most likely has been

ant 1.8.0 exec issue

2010-04-15 Thread Phil Bromley
.0 - create a target that uses the exec task that calls cmd then passes command line parameters "/c ant -f test.xml test-output" which will call an ant target on another build file. ant reports a build failure because the target (the target from the first build file) does not exist in the

Re: Calling CYGWIN from ANT via EXEC

2010-04-14 Thread Eric Fetzer
Yeah, I was using the scp task before. It started crashing every single week for no apparent reason. If you run it a second time with the exact same code it works. So here I am... On Apr 14, 2010, at 4:32 PM, Antoine Levy Lambert wrote: Eric Fetzer wrote: It's actually much easier to use

Re: Calling CYGWIN from ANT via EXEC

2010-04-14 Thread Antoine Levy Lambert
Eric Fetzer wrote: It's actually much easier to use CYGWIN from Ant than stated in the documentation with the task. Here is an example of using Ant to run a shell script via CYGWIN (be sure the shell script is formatted for unix):

RE: Calling CYGWIN from ANT via EXEC

2010-04-14 Thread Martin Gainty
ngswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Date: Wed, 14 Apr 2010 11:34:12 -0700 > From: elstonk...@yahoo.com > Subject: Re: Calling CYGWIN from ANT via EXEC > To: user@ant.apache.org > > Thanks Marti

Re: Calling CYGWIN from ANT via EXEC

2010-04-14 Thread Eric Fetzer
ne rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Date: Wed, 14 Apr 2010 08:26:50 -0700 From: elstonk...@yahoo.com Subject: Calling CYGWIN from ANT via EXEC To: user@ant.apache.org It's actually much

RE: Calling CYGWIN from ANT via EXEC

2010-04-14 Thread Martin Gainty
ls koennen wir keine Haftung fuer den Inhalt uebernehmen. > Date: Wed, 14 Apr 2010 08:26:50 -0700 > From: elstonk...@yahoo.com > Subject: Calling CYGWIN from ANT via EXEC > To: user@ant.apache.org > > It's actually much easier to use CYGWIN from Ant than stated in the

Re: Calling CYGWIN from ANT via EXEC

2010-04-14 Thread Eric Fetzer
I figured out the space issue, you can single quote the args successfully. On Apr 14, 2010, at 9:26 AM, Eric Fetzer wrote: It's actually much easier to use CYGWIN from Ant than stated in the documentation with the task. Here is an example of using Ant to run a shell script via CYGWIN (be s

Calling CYGWIN from ANT via EXEC

2010-04-14 Thread Eric Fetzer
It's actually much easier to use CYGWIN from Ant than stated in the documentation with the task.  Here is an example of using Ant to run a shell script via CYGWIN (be sure the shell script is formatted for unix):       

How I can use p4.change in exec task

2010-03-29 Thread jhoomsharabi
Hi All, I am stuck to one of the simple issue, I want to use P4Change of Perforce task in one of my exec task the way I am able to use it in P4Edit Same way I want to use it in one of my create-review target under exec task like this: but when I use

parameterizing the "error" attribute of an exec task

2010-02-28 Thread Michael Bolin
I am creating a macrodef that calls . I want to make it possible to parameterize the "error" attribute by doing something like: The problem is that by defining

RE: Exec Connection Not Closing

2010-02-24 Thread Barry Pape
Antoine, Thanks for looking at my issue and for all the advice you've given me. It appears that we have resolved this issue by adding the -n switch to the exec command: As far as how we have this setup, this task resides in the CruiseControl buil

Re: Exec Connection Not Closing

2010-02-22 Thread Antoine Levy-Lambert
Barry Pape wrote: > I changed the ant task to use sshexec instead of exec with ssh as the > executable. I still have the seemingly random hung process. I executed > the ant task from outside cruisecontrol and it completed successfully. > The last time I found a hung process I grab

RE: Exec Connection Not Closing

2010-02-22 Thread Barry Pape
I changed the ant task to use sshexec instead of exec with ssh as the executable. I still have the seemingly random hung process. I executed the ant task from outside cruisecontrol and it completed successfully. The last time I found a hung process I grabbed a thread dump and am including it

Re: Exec Connection Not Closing

2010-02-13 Thread Antoine Levy Lambert
Barry Pape wrote: Hi Everyone, I seem to have an issue with an exec task not closing the ssh connection it opens. Basically we use CruiseControl and Ant to build and deploy our code. In the CruiseControl build.xml I have an ant task that ssh's to a remote server and starts a shell s

Exec Connection Not Closing

2010-02-12 Thread Barry Pape
Hi Everyone, I seem to have an issue with an exec task not closing the ssh connection it opens. Basically we use CruiseControl and Ant to build and deploy our code. In the CruiseControl build.xml I have an ant task that ssh's to a remote server and starts a shell script. Once the s

Re: Pass “*.wsdl” to exec command

2010-01-06 Thread Antoine Levy Lambert
(4096 chars on current versions of Windows I think). Antoine Barvaz Kipod wrote: Hi, I’m executing the following Ant exec command: * * * * * *** And got the followings error: *The ' characters around the executable and arguments arenot part of the co

Pass “*.wsdl” to exec command

2010-01-01 Thread Barvaz Kipod
Hi, I’m executing the following Ant exec command: * * * * * *** And got the followings error: *The ' characters around the executable and arguments arenot part of the command.* * [exec] Apache Software Foundation, org.apache.xmlbeans.XmlBeans version

RE: Windows 7 and ant exec task

2009-12-22 Thread Alec Fernandez
] >> Sent: Tuesday, December 22, 2009 3:13 PM >> To: Ant Users List >> Subject: RE: Windows 7 and ant exec task >> >> The .bat file works fine on Server 2003 and XP. It doesn't work on >> Windows 7. >> >> Thanks, >> Greg >> -Original

RE: Windows 7 and ant exec task

2009-12-22 Thread Thompson, Greg D. (LNG-DFW)
The .bat file works fine on Server 2003 and XP. It doesn't work on Windows 7. Thanks, Greg -Original Message- From: jan.mate...@rzf.fin-nrw.de [mailto:jan.mate...@rzf.fin-nrw.de] Sent: Tuesday, December 22, 2009 8:03 AM To: user@ant.apache.org Subject: AW: Windows 7 and ant

AW: Windows 7 and ant exec task

2009-12-22 Thread Jan.Materne
>Betreff: RE: Windows 7 and ant exec task > >Zzz is a .bat file. If I specify the full path of zzz, it executes >fine. > >I'd rather not use the full path. The path to the executable will be >different on the dev workstations and the build/ci server. > >Thank

RE: Windows 7 and ant exec task

2009-12-22 Thread Thompson, Greg D. (LNG-DFW)
mx.de] Sent: Monday, December 21, 2009 4:41 PM To: Ant Users List Subject: Re: Windows 7 and ant exec task Hello Greg, what is zzz ? is it an exe ? a shell script (.cmd, .bat) ? if you specify the full path of zzz, can you then execute it ? Regards, Antoine Thompson, Greg D. (LNG-DFW) wrote:

Re: Windows 7 and ant exec task

2009-12-21 Thread Antoine Levy Lambert
Hello Greg, what is zzz ? is it an exe ? a shell script (.cmd, .bat) ? if you specify the full path of zzz, can you then execute it ? Regards, Antoine Thompson, Greg D. (LNG-DFW) wrote: I'm using Windows 7. When I use the ant exec task, I get Cannot run program "zzz": Crea

Windows 7 and ant exec task

2009-12-21 Thread Thompson, Greg D. (LNG-DFW)
I'm using Windows 7. When I use the ant exec task, I get Cannot run program "zzz": CreateProcess error=2, The system cannot find the file specified. When I run the program "zzz" from the command line, it works fine. The folder that program "zzz" is i

RE: exec - Cannot run program 'start' CreateProcess error=2

2009-12-17 Thread Dalton, Tom
Sorry, I misunderstood what you are doing. I don't think you need to use 'start' or 'cmd' to launch whatever process you are launching. So in the examples below: The executable you are trying to run is notepad. So then the exec task will be: This works

Re: exec - Cannot run program 'start' CreateProcess error=2

2009-12-16 Thread as rao
l. > > The build.xml is given by the vendor of the app server, and is a complex > build file. I am OK to make changes, but only minor changes. > > I tried adding attribute *vmlauncher="false"* to exec and it worked for > me. > > cheers > a s > > > > > &g

Re: exec - Cannot run program 'start' CreateProcess error=2

2009-12-16 Thread as rao
Hi Thank you all. The build.xml is given by the vendor of the app server, and is a complex build file. I am OK to make changes, but only minor changes. I tried adding attribute *vmlauncher="false"* to exec and it worked for me. cheers a s On Wed, Dec 16, 2009 at 2:59 PM, Dalton,

RE: exec - Cannot run program 'start' CreateProcess error=2

2009-12-16 Thread Dalton, Tom
07:40 To: user@ant.apache.org Subject: Re: exec - Cannot run program 'start' CreateProcess error=2 Hi To simplifying the problem statement, when I try to run the default target in the following build file: --- --- I am getting same

AW: exec - Cannot run program 'start' CreateProcess error=2

2009-12-16 Thread Jan.Materne
lto:asrao.y...@gmail.com] >Gesendet: Mittwoch, 16. Dezember 2009 08:40 >An: user@ant.apache.org >Betreff: Re: exec - Cannot run program 'start' CreateProcess error=2 > >Hi > >To simplifying the problem statement, when I try to run the >default target >in the

Re: exec - Cannot run program 'start' CreateProcess error=2

2009-12-15 Thread as rao
5: Execute failed: java.io.IOException: > Cannot run program "start": CreateProcess error=2, The system cannot find the > file specified > --- > > when I looked into the build.xml I found that its exec trying to ru

exec - Cannot run program 'start' CreateProcess error=2

2009-12-15 Thread as rao
: Cannot run program "start": CreateProcess error=2, The system cannot find the file specified --- when I looked into the build.xml I found that its exec trying to run 'start' command using which it intend to run a .c

Re: AW: exec on batch file causes build to hang

2009-08-18 Thread Scott Stark
Sascha Ernst wrote: > Perhaps this helps Wow, that's some crazy code there! :-) Well, it does open a new window, but unfortunately the original build still doesn't complete in the first window. Sigh... I'm going to go after the developer who wrote this crazy java p

AW: exec on batch file causes build to hang

2009-08-18 Thread Sascha Ernst
o:sst...@us.ibm.com] Gesendet: Dienstag, 18. August 2009 16:16 An: Ant Users List Betreff: Re: exec on batch file causes build to hang David Weintraub wrote: > > > Can you run the batch file outside of Ant from the command line without > the > > process hanging? > I've

Re: exec on batch file causes build to hang

2009-08-18 Thread Scott Stark
David Weintraub wrote: > > > Can you run the batch file outside of Ant from the command line without > the > > process hanging? > I've discovered that running "start IC_start.bat" from the command line opens the process in a new window and returns control to the executing window (on Windows XP).

Re: exec on batch file causes build to hang

2009-08-17 Thread Scott Stark
> Another possibility is to surround the task with the task. > The task will terminate the task after a certain period of > time. I don't know how well it works on Windows. Nice idea, but: BUILD FAILED C:\working\informix\stop_restart.xml:95: waitfor doesn't support the ne

Re: exec on batch file causes build to hang

2009-08-17 Thread David Weintraub
On Mon, Aug 17, 2009 at 11:00 AM, Scott Stark wrote: > > > Can you run the batch file outside of Ant from the command line without > the > > process hanging? > > Hi David, technically, yes. But the process (batch file) doesn't "hang"; it > executes a java tool and holds that state ("running") unt

Re: exec on batch file causes build to hang

2009-08-17 Thread Scott Stark
> Can you run the batch file outside of Ant from the command line without the > process hanging? Hi David, technically, yes. But the process (batch file) doesn't "hang"; it executes a java tool and holds that state ("running") until the process is terminated by another batch file. In other words,

Re: exec on batch file causes build to hang

2009-08-15 Thread David Weintraub
s the Java task that's dying or hanging. Maybe you could run the Java profiler (-Xprof) option? It could be a memory problem with Ant not giving enough memory to the Java process. Remember that Ant, exec, and your Java process are all running in the same memory footprint. Ant, by default, only

Re: exec on batch file causes build to hang

2009-08-14 Thread Scott Stark
Hi David, thank you kindly for the pointer about running batch files on Windows. However, I get the same results when running my build file from the command line: the batch file executes (and starts the java process), but never returns control to the build file, so I have to hit control-C to exit

exec on batch file causes build to hang

2009-08-14 Thread David Weintraub
nt problem or a batch file problem, so I'll > start here -- apologies if it's inappropriate. > > I'm using an Ant build file to execute a Windows XP batch file using the > exec command. My target looks something like this: > >                      

exec on batch file causes build to hang

2009-08-14 Thread Scott Stark
I'm not sure if this is an Ant problem or a batch file problem, so I'll start here -- apologies if it's inappropriate. I'm using an Ant build file to execute a Windows XP batch file using the exec command. My target looks something like this: The problem is,

Re: exec unix script not working for me

2009-07-22 Thread David Weintraub
On Wed, Jul 22, 2009 at 12:04 PM, Amy Davis wrote: > That was it! I use JEdit to edit my unix script file, but neglected to use > the unix line separator under utilities => buffer options. > The error messages I was getting did not lead me to the real problem. > Thanks so much! I've spent a lot of

Re: exec unix script not working for me

2009-07-22 Thread Amy Davis
ing that change to my unix script file, each of the following 3 options now work. This does not work: - Original Message From: David Weintraub To: Ant Users List Sent: Tuesday, July 21, 2009 7:46:28 PM Subject: Re: exec unix script not workin

Re: exec unix script not working for me

2009-07-21 Thread glenn opdycke-hansen
run, does a chmod on > it, and then tries to execute it. The ${sql.deploy.script} argument just > contains the directory name (bad name, you're right). > > > > I tried > > dir="${sql.deploy.script}" > > osfamily="u

Re: exec unix script not working for me

2009-07-21 Thread David Weintraub
tains > the directory name (bad name, you're right). > > I tried >                 dir="${sql.deploy.script}" >                    osfamily="unix"> >                     >                 > > and got > > [exec] Execute:Java13CommandLauncher

Re: exec unix script not working for me

2009-07-21 Thread David Weintraub
t} argument just contains > the directory name (bad name, you're right). > > I tried >                 dir="${sql.deploy.script}" >                    osfamily="unix"> >                     >                 > > and got > > [exec] Execute:J

Re: exec unix script not working for me

2009-07-21 Thread Amy Davis
. I tried and got [exec] Execute:Java13CommandLauncher: Executing '/u01/ossint/TeamCityBuildAgent/work/ba331bf4546cf0c1/sql/deployment/r1-0/runSqlPlusUnix.sh' with arguments: '/u01/ossint/TeamCityBuildAgent/work/ba331bf4546cf0c1

Re: exec unix script not working for me

2009-07-21 Thread David Weintraub
uildAgent/work/ba331bf4546cf0c1/sql/deployment/r1-0/runSqlPlusUnix.sh' >    The ' characters around the executable and arguments are not part of the > command. >  [if] exec >     [exec] Execute:Java13CommandLauncher: Executing 'bash' with > arguments:'runSql

Re: exec unix script not working for me

2009-07-21 Thread robert lazarski
On Tue, Jul 21, 2009 at 1:48 PM, Amy Davis wrote: > > Maybe I don't fully understand your suggestion. I tried adding the ant task > in front of my exec task as below > >                 >                                    osfamily="unix"> >          

Re: exec unix script not working for me

2009-07-21 Thread Amy Davis
Maybe I don't fully understand your suggestion. I tried adding the ant task in front of my exec task as below and got [ant] The following error occurred while executing this line: java.io.FileNotFoundException:

  1   2   3   4   5   6   >