Permalink
Browse files

changed POM to deal with building with certain dependencies (flavors)

and script that automatically builds selected combinations
  • Loading branch information...
1 parent 6bdaa11 commit b641b56c95aa09eacd15b4d732b0a76b27f9853e @kaptoxic committed Jan 23, 2013
Showing with 261 additions and 123 deletions.
  1. +38 −0 ch.epfl.insynth.build/ecosystem-build.sh
  2. +223 −123 ch.epfl.insynth.build/pom.xml
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+# combinations of flavors to build
+ECLIPSE_FLAVORS=( "indigo" )
+SCALA_IDE_FLAVORS=( "dev-scala-ide-indigo-scala-2.9" )
+SCALA_FLAVORS=( "2.9.x" )
+
+# root dir (containing this script)
+ROOT_DIR=$(dirname $0)
+cd ${ROOT_DIR}
+ROOT_DIR=${PWD}
+#TARGET_DIR=/localhome/kuraj/temp/insynth-maven-build
+TARGET_DIR=/localhome/kuraj/Dropbox/Public/insynth
+
+for eclipse_flavor in "${ECLIPSE_FLAVORS[@]}"
+do
+for scala_ide_flavor in "${SCALA_IDE_FLAVORS[@]}"
+do
+for scala_flavor in "${SCALA_FLAVORS[@]}"
+do
+
+COMB="${eclipse_flavor}_${scala_ide_flavor}_${scala_flavor}"
+echo "Bulding InSynth for flavors ${eclipse_flavor} + ${scala_ide_flavor} + ${scala_flavor} into ${TARGET_DIR}/${COMB}"
+
+mvn -Pset-versions -P$eclipse_flavor -P$scala_ide_flavor -P$scala_flavor -Dtycho.style=maven --non-recursive exec:java
+
+mvn -Pset-versions -P$eclipse_flavor -P$scala_ide_flavor -P$scala_flavor clean package
+
+rm -rf ${TARGET_DIR}/$COMB
+mkdir -p ${TARGET_DIR}
+
+cp -r ${ROOT_DIR}/ch.epfl.insynth.update-site/target/site/ ${TARGET_DIR}/$COMB
+
+done
+done
+done
+
+exit
Oops, something went wrong.

0 comments on commit b641b56

Please sign in to comment.