From cc533ba77c930e306ae46c761a70c1872fc7057f Mon Sep 17 00:00:00 2001 From: "n.hoffmann" Date: Mon, 15 Aug 2011 15:26:44 +0000 Subject: [PATCH 1/1] Finalizing nightly builds --- eu.etaxonomy.taxeditor/deploy_nightly.sh | 10 ++++----- .../eu.etaxonomy.taxeditor.product | 2 +- eu.etaxonomy.taxeditor/pom.xml | 22 +++++++++++++++++++ pom.xml | 18 +++++++++++++-- 4 files changed, 44 insertions(+), 8 deletions(-) diff --git a/eu.etaxonomy.taxeditor/deploy_nightly.sh b/eu.etaxonomy.taxeditor/deploy_nightly.sh index 2cb8ea7c9..8da863d4c 100755 --- a/eu.etaxonomy.taxeditor/deploy_nightly.sh +++ b/eu.etaxonomy.taxeditor/deploy_nightly.sh @@ -1,6 +1,6 @@ #!/bin/bash -# testing +# local testing #WORKSPACE="/Users/n.hoffmann/Documents/workspace/taxeditor/trunk" PRODUCT_DIR="$WORKSPACE/eu.etaxonomy.taxeditor/target/products" @@ -10,14 +10,14 @@ DEPLOYMENT_DIR="/var/www/download/taxeditor/nightly" # bash check if directory exists if [ ! -d $PRODUCT_DIR ]; then - echo "Target directory does not exist: $PRODUCT_DIR" + echo "Product directory does not exist: $PRODUCT_DIR" exit 1 fi -PRODUCTS=$(ls $PRODUCT_DIR/eu.etaxonomy.taxeditor.product-*.zip) +PRODUCTS=$(ls $PRODUCT_DIR/eu.etaxonomy.taxeditor.product-*.zip) -if [ ! -e $PRODUCTS ]; then - echo "No products in target folder." +if [ ! $PRODUCTS ]; then + echo "No products in product directory: $PRODUCT_DIR" exit 1 fi diff --git a/eu.etaxonomy.taxeditor/eu.etaxonomy.taxeditor.product b/eu.etaxonomy.taxeditor/eu.etaxonomy.taxeditor.product index acc858c06..367316b17 100644 --- a/eu.etaxonomy.taxeditor/eu.etaxonomy.taxeditor.product +++ b/eu.etaxonomy.taxeditor/eu.etaxonomy.taxeditor.product @@ -26,7 +26,7 @@ startupProgressRect="5,447,366,15" startupMessageRect="7,432,360,20" startupForegroundColor="000000" /> - + diff --git a/eu.etaxonomy.taxeditor/pom.xml b/eu.etaxonomy.taxeditor/pom.xml index 6724529f3..c57c91e87 100644 --- a/eu.etaxonomy.taxeditor/pom.xml +++ b/eu.etaxonomy.taxeditor/pom.xml @@ -42,6 +42,28 @@ + + org.codehaus.mojo + wagon-maven-plugin + + + + deploy + + upload + + + + + target/products + *.zip + scpexe://wp5.e-taxonomy.eu/var/www/download/taxeditor/${project.version} + wp5.e-taxonomy.eu + + diff --git a/pom.xml b/pom.xml index 98a0f381f..019486cde 100644 --- a/pom.xml +++ b/pom.xml @@ -238,10 +238,19 @@ + org.apache.maven.plugins - maven-deploy-plugin - 2.5 + maven-release-plugin + 2.2.1 + + true + false + + + + http://dev.e-taxonomy.eu/svn/tags/taxeditor + @@ -251,6 +260,11 @@ maven-jar-plugin 2.3.1 + + org.codehaus.mojo + wagon-maven-plugin + 1.0-beta-3 +