java-commons-io: source jdk profile instead of setting JAVA_HOME by hand

This commit is contained in:
Enno Boland 2014-06-22 12:03:18 +02:00
parent 885cfdfdf9
commit b87e5995ed
1 changed files with 6 additions and 5 deletions

View File

@ -16,9 +16,10 @@ wrksrc="${_origname}-${version}-src"
do_build(){
cd ${wrksrc}
JAVA_HOME=/usr/share/java/oracle-jdk ant jar
}
source /etc/profile.d/oracle-jdk.sh
ant jar
}
do_install(){
vinstall ${wrksrc}/target/${_origname}-2.2-SNAPSHOT.jar 755 /usr/share/java/${_origname} ${_origname}.jar
}
}