# HG changeset patch # User Andre Heinecke # Date 1434728495 -7200 # Node ID 340111f40f2de330e34db00a9b7c45066290eff1 # Parent 1816389d5f6cda582f93ff449796434ff2822193 (issue1824) Install smartgwt from file base on SMARTGWT environment variable diff -r 1816389d5f6c -r 340111f40f2d contrib/make_flys_release/make_release.sh --- a/contrib/make_flys_release/make_release.sh Fri Jun 19 17:23:35 2015 +0200 +++ b/contrib/make_flys_release/make_release.sh Fri Jun 19 17:41:35 2015 +0200 @@ -98,7 +98,18 @@ mkdir -p $WORK_DIR -if [ ! -d $FLYS_SOURCE_DIR ]; then +if [ -z "$SMARTGWT" ]; then + echo "ERROR: Variable SMARTGWT not set." + echo "Please set this variable to point to the smartgwt .jar archive to be used." + exit 1 +fi + +if [ ! -f "$SMARTGWT" ]; then + echo "ERROR: Failed to find smartgwt archive at: '$SMARTGWT'" + exit 1 +fi + +if [ ! -d "$FLYS_SOURCE_DIR" ]; then mkdir -p $FLYS_SOURCE_DIR echo "Cloning sources" cd $FLYS_SOURCE_DIR @@ -164,9 +175,11 @@ $FLYS_SOURCE_DIR/river/gwt-client/src/main/webapp/ -echo "INFO: Downloading smartGWT" -mvn com.isomorphic:isc-maven-plugin:install -Dproduct=SMARTGWT -Dlicense=LGPL \ - -DbuildNumber=4.1p -DbuildDate=2015-04-25 -Dworkdir=$WORK_DIR +echo "INFO: Installing smartGWT" + +mvn install:install-file -Dfile="$SMARTGWT" -Dversion=4.1-p20141119 \ + -DartifactId=smartgwt-lgpl -DgroupId=com.isomorphic.smartgwt.lgpl \ + -Dpackaging=jar echo "INFO: compile sources" mvn -f $FLYS_SOURCE_DIR/framework/pom.xml clean compile install