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

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