java-commons-io: source jdk profile instead of setting JAVA_HOME by hand
This commit is contained in:
parent
885cfdfdf9
commit
b87e5995ed
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue