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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>