X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=getdown%2Fsrc%2Fgetdown%2Fmvn_cmd;h=e0d7cf143e6e182bbbe029f7f9d0fac50ad652c6;hb=e0fff6b634346ca2d0256d95eacc1b0aae7d3387;hp=bf2db458d0012aa0c522d283828c8932063a1352;hpb=b8fc49a98e4b2d82942f92660bdd00756dfc6a77;p=jalview.git diff --git a/getdown/src/getdown/mvn_cmd b/getdown/src/getdown/mvn_cmd index bf2db45..e0d7cf1 100755 --- a/getdown/src/getdown/mvn_cmd +++ b/getdown/src/getdown/mvn_cmd @@ -3,7 +3,7 @@ if [ x$JVLVERSION != x ]; then export VERSION=$JVLVERSION else - export VERSION=1.8.3-1.0_JVL + export VERSION=1.8.3-1.2.9_JVL fi if [ x${VERSION%_JVL} = x$VERSION ]; then @@ -11,14 +11,23 @@ if [ x${VERSION%_JVL} = x$VERSION ]; then fi echo "Setting VERSION to '$VERSION'" - perl -p -i -e 's|()[^<]*JVL[^<]*()|${1}$ENV{VERSION}${2}|;' pom.xml */pom.xml +mvn package -Dgetdown.host.whitelist="jalview.org,*.jalview.org" -Dallow_file_protocol=false -Dconnect_timeout=8 -Dread_timeout=15 +RET=$? +if [ x$RET = x0 ]; then + cp launcher/target/getdown-launcher-$VERSION.jar ../../../getdown/lib/getdown-launcher.jar && echo "Copied getdown-launcher-$VERSION.jar to getdown/lib" + cp core/target/getdown-core-$VERSION.jar ../../../getdown/lib/getdown-core.jar && echo "Copied getdown-core-$VERSION.jar to getdown/lib" + cp core/target/getdown-core-$VERSION.jar ../../../j8lib/getdown-core.jar && echo "Copied getdown-core-$VERSION.jar to j8lib" + cp core/target/getdown-core-$VERSION.jar ../../../j11lib/getdown-core.jar && echo "Copied getdown-core-$VERSION.jar to j11lib" + echo "$VERSION" > ../../../getdown/lib/JVL_VERSION +fi -mvn clean package -Dgetdown.host.whitelist="jalview.org,*.jalview.org" +VERSION=${VERSION/JVL/FJVL} +echo "Setting VERSION to '$VERSION'" +perl -p -i -e 's|()[^<]*JVL[^<]*()|${1}$ENV{VERSION}${2}|;' pom.xml */pom.xml +mvn package -Dgetdown.host.whitelist="jalview.org,*.jalview.org" -Dallow_file_protocol=true -Dconnect_timeout=4 -Dread_timeout=4 RET=$? if [ x$RET = x0 ]; then - cp launcher/target/getdown-launcher-$VERSION.jar ../../../getdown/lib/getdown-launcher.jar - cp core/target/getdown-core-$VERSION.jar ../../../getdown/lib/getdown-core.jar - cp core/target/getdown-core-$VERSION.jar ../../../j8lib/getdown-core.jar - cp core/target/getdown-core-$VERSION.jar ../../../j11lib/getdown-core.jar + cp launcher/target/getdown-launcher-$VERSION.jar ../../../getdown/lib/getdown-launcher-local.jar && echo "Copied getdown-launcher-$VERSION.jar to getdown/lib/getdown-launcher-local.jar" + echo "$VERSION" > ../../../getdown/lib/FJVL_VERSION fi