harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao-Feng Li" <xiaofeng...@gmail.com>
Subject [DRLVM][building script] Ant version check problem
Date Fri, 12 Jan 2007 07:22:52 GMT
Hi, I am using ant 1.7.0 to build DRLVM, but it is rejected by the scripts.

in working_vm/build/make/setup.xml: line 29

        <math result="ch1" operand1="${ant.version1}" operation="min"
operand2="1" datatype="int" />
        <math result="ch2" operand1="${ant.sub.version}"
operation="min" operand2="6" datatype="int" />
        <math result="ch3" operand1="${ant.sub.sub.version}"
operation="min" operand2="5" datatype="int" />

        <fail>
            <condition>
                <not>
                    <and>
                        <equals arg1="${ch1}" arg2="1" />
                        <equals arg1="${ch2}" arg2="6" />
                        <equals arg1="${ch3}" arg2="5" />
                    </and>
                </not>
            </condition>


It tries to check the ant version no lower than 1.6.5, but it doesn't
distinct the three digits in priority. That makes 1.7.0 fail in the
check, but 0 is smaller than 5.

It needs a logic to pass the check once a higher-order digit is bigger
than the targeted value. Or the script can compose a single integer
such as 170 with the three version digits then compare it with 165.

How do you think?

Thanks,
xiaofeng

Mime
View raw message