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
An amazing bug. I am not sure how the invoked-targets could persist across launching ant in a whole new process? I suppose one workaround is to add something to skip the "run" target if it is supposed to be cleaning: ... Does this solve it? On Wed, Apr 11, 2012 at 1:49 PM, ivad

Re: Problems with exec task on Windows machine

2012-04-11 Thread ivadim
I changed my script to: And started "ant run".( http://ant.1045680.n5.nabble.com/file/n5633602/log2.txt log2.txt ). But nothing changed :( I found that new invoke_targets list saving old information Setting ro project prop

Re: Problems with exec task

2006-02-01 Thread Steve Loughran
Dick, Brian E. wrote: I use WSH mainly for WMI scripting. It's the best way to get info from remote Windows machines. yeah, it kind of sucks that (1) WMI is so hard to use and (2) important things like WLAN signal strength are only available via WMI. But the politics of system management APIs

RE: Problems with exec task

2006-01-31 Thread Stephen McConnell
> -Original Message- > From: Rhino [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 31 January 2006 3:52 PM > To: Ant Users List > Subject: Re: Problems with exec task > > Excellent suggestion! I wasn't aware of the existence of the AntWiki. > > What's

RE: Problems with exec task

2006-01-31 Thread Dick, Brian E.
I use WSH mainly for WMI scripting. It's the best way to get info from remote Windows machines. -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 12:17 PM To: Ant Users List Subject: Re: Problems with exec task Dick, Brian E.

Re: Problems with exec task

2006-01-31 Thread Steve Loughran
Dick, Brian E. wrote: -- hello there.vbs strArg = "" strDelim = "" for each objItem in WScript.Arguments strArg = strArg & strDelim & objItem strDelim = " " next WScript.echo "hello there, " & strArg -- cscript.xml -- example

RE: Problems with exec task

2006-01-31 Thread Dick, Brian E.
-- example run C:\temp\ant -f cscript.xml Buildfile: cscript.xml hello: [cscript] hello there, Rhino -Original Message- From: Rhino [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 9:57 AM To: Ant Users List Subject: Re: Problems with exec task - Or

Re: Problems with exec task

2006-01-31 Thread Steve Loughran
Rhino wrote: - Original Message - From: "Steve Loughran" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Tuesday, January 31, 2006 5:01 AM Subject: Re: Problems with exec task Rhino wrote: [exec] Input Error: There is no script engine for file extension &

Re: Problems with exec task

2006-01-31 Thread Rhino
- Original Message - From: "Steve Loughran" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Tuesday, January 31, 2006 5:01 AM Subject: Re: Problems with exec task Rhino wrote: When I did this: everything was fine; there were no err

Re: Problems with exec task

2006-01-31 Thread Steve Loughran
Rhino wrote: When I did this: everything was fine; there were no errors from Ant and the macro wrote Dudley Doright in the document. But when I did this (using the same property definition for vbs.script): I got no errors from Ant but the macro

Re: Problems with exec task

2006-01-30 Thread Rhino
ities page? Or is there a better idea that hasn't occurred to me yet? --- Rhino - Original Message - From: "Stephen McConnell" <[EMAIL PROTECTED]> To: "'Ant Users List'" Sent: Monday, January 30, 2006 8:17 PM Subject: RE: Problems with exec tas

RE: Problems with exec task

2006-01-30 Thread Ken Gentle
--- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 2:30 PM To: Ant Users List Subject: Re: Problems with exec task Rhino wrote: > Thank you both for your suggestions, Clifton and Brian, but I'm afraid > neither one worked! > > When I tried this from

RE: Problems with exec task

2006-01-30 Thread Stephen McConnell
> Any thoughts on how we could brainstorm this? It needn't take > much time but I'd like to do something to keep other people > from having big problems with exec if we possibly can. Maybe http://wiki.apache.org/ant/ is a starting point. Cheers, Steve.

Re: Problems with exec task

2006-01-30 Thread Rhino
al Message - From: "Dick, Brian E." <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Monday, January 30, 2006 3:46 PM Subject: RE: Problems with exec task The exec task is always problematic because you are leaving the ant/java world and entering into an alien space

RE: Problems with exec task

2006-01-30 Thread Dick, Brian E.
:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 3:29 PM To: Ant Users List Subject: Re: Problems with exec task - Original Message - From: "Steve Loughran" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Monday, January 30, 2006 2:35 PM Subject: Re: Prob

Re: Problems with exec task

2006-01-30 Thread Rhino
- Original Message - From: "Steve Loughran" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Monday, January 30, 2006 2:35 PM Subject: Re: Problems with exec task [snip] Does the Ant manual mention that you can handle embedded blanks in a path with a pair

RE: Problems with exec task

2006-01-30 Thread Dick, Brian E.
x27;t have much to do with ant. -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 2:30 PM To: Ant Users List Subject: Re: Problems with exec task Rhino wrote: > Thank you both for your suggestions, Clifton and Brian, but I'm afraid

Re: Problems with exec task

2006-01-30 Thread Steve Loughran
Rhino wrote: Hurrah! Problem solved! That did it, Tommy! Here's the revised property and exec which now works fine: Therefore, the executable needs to be 'cscript.exe' and the path name needs to be within single quotes if it contains embedded blanks. Many thanks to all who gave sug

Re: Problems with exec task

2006-01-30 Thread Steve Loughran
Rhino wrote: Thank you both for your suggestions, Clifton and Brian, but I'm afraid neither one worked! When I tried this from my command line: cmd.exe start "C:\Documents and Settings\Rhino\My Documents\LaunchWdMacro.vbs" Fred Flintstone All I got was: Microsoft Windows XP [Version

Re: Problems with exec task

2006-01-30 Thread Rhino
ommy Nordgren" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Monday, January 30, 2006 11:37 AM Subject: Re: Problems with exec task One thing you might try is to enclose the path name of the vbs executable in single quotes in the property def, also run ant with the c

Re: Problems with exec task

2006-01-30 Thread Tommy Nordgren
not done in terms of setting up my environment but everything works dandy from the command line so this feels like an Ant problem, not a Windows problem. Rhino - Original Message - From: "Dick, Brian E." <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Monday, Ja

Re: Problems with exec task

2006-01-30 Thread Rhino
y environment but everything works dandy from the command line so this feels like an Ant problem, not a Windows problem. Rhino - Original Message - From: "Dick, Brian E." <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Monday, January 30, 2006 9:37 AM Subjec

RE: Problems with exec task

2006-01-30 Thread Dick, Brian E.
You could also try cscript.exe. That's the actual command processor for vbs and other Windows scripting languages. -Original Message- From: Clifton Craig [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 8:52 AM To: Ant Users List Subject: Re: Problems with exec task

Re: Problems with exec task

2006-01-30 Thread Clifton Craig
e has any > ideas how I can accomplish that, I'd love to hear from you. > > Rhino > > - Original Message ----- > From: "Rhino" <[EMAIL PROTECTED]> > To: "Ant Users List" > Sent: Sunday, January 29, 2006 8:28 AM > Subject: Re: Problems with ex

Re: Problems with exec task

2006-01-29 Thread Rhino
t directly from Ant so if anyone has any ideas how I can accomplish that, I'd love to hear from you. Rhino - Original Message - From: "Rhino" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Sunday, January 29, 2006 8:28 AM Subject: Re: Problems with exe

Re: Problems with exec task

2006-01-29 Thread Rhino
need to do to try this idea. Rhino - Original Message - From: "Ken Gentle" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Sunday, January 29, 2006 4:01 AM Subject: Re: Problems with exec task Rhino, this is a shot in the dark, but I recently went through a rat

Re: Problems with exec task

2006-01-29 Thread Ken Gentle
AIL PROTECTED]> To: "Ant Users List" Sent: Saturday, January 28, 2006 1:48 PM Subject: Re: Problems with exec task I just remembered something about the exec task: On Windows, the Execute class, used by the ExecTask, itself launches cmd.exe to handle the command. You might

Re: Problems with exec task

2006-01-28 Thread Rhino
om: "Tommy Nordgren" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Saturday, January 28, 2006 1:48 PM Subject: Re: Problems with exec task I just remembered something about the exec task: On Windows, the Execute class, used by the ExecTask, itself launches cmd.exe to ha

Re: Problems with exec task

2006-01-28 Thread Tommy Nordgren
d to the Word document. This is the current version of the task: resolveexecutable="true"> I'm not sure what else to try Rhino - Original Message - From: "Tommy Nordgren" <[EMAIL PROTECTED]> To: "Ant Users List" Sent:

Re: Problems with exec task

2006-01-28 Thread Rhino
> To: "Ant Users List" Sent: Saturday, January 28, 2006 12:24 PM Subject: Re: Problems with exec task Use the exec attribute resolveExecutable="true", or use an absolute path. On Jan 28, 2006, at 5:55 PM, Rhino wrote: I'm having a bit of trouble with an exec ta

Re: Problems with exec task

2006-01-28 Thread Tommy Nordgren
Use the exec attribute resolveExecutable="true", or use an absolute path. On Jan 28, 2006, at 5:55 PM, Rhino wrote: I'm having a bit of trouble with an exec task in Windows XP Professional and I would appreciate a bit of help from the experts on this mailing list. I have created a short VBS