File apache-ant-1.7.0.ant.conf of Package ant

#
# ant.conf (Ant 1.6.x)
# JPackage Project <http://www.jpackage.org/>
#

# Validate --noconfig setting in case being invoked
# from pre Ant 1.6.x environment
if [ -z "$no_config" ] ; then
  no_config=true
fi

# Setup ant configuration
if $no_config ; then
  # Disable RPM layout
  rpm_mode=false
else
  # Use RPM layout
  rpm_mode=true
  #
  # 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

  # ANT_HOME for rpm layout
  ANT_HOME=/usr/share/ant

  # Optional jars list
  if [ -z "$OPT_JAR_LIST" ] ; then
    # RPM installed ant optional packages normally
    # require one or more other dependencies to be listed
    # as well, (e.g. "ant-junit" requires "junit"):
    # OPT_JAR_LIST="$OPT_JAR_LIST junit ant/ant-junit"

    OPT_JAR_LIST="$OPT_JAR_LIST" # RPM DO NOT EDIT OR REMOVE THIS LINE
  fi
fi