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