]> git.pld-linux.org Git - packages/ant.git/commitdiff
- prepare classpath for Ant based on the installed ant subpackages
authorJacek Konieczny <jajcus@pld-linux.org>
Fri, 19 May 2006 11:12:15 +0000 (11:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ant-ant_d.patch -> 1.1

ant-ant_d.patch [new file with mode: 0644]

diff --git a/ant-ant_d.patch b/ant-ant_d.patch
new file mode 100644 (file)
index 0000000..abcf2bc
--- /dev/null
@@ -0,0 +1,31 @@
+--- apache-ant-1.6.2/src/script/ant~   2004-07-16 08:56:50.000000000 +0100
++++ apache-ant-1.6.2/src/script/ant    2004-11-05 15:14:23.000000000 +0000
+@@ -159,6 +159,28 @@
+ # variable
+ if $rpm_mode && [ -f /usr/bin/build-classpath ] ; then
+   LOCALCLASSPATH="$(/usr/bin/build-classpath ant ant-launcher jaxp_parser_impl xml-commons-apis)"
++
++  # If no optional jars have been specified then build the default list
++  if [ -z "$OPT_JAR_LIST" ] ; then
++    for file in /etc/ant.d/*; do
++      if [ -f "$file" ]; then
++        case "$file" in
++        *~) ;;
++        *#*) ;;
++        *.rpmsave) ;;
++        *.rpmnew) ;;
++        *)
++          for dep in `cat "$file"`; do
++            case "$OPT_JAR_LIST" in
++            *"$dep"*) ;;
++            *) OPT_JAR_LIST="$OPT_JAR_LIST${OPT_JAR_LIST:+ }$dep"
++            esac
++          done
++        esac
++      fi
++    done
++  fi
++
+   # If the user requested to try to add some other jars to the classpath
+   if [ -n "$OPT_JAR_LIST" ] ; then
+     _OPTCLASSPATH="$(/usr/bin/build-classpath $OPT_JAR_LIST 2> /dev/null)"
This page took 0.069328 seconds and 4 git commands to generate.