Some SlackBuild scripts for Slackware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
476 B

#!/bin/sh
ANT_HOME=/usr/lib/apache-ant
ANT_LIBS=/usr/lib/apache-xml/*:$ANT_HOME/ant-launcher.jar
ANT_CLASS=org.apache.tools.ant.launch.Launcher
if [ "x$http_proxy" != 'x' ]; then
host=`echo $http_proxy | sed -r 's/^(.*):[0-9]+$/\1/'`
port=`echo $http_proxy | sed -r 's/^.*:([0-9]+)$/\1/'`
ANT_OPTS="-Dhttp.proxyHost=$host -Dhttp.proxyPort=$port"
fi
java -cp $ANT_LIBS \
$ANT_OPTS \
-Dant.home="$ANT_HOME" \
-Dant.library.dir="$ANT_HOME" \
$ANT_CLASS $@