Author: marrs
Date: Thu Feb 27 09:01:04 2014
New Revision: 1572476

URL: http://svn.apache.org/r1572476
Log:
Added a script to add some additional targets.

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

Added: ace/trunk/run-server-allinone/scripts/addtargets.gogo
URL: 
http://svn.apache.org/viewvc/ace/trunk/run-server-allinone/scripts/addtargets.gogo?rev=1572476&view=auto
==============================================================================
--- ace/trunk/run-server-allinone/scripts/addtargets.gogo (added)
+++ ace/trunk/run-server-allinone/scripts/addtargets.gogo Thu Feb 27 09:01:04 
2014
@@ -0,0 +1,21 @@
+#
+# Creates 10 additional targets, with some tags, and associates them with
+# existing distributions (from 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 targets
+each [0 1 2 3 4 5 6 7 8 9] {
+       $w cd2t '(name=dist-'$it')' '(id=target-extra-'$it')'
+       $w ct [id='target-extra-'$it] [prop01=test prop02=another prop03=value]
+}
+
+# commit and delete the workspace
+$w commit
+rw $w


Reply via email to