ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: help with exec task
Date Fri, 11 Mar 2005 20:43:06 GMT
--- Radha Sangal <Radha.Sangal@pega.com> wrote:
> Please help me figure this out, its quite simple. I
> am executing
> cabarc.exe to extract cab files in a dir. No error
> is displayed but I
> don't get my files
> 
> Ant script :
> 
>  
> 
> <target name="cabarc">
> 
>                         <echo message="Expanding
> cabs..."/>
> 
>                         <exec
> executable="cabarc.exe" dir=".">
> 
>                           <arg line="x
>
${BUILD_ROOT}/prInfraDistribution/Projects/CabInstaller/PRPC_Standalone_
> CAB_Install/${CABFILE_NAME}.cab
>
${BUILD_ROOT}/prInfraDistribution/Projects/CabInstaller/PRPC_Standalone_
> CAB_Install/Temp/"/>
> 
>                         </exec>
> 
>             </target>

If <arg line> doesn't work, try multiple arg elements.
 Better yet, listen to the manual:

"It is highly recommended to avoid the line version
when possible."

http://ant.apache.org/manual/using.html#arg

-Matt
> 
>  
> 
> Output Log:
> 
>  
> 
> cabarc:
> 
>      [echo] Expanding cabs...
> 
>      [exec] Current OS is Windows XP
> 
>      [exec] Executing 'cabarc.exe' with arguments:
> 
>      [exec] 'x'
> 
>      [exec]
>
'E:/v04_E/Builds/Development/Build_1426/prInfraDistribution/Projects/Cab
>
Installer/PRPC_Standalone_CAB_Install/formbuilderocx.cab'
> 
>      [exec]
>
'E:/v04_E/Builds/Development/Build_1426/prInfraDistribution/Projects/Cab
> Installer/PRPC_Standalone_CAB_Install/Temp/'
> 
>      [exec] 
> 
>      [exec] The ' characters around the executable
> and arguments are
> 
>      [exec] not part of the command.
> 
>  
> 
>      [exec] Microsoft (R) Cabinet Tool - Version
> 1.00.0601 (03/18/97)
> 
>      [exec] Copyright (c) Microsoft Corp 1996-1997.
> All rights reserved.
> 
>  
> 
>      [exec] Extracting file(s) from cabinet
>
'E:/v04_E/Builds/Development/Build_1426/prInfraDistribution/Projects/Cab
>
Installer/PRPC_Standalone_CAB_Install/formbuilderocx.cab':
> 
>  
> 
>      [exec] Operation successful
> 
> 


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search. 
http://info.mail.yahoo.com/mail_250

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message