[jarbundler] use javac target/source 1.5
gil
gil at fedoraproject.org
Thu Sep 5 12:33:24 UTC 2013
commit 35e41bd8134e7fcd0086ccf87e0ef6cd83a18f6f
Author: gil <puntogil at libero.it>
Date: Thu Sep 5 14:33:08 2013 +0200
use javac target/source 1.5
jarbundler.spec | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/jarbundler.spec b/jarbundler.spec
index e5dbdb2..76ed443 100644
--- a/jarbundler.spec
+++ b/jarbundler.spec
@@ -49,11 +49,12 @@ find -name '*.jar' -delete
cp -p %{SOURCE1} pom.xml
sed -i "s|@VERSION@|%{version}|" pom.xml
+sed -i 's|source="1.4"|source="1.5" target="1.5"|' build.xml
+sed -i 's|/Developer/Java/Ant/lib/ant.jar|%{_javadir}/ant.jar|' build.xml
+sed -i 's|<javadoc destdir="javadoc" classpath="${ant.jar}">|<javadoc destdir="javadoc" classpath="${ant.jar}:build/${jarbundler.jar}">|' build.xml
+
%build
-export CLASSPATH=
-CLASSPATH=build/lib/%{name}-%{version}.jar:$CLASSPATH
-echo $ANT_HOME
-export OPT_JAR_LIST=:"ant/%{name}-%{version}"
+
ant jar javadocs
%install
More information about the scm-commits
mailing list