You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ace.apache.org by ma...@apache.org on 2014/02/27 10:46:18 UTC

svn commit: r1572484 - /ace/trunk/run-server-allinone/scripts/adddist.gogo

Author: marrs
Date: Thu Feb 27 09:46:18 2014
New Revision: 1572484

URL: http://svn.apache.org/r1572484
Log:
Script that adds a few distributions with features and artifacts.

Added:
    ace/trunk/run-server-allinone/scripts/adddist.gogo

Added: ace/trunk/run-server-allinone/scripts/adddist.gogo
URL: http://svn.apache.org/viewvc/ace/trunk/run-server-allinone/scripts/adddist.gogo?rev=1572484&view=auto
==============================================================================
--- ace/trunk/run-server-allinone/scripts/adddist.gogo (added)
+++ ace/trunk/run-server-allinone/scripts/adddist.gogo Thu Feb 27 09:46:18 2014
@@ -0,0 +1,31 @@
+#
+# Adds some distributions, features and artifacts (based on setup.gogo).
+#
+
+# install test bundle with additional Gogo commands needed later on in this script
+pwd = (cd) getAbsolutePath
+start 'file:'$pwd'/../org.apache.ace.test/generated/org.apache.ace.test.jar'
+
+# create a workspace
+w = (cw)
+
+# create entities in workspace
+each [0 1 2 3 4 5 6 7 8 9] {
+	a = $it
+	each [0 1 2 3 4 5 6 7 8] {
+		# generate artifacts and associate them
+        $w ca (gba 'artifact-extra-'$a$it) true
+		$w ca2f '(bundle-symbolicname=artifact-extra-'$a$it')' '(name=feature-extra-'$a')'
+	}
+	echo 'Creating config-'$a'.xml ...'
+	c = (gca 'config-extra-'$a 'common' 'prop'$a'1' 'prop'$a'2' 'prop'$a'3')
+	$w ca $c true
+	$w ca2f '(artifactName=config-extra-'$a'.xml)' '(name=feature-extra-'$a')'
+	$w cf 'feature-extra-'$it
+	$w cf2d '(name=feature-extra-'$it')' '(name=dist-extra-'$it')'
+	$w cd 'dist-extra-'$it
+}
+
+# commit and delete the workspace
+$w commit
+rw $w