ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: delete carriage returns in param
Date Thu, 10 Aug 2006 13:02:47 GMT
Looks like you are using ant-contrib...you might be able to do something 
with their regular expression tasks...

heisch@yawido.de wrote:
> my solution:
> command="echo `ls -l /xxx/xxx/temp/heischb/sedtest/test|cut -c1-10`\\c"
>
> need to be an unix expert.. :-)
> or read the manuals mindfully...
>
> Regards
>
>
> Zitat von heisch@yawido.de:
>
>> Hi,
>> there are tasks or elements of tasks which delete carriage returns in 
>> param with
>> Stirng.
>>
>> It's a sshexec - return which i have to prove with a if-loop.
>>
>> Becauce of the carriage return is the if-loop always false!!
>>
>> Thats the code:
>> <target name="chmodcheck" description="Checkt ob Zugriffsrechte 
>> richtig gesetzt
>> sind">
>>             <sshexec host="yyy.zzz.de" username="user" password="pwd" 
>> trust="true"
>> command="ls -la /xxx/xxx/temp/heischb/sedtest/test" 
>> outputproperty="temp"/>
>>         <echo>${temp}</echo>
>>         <if>
>>             <equals arg1="${temp}" arg2="-rw-r--r--   1 xxx  
>> xxx       786 Aug  9 09:35
>> /xxx/xxx/temp/heischb/sedtest/test" />
>>             <then>
>>                 <echo>Korrekt gesetzt</echo>
>>                 </then>
>>             <else>
>>             <echo> NICHT KORREKT!!!!! </echo></else>
>>             </if>
>>
>>    </target>
>>
>> Regards Beni
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


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


Mime
View raw message