ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From umag...@apache.org
Subject cvs commit: jakarta-ant build.xml
Date Thu, 18 Apr 2002 18:02:56 GMT
umagesh     02/04/18 11:02:56

  Modified:    .        build.xml
  Log:
  Search $PATH to see if rpm is available if it is not present in normal locations.
  
  Revision  Changes    Path
  1.296     +7 -2      jakarta-ant/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/build.xml,v
  retrieving revision 1.295
  retrieving revision 1.296
  diff -u -r1.295 -r1.296
  --- build.xml	18 Apr 2002 12:58:50 -0000	1.295
  +++ build.xml	18 Apr 2002 18:02:56 -0000	1.296
  @@ -965,8 +965,13 @@
     </target>
   
     <target name="rpm_check">
  -    <available property="rpm.present"
  -               file="/bin/rpm"/>
  +    <condition property="rpm.present">
  +      <or>
  +        <available file="/bin/rpm" />
  +        <available file="/usr/local/bin/rpm" />
  +        <available file="rpm" filepath="${env.PATH}" />
  +      </or>
  +    </condition>
     </target>
   
     <target name="rpm" description="--> Build the RPM files for ant"
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message