Browse Source

Fix out-of-memory when building apache-ant

master
mid-kid 6 days ago
parent
commit
eaa5e50c37
  1. 5
      java/build_ant.sh

5
java/build_ant.sh

@ -13,6 +13,11 @@ tar xf "$dir_download/apache-ant-$version_ant-src.tar.bz2"
cd "apache-ant-$version_ant"
patch -p1 -i "$dir_files/apache-ant-1.9.16-fix-java4.patch"
# Avoid weird out-of-memory error on a modern minipc of mine...
sed -e '/<format property="year" pattern="yyyy"\/>/d' \
-e '/tstamp>/d' \
-i build.xml
# Build and install
unset JAVAC JAVACMD CLASSPATH
export JAVA_HOME="$PWD/../install-gcc/lib/jvm"

Loading…
Cancel
Save