ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject RE: Exec & Winrar (using RAR command line)
Date Sat, 18 Nov 2000 03:42:26 GMT

okay set os="Windows 2000" and see if that works ;) When you do this what
does -verbose give you? and does it work?


At 06:20  17/11/00 -0800, you wrote:
>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" />
>      </exec>
></target>
>
>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,
>
>John
>
>
>
>-----Original Message-----
>From: Peter Donald [mailto:donaldp@apache.org]
>Sent: Friday, November 17, 2000 5:44 PM
>To: ant-user@jakarta.apache.org
>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"/> 
></exec>
>
>
>
>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?
>>
>>John
>>
>>-----Original Message-----
>>From: Peter Donald [mailto:donaldp@apache.org]
>>Sent: Friday, November 17, 2000 5:16 PM
>>To: ant-user@jakarta.apache.org
>>Subject: Re: Exec & Winrar (using RAR command line)
>>
>>
>>At 05:28  17/11/00 -0800, you wrote:
>>>Hi,
>>>
>>>I'm building a simple ANT file which uses Winrar to create an archive
>file.
>>>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 defaults.properties.
>>>
>>>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"/> 
>></exec>
>>Cheers,
>>
>>Pete
>>
>>*------------------------------------------------------*
>>| Despite your efforts to be a romantic hero, you will |
>>| gradually evolve into a postmodern plot device.      |
>>*------------------------------------------------------*
>>
>Cheers,
>
>Pete
>
>*------------------------------------------------------*
>| Despite your efforts to be a romantic hero, you will |
>| gradually evolve into a postmodern plot device.      |
>*------------------------------------------------------*
>
Cheers,

Pete

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


Mime
View raw message