ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Santos-Ocampo <>
Subject RE: Exec & Winrar (using RAR command line)
Date Sat, 18 Nov 2000 02:20:52 GMT
It still doesn't work.

I also tried breaking up the arguments into smaller units:

<target name="compress" depends="prepare">
      <exec executable="rar" os="windows">
      <arg value="a"/>
      <arg value="c:\t"/>
      <arg value="c:\test.doc" />

The -verbose flag provided some interesting information such as:
[exec] Myos = Windows 2000
[exec] Not found in windows

Does this mean anything? Note that if I remove the os="Windows", RAR's help
menu is displayed.

Thanks again,


-----Original Message-----
From: Peter Donald []
Sent: Friday, November 17, 2000 5:44 PM
Subject: RE: Exec & Winrar (using RAR command line)

Okay. Try running build with -verbose flag but from looking at the thing
again you should try. The last version was passing the whole string as one
argument. This version should parse it into 3 different arguements.

<exec executable="rar" os="windows">
  <arg line="a c:\t c:\test.doc"/> 

At 05:50  17/11/00 -0800, you wrote:
>Thanks Pete,
>Unfortunately, this time the BUILD is successful but there is no output.
>Any suggestions?
>-----Original Message-----
>From: Peter Donald []
>Sent: Friday, November 17, 2000 5:16 PM
>Subject: Re: Exec & Winrar (using RAR command line)
>At 05:28  17/11/00 -0800, you wrote:
>>I'm building a simple ANT file which uses Winrar to create an archive
>>Using Windows 2000, the command line command is as follows (for example):
>>c:\>rar a c:\t c:\test.doc
>>This command creates an archive file named t.rar in the c: directory.
>>Wouldn't the corresponding ANT script be like this?
>><target name="compress" depends="prepare">
>>      <exec executable="rar" os="windows"/>
>>      <arg value="a c:\t c:\test.doc"/> 
>>    </target>
>>I get the following message when I run this script:
>>Could not create task of type: arg because I can't find it in the list of
>>task class definitions.  Common solutions are: 1 execute bin/bootstrap. 2
>>use taskdef to declare your task. 3 add the task to
>>I'd appreciate anyone who can help (I'm relatively new at this).
>sure. What you want is below. Notice how it is a subelement of exec rather
>than sitting at same level ;)
><exec executable="rar" os="windows">
>  <arg value="a c:\t c:\test.doc"/> 
>| Despite your efforts to be a romantic hero, you will |
>| gradually evolve into a postmodern plot device.      |


| Despite your efforts to be a romantic hero, you will |
| gradually evolve into a postmodern plot device.      |

View raw message