You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by se...@apache.org on 2002/07/30 17:15:48 UTC

cvs commit: xml-axis/java/xmls properties.xml targets.xml

seibert     2002/07/30 08:15:48

  Modified:    java/xmls properties.xml targets.xml
  Log:
  Added Ant 1.5 check.  I check both of the following:
    1) The actual ant.version property
    2) The Ability of Ant to execute a 1.5 conditional statement
  
  Look in xmls/targets.xml in the "setenv" target at the very first two stanzas
  (the condition and subsequent fail) for more information
  
  Revision  Changes    Path
  1.8       +1 -0      xml-axis/java/xmls/properties.xml
  
  Index: properties.xml
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/xmls/properties.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- properties.xml	23 Jul 2002 23:36:42 -0000	1.7
  +++ properties.xml	30 Jul 2002 15:15:48 -0000	1.8
  @@ -3,6 +3,7 @@
   <property environment="env"/>
   <!-- workaround for those IDEs that dont set ant.home as per the ant script -->
   <property name="ant.home" value="env.ANT_HOME" />
  +<property name="ant.required.version" value="1.5" />
   
   <property name="axis.version" value="beta3+" />
   <property name="name" value="axis" />
  
  
  
  1.2       +8 -0      xml-axis/java/xmls/targets.xml
  
  Index: targets.xml
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/xmls/targets.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- targets.xml	29 Jul 2002 20:07:05 -0000	1.1
  +++ targets.xml	30 Jul 2002 15:15:48 -0000	1.2
  @@ -21,6 +21,14 @@
   
     <target name="setenv">
   
  +    <condition property="ant.good">
  +      <and>
  +        <contains string="${ant.version}" substring="${ant.required.version}"/>
  +      </and>
  +    </condition>
  +
  +    <fail unless="ant.good" message="Improper Version of Ant" />
  +
       <available property="servlet.present"
         classname="javax.servlet.Servlet"
         classpathref="classpath"/>