vadimn 32cc13
--- apache-ant-1.6.5/src/script/ant.original	2005-10-27 17:06:55.000000000 -0400
vadimn 32cc13
+++ apache-ant-1.6.5/src/script/ant	2005-10-27 17:08:45.000000000 -0400
vadimn 32cc13
@@ -150,6 +150,28 @@
vadimn 32cc13
 # variable
vadimn 32cc13
 if $rpm_mode && [ -f /usr/bin/build-classpath ] ; then
vadimn 32cc13
   LOCALCLASSPATH="$(/usr/bin/build-classpath ant ant-launcher jaxp_parser_impl xml-commons-apis)"
vadimn 32cc13
+
vadimn 32cc13
+  # If no optional jars have been specified then build the default list
vadimn 32cc13
+  if [ -z "$OPT_JAR_LIST" ] ; then
vadimn 32cc13
+    for file in /etc/ant.d/*; do
vadimn 32cc13
+      if [ -f "$file" ]; then
vadimn 32cc13
+        case "$file" in
vadimn 32cc13
+        *~) ;;
vadimn 32cc13
+        *#*) ;;
vadimn 32cc13
+        *.rpmsave) ;;
vadimn 32cc13
+        *.rpmnew) ;;
vadimn 32cc13
+        *)
vadimn 32cc13
+          for dep in `cat "$file"`; do
vadimn 32cc13
+            case "$OPT_JAR_LIST" in
vadimn 32cc13
+            *"$dep"*) ;;
vadimn 32cc13
+            *) OPT_JAR_LIST="$OPT_JAR_LIST${OPT_JAR_LIST:+ }$dep"
vadimn 32cc13
+            esac
vadimn 32cc13
+          done
vadimn 32cc13
+        esac
vadimn 32cc13
+      fi
vadimn 32cc13
+    done
vadimn 32cc13
+  fi
vadimn 32cc13
+
vadimn 32cc13
   # If the user requested to try to add some other jars to the classpath
vadimn 32cc13
   if [ -n "$OPT_JAR_LIST" ] ; then
vadimn 32cc13
     _OPTCLASSPATH="$(/usr/bin/build-classpath $OPT_JAR_LIST 2> /dev/null)"