Skip to content

Instantly share code, notes, and snippets.

@mmochan
Created June 15, 2009 21:35
Show Gist options
  • Save mmochan/130360 to your computer and use it in GitHub Desktop.
Save mmochan/130360 to your computer and use it in GitHub Desktop.
Ironman:genesis mikemochan$ ./genesis -Denterprise=MyEnterprise -Dservice=MyService -Denvironment=MyEnvironment -Ddatacentre=MyDatacentre -Drack=MyRack -Dnode=MyNode -Dapplication=wlserver103 wlserver103:build
+ . ./contrib/set_env
++ GENESIS_VERSION='VERSION: 0.0.34'
++ GENESIS_HOME=.
++ ARCHETYPES=./archetypes
++ BUILD=./build
++ CONFIG=./config
++ CONTRIB=./contrib
++ DOCS=./docs
++ ENGINE=./engine
++ ANT_HOME=./apache-ant-1.7.1
++ LOGICAL=logical
++ PHYSICAL=physical
++ ENT_TARGET=-Denterprise
++ SER_TARGET=-Dservice
++ ENV_TARGET=-Denvironment
++ DAT_TARGET=-Ddatacentre
++ RAC_TARGET=-Drack
++ NOD_TARGET=-Dnode
++ APP_TARGET=-Dapplication
++ APP_BUILD=:build
+ '[' 8 = 0 ']'
+ '[' 8 '!=' 8 ']'
+ echo -e '
================================================================================
WELCOME TO GENESIS
================================================================================
VERSION:' '0.0.34
Release: Light
License: GPL Version 3
Website: http://www.genesis.uk.com
Contact: info@genesis.uk.com
================================================================================\n'
-e
================================================================================
WELCOME TO GENESIS
================================================================================
VERSION: 0.0.34
Release: Light
License: GPL Version 3
Website: http://www.genesis.uk.com
Contact: info@genesis.uk.com
================================================================================
+ ./contrib/check_env
-e ================================================================================
-e
CHECKING JAVA ENVIRONMENT
JAVA_HOME = /System/Library/Frameworks/JavaVM.framework/Home
Java version:
java full version "1.6.0_03-p3-landonf_03_feb_2008_02_12-b00"
-e
Supported Java version:
java full version "1.6.*"
Verify that your version of Java matches the supported version.
-e
================================================================================
-e
CHECKING ANT ENVIRONMENT
ANT_HOME = ./apache-ant-1.7.1
Ant version:
Apache Ant version 1.7.1 compiled on June 27 2008
-e
Supported Ant version:
Apache Ant version 1.7.0 compiled on December 13 2006
Verify that your version of Ant matches the supported version.
-e ================================================================================
+ echo -e '
CHECKING TARGETS\n'
-e
CHECKING TARGETS
+ GEN_TARGS=($ENT_TARGET $SER_TARGET $ENV_TARGET $DAT_TARGET $RAC_TARGET $NOD_TARGET $APP_TARGET $APP_BUILD)
+ OPTS='-Denterprise=MyEnterprise -Dservice=MyService -Denvironment=MyEnvironment -Ddatacentre=MyDatacentre -Drack=MyRack -Dnode=MyNode -Dapplication=wlserver103 wlserver103:build'
+ for TARGS in '$OPTS'
++ echo -Denterprise=MyEnterprise
++ sed -e 's/\([=].*\)//g' -e 's/.*\([:]\)/:/g'
+ TARG=-Denterprise
+ echo -e -Denterprise
+ for TARGS in '$OPTS'
++ echo -Dservice=MyService
++ sed -e 's/\([=].*\)//g' -e 's/.*\([:]\)/:/g'
+ TARG=-Dservice
+ echo -e -Dservice
+ for TARGS in '$OPTS'
++ echo -Denvironment=MyEnvironment
++ sed -e 's/\([=].*\)//g' -e 's/.*\([:]\)/:/g'
+ TARG=-Denvironment
+ echo -e -Denvironment
+ for TARGS in '$OPTS'
++ echo -Ddatacentre=MyDatacentre
++ sed -e 's/\([=].*\)//g' -e 's/.*\([:]\)/:/g'
+ TARG=-Ddatacentre
+ echo -e -Ddatacentre
+ for TARGS in '$OPTS'
++ echo -Drack=MyRack
++ sed -e 's/\([=].*\)//g' -e 's/.*\([:]\)/:/g'
+ TARG=-Drack
+ echo -e -Drack
+ for TARGS in '$OPTS'
++ echo -Dnode=MyNode
++ sed -e 's/\([=].*\)//g' -e 's/.*\([:]\)/:/g'
+ TARG=-Dnode
+ echo -e -Dnode
+ for TARGS in '$OPTS'
++ echo -Dapplication=wlserver103
++ sed -e 's/\([=].*\)//g' -e 's/.*\([:]\)/:/g'
+ TARG=-Dapplication
+ echo -e -Dapplication
+ for TARGS in '$OPTS'
++ echo wlserver103:build
++ sed -e 's/\([=].*\)//g' -e 's/.*\([:]\)/:/g'
+ TARG=:build
+ echo -e :build
+ declare -a 'CMD_TARGS[]'
+ exec
+ let COUNT=0
+ read LINE
+ CMD_TARGS[$COUNT]='-e -Denterprise'
+ (( COUNT++ ))
+ read LINE
+ CMD_TARGS[$COUNT]='-e -Dservice'
+ (( COUNT++ ))
+ read LINE
+ CMD_TARGS[$COUNT]='-e -Denvironment'
+ (( COUNT++ ))
+ read LINE
+ CMD_TARGS[$COUNT]='-e -Ddatacentre'
+ (( COUNT++ ))
+ read LINE
+ CMD_TARGS[$COUNT]='-e -Drack'
+ (( COUNT++ ))
+ read LINE
+ CMD_TARGS[$COUNT]='-e -Dnode'
+ (( COUNT++ ))
+ read LINE
+ CMD_TARGS[$COUNT]='-e -Dapplication'
+ (( COUNT++ ))
+ read LINE
+ CMD_TARGS[$COUNT]='-e :build'
+ (( COUNT++ ))
+ read LINE
+ rm -rf TARGETS
+ exec
+ [[ -e -Denterprise -e -Dservice -e -Denvironment -e -Ddatacentre -e -Drack -e -Dnode -e -Dapplication -e :build != \-\D\e\n\t\e\r\p\r\i\s\e \-\D\s\e\r\v\i\c\e \-\D\e\n\v\i\r\o\n\m\e\n\t \-\D\d\a\t\a\c\e\n\t\r\e \-\D\r\a\c\k \-\D\n\o\d\e \-\D\a\p\p\l\i\c\a\t\i\o\n \:\b\u\i\l\d ]]
+ echo -e 'FAILURE: TARGET ERROR'
-e FAILURE: TARGET ERROR
+ RETVAL=1
+ '[' 1 '!=' 0 ']'
+ echo -e '
================================================================================
ERROR REPORT:
SYNTAX ERROR - INCORRECT TARGET GIVEN!
Error: -e' -Denterprise -e -Dservice -e -Denvironment -e -Ddatacentre -e -Drack -e -Dnode -e -Dapplication -e ':build
Usage: -Denterprise' -Dservice -Denvironment -Ddatacentre -Drack -Dnode -Dapplication ':build
================================================================================'
-e
================================================================================
ERROR REPORT:
SYNTAX ERROR - INCORRECT TARGET GIVEN!
Error: -e -Denterprise -e -Dservice -e -Denvironment -e -Ddatacentre -e -Drack -e -Dnode -e -Dapplication -e :build
Usage: -Denterprise -Dservice -Denvironment -Ddatacentre -Drack -Dnode -Dapplication :build
================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment