You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ghadi Mahmoudi <gh...@cosens.de> on 2008/12/12 14:57:05 UTC

is there a Task to comapre two numbers?

Hello,

Is there alread a Task, which is able to compare two (integer) numbers
(>, < or ==).

thanks,

Ghadi

 
M.Sc. Ghadi Mahmoudi
System Engineer


COSENS GmbH
Lerchenkamp 11
31137 Hildesheim
Tel.: +49 5121 17750-43
Fax: +49 5121 17750-49
E-Mail:  <ma...@cosens.de>
ghadi.mahmoudi@cosens.de
 <http://www.cosens.de/> www.cosens.de

Sitz der Gesellschaft: Hildesheim 
Handelsregister: Amtsgericht Hildesheim HRB 3620
Geschäftsführer: Dr. Hamed Amor

 

RE: is there a Task to comapre two numbers?

Posted by Alec Fernandez <Al...@sas.com>.
my mistake.  I remembered the "greater" comparator but it only applies to the length condition.  I don't see an easy way other than adding a custom condition (which is fairly easy using groovy or bsh)

>> -----Original Message-----
>> From: Ghadi Mahmoudi [mailto:ghadi.mahmoudi@cosens.de]
>> Sent: Friday, December 12, 2008 3:10 PM
>> To: 'Ant Users List'
>> Subject: AW: is there a Task to comapre two numbers?
>> 
>> Thanks,
>> But  could find only "equlas"! What about < and > comparisons?
>> 
>> M.Sc. Ghadi Mahmoudi
>> System Engineer
>> 
>> 
>> COSENS GmbH
>> Lerchenkamp 11
>> 31137 Hildesheim
>> Tel.: +49 5121 17750-43
>> Fax: +49 5121 17750-49
>> E-Mail: ghadi.mahmoudi@cosens.de
>> www.cosens.de
>> 
>> Sitz der Gesellschaft: Hildesheim
>> Handelsregister: Amtsgericht Hildesheim HRB 3620
>> Geschäftsführer: Dr. Hamed Amor
>> 
>> 
>> 
>> -----Ursprüngliche Nachricht-----
>> Von: Alec Fernandez [mailto:Alec.Fernandez@sas.com]
>> Gesendet: Freitag, 12. Dezember 2008 14:59
>> An: Ant Users List; ghadi.mahmoudi@cosens.de
>> Betreff: RE: is there a Task to comapre two numbers?
>> 
>> 
>> look in the manual at the condition task (specifically click on
>> "supported conditions")
>> 
>> >> -----Original Message-----
>> >> From: Ghadi Mahmoudi [mailto:ghadi.mahmoudi@cosens.de]
>> >> Sent: Friday, December 12, 2008 2:57 PM
>> >> To: user@ant.apache.org
>> >> Subject: is there a Task to comapre two numbers?
>> >>
>> >> Hello,
>> >>
>> >> Is there alread a Task, which is able to compare two (integer)
>> >> numbers (>, < or ==).
>> >>
>> >> thanks,
>> >>
>> >> Ghadi
>> >>
>> >>
>> >> M.Sc. Ghadi Mahmoudi
>> >> System Engineer
>> >>
>> >>
>> >> COSENS GmbH
>> >> Lerchenkamp 11
>> >> 31137 Hildesheim
>> >> Tel.: +49 5121 17750-43
>> >> Fax: +49 5121 17750-49
>> >> E-Mail:  <ma...@cosens.de>
>> >> ghadi.mahmoudi@cosens.de
>> >>  <http://www.cosens.de/> www.cosens.de
>> >>
>> >> Sitz der Gesellschaft: Hildesheim
>> >> Handelsregister: Amtsgericht Hildesheim HRB 3620
>> >> Geschäftsführer: Dr. Hamed Amor
>> >>
>> >>
>> 
>> ---------------------------------------------------------------------
>> 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
>> 


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


RE: is there a Task to comapre two numbers?

Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.

-----Original Message-----
From: Ghadi Mahmoudi [mailto:ghadi.mahmoudi@cosens.de]
Sent: Friday, December 12, 2008 3:10 PM
To: 'Ant Users List'
Subject: AW: is there a Task to comapre two numbers?

/*
Thanks,
But  could find only "equlas"! What about < and > comparisons?
*/

the Antelope tasksuite has conditions like
isgreaterthan ...

see =
http://antelope.tigris.org/nonav/docs/manual/bk03ch05s02.html

or use <script> | <scriptcondition>

Regards, Gilbert

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


Re: AW: is there a Task to comapre two numbers?

Posted by "Scot P. Floess" <sf...@nc.rr.com>.
I had a need for this some time ago.  I used AntContrib's "math" and "if" 
tasks.  What I did was subtract numbers and if I saw the presence of a 
minus, less than, "0" equals otherwise greater than...

I do have some examples if you are interested...macro defs I mean...

On Fri, 12 Dec 2008, Ghadi Mahmoudi wrote:

> Thanks,
> But  could find only "equlas"! What about < and > comparisons?
>
> M.Sc. Ghadi Mahmoudi
> System Engineer
>
>
> COSENS GmbH
> Lerchenkamp 11
> 31137 Hildesheim
> Tel.: +49 5121 17750-43
> Fax: +49 5121 17750-49
> E-Mail: ghadi.mahmoudi@cosens.de
> www.cosens.de
>
> Sitz der Gesellschaft: Hildesheim
> Handelsregister: Amtsgericht Hildesheim HRB 3620
> Gesch�ftsf�hrer: Dr. Hamed Amor
>
>
>
> -----Urspr�ngliche Nachricht-----
> Von: Alec Fernandez [mailto:Alec.Fernandez@sas.com]
> Gesendet: Freitag, 12. Dezember 2008 14:59
> An: Ant Users List; ghadi.mahmoudi@cosens.de
> Betreff: RE: is there a Task to comapre two numbers?
>
>
> look in the manual at the condition task (specifically click on
> "supported conditions")
>
>>> -----Original Message-----
>>> From: Ghadi Mahmoudi [mailto:ghadi.mahmoudi@cosens.de]
>>> Sent: Friday, December 12, 2008 2:57 PM
>>> To: user@ant.apache.org
>>> Subject: is there a Task to comapre two numbers?
>>>
>>> Hello,
>>>
>>> Is there alread a Task, which is able to compare two (integer)
>>> numbers (>, < or ==).
>>>
>>> thanks,
>>>
>>> Ghadi
>>>
>>>
>>> M.Sc. Ghadi Mahmoudi
>>> System Engineer
>>>
>>>
>>> COSENS GmbH
>>> Lerchenkamp 11
>>> 31137 Hildesheim
>>> Tel.: +49 5121 17750-43
>>> Fax: +49 5121 17750-49
>>> E-Mail:  <ma...@cosens.de>
>>> ghadi.mahmoudi@cosens.de
>>>  <http://www.cosens.de/> www.cosens.de
>>>
>>> Sitz der Gesellschaft: Hildesheim
>>> Handelsregister: Amtsgericht Hildesheim HRB 3620
>>> Gesch�ftsf�hrer: Dr. Hamed Amor
>>>
>>>
>
> ---------------------------------------------------------------------
> 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

Architect Keros          http://sourceforge.net/projects/keros

AW: is there a Task to comapre two numbers?

Posted by Ghadi Mahmoudi <gh...@cosens.de>.
Thanks,
But  could find only "equlas"! What about < and > comparisons?

M.Sc. Ghadi Mahmoudi
System Engineer


COSENS GmbH
Lerchenkamp 11
31137 Hildesheim
Tel.: +49 5121 17750-43
Fax: +49 5121 17750-49
E-Mail: ghadi.mahmoudi@cosens.de
www.cosens.de

Sitz der Gesellschaft: Hildesheim 
Handelsregister: Amtsgericht Hildesheim HRB 3620
Geschäftsführer: Dr. Hamed Amor



-----Ursprüngliche Nachricht-----
Von: Alec Fernandez [mailto:Alec.Fernandez@sas.com] 
Gesendet: Freitag, 12. Dezember 2008 14:59
An: Ant Users List; ghadi.mahmoudi@cosens.de
Betreff: RE: is there a Task to comapre two numbers?


look in the manual at the condition task (specifically click on
"supported conditions")

>> -----Original Message-----
>> From: Ghadi Mahmoudi [mailto:ghadi.mahmoudi@cosens.de]
>> Sent: Friday, December 12, 2008 2:57 PM
>> To: user@ant.apache.org
>> Subject: is there a Task to comapre two numbers?
>> 
>> Hello,
>> 
>> Is there alread a Task, which is able to compare two (integer) 
>> numbers (>, < or ==).
>> 
>> thanks,
>> 
>> Ghadi
>> 
>> 
>> M.Sc. Ghadi Mahmoudi
>> System Engineer
>> 
>> 
>> COSENS GmbH
>> Lerchenkamp 11
>> 31137 Hildesheim
>> Tel.: +49 5121 17750-43
>> Fax: +49 5121 17750-49
>> E-Mail:  <ma...@cosens.de>
>> ghadi.mahmoudi@cosens.de
>>  <http://www.cosens.de/> www.cosens.de
>> 
>> Sitz der Gesellschaft: Hildesheim
>> Handelsregister: Amtsgericht Hildesheim HRB 3620
>> Geschäftsführer: Dr. Hamed Amor
>> 
>> 

---------------------------------------------------------------------
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


RE: is there a Task to comapre two numbers?

Posted by Alec Fernandez <Al...@sas.com>.
look in the manual at the condition task (specifically click on "supported conditions")

>> -----Original Message-----
>> From: Ghadi Mahmoudi [mailto:ghadi.mahmoudi@cosens.de]
>> Sent: Friday, December 12, 2008 2:57 PM
>> To: user@ant.apache.org
>> Subject: is there a Task to comapre two numbers?
>> 
>> Hello,
>> 
>> Is there alread a Task, which is able to compare two (integer) numbers
>> (>, < or ==).
>> 
>> thanks,
>> 
>> Ghadi
>> 
>> 
>> M.Sc. Ghadi Mahmoudi
>> System Engineer
>> 
>> 
>> COSENS GmbH
>> Lerchenkamp 11
>> 31137 Hildesheim
>> Tel.: +49 5121 17750-43
>> Fax: +49 5121 17750-49
>> E-Mail:  <ma...@cosens.de>
>> ghadi.mahmoudi@cosens.de
>>  <http://www.cosens.de/> www.cosens.de
>> 
>> Sitz der Gesellschaft: Hildesheim
>> Handelsregister: Amtsgericht Hildesheim HRB 3620
>> Geschäftsführer: Dr. Hamed Amor
>> 
>> 

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