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.
---
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
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
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
> -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
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.
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
-- 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
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
&
- 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
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
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
---
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
> 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.
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
:[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
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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:
>
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
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
32 matches
Mail list logo