source bash-toolbox/init.sh

package props

include string.util.StringUtil
include string.validator.StringValidator

main(){
	if [[ ! $(StringValidator isNull ${1}) ]]; then
		local _cmd=${1}

		shift

		case $(StringUtil returnOption ${1}) in
			a) local propsType=AppServer;;
			b) local propsType=Build;;
			p) local propsType=Portal;;
			t) local propsType=Test;;
		esac

		local cmd=${_cmd}${propsType}Props

		shift

		local branch=${1}

		shift

		if [[ $(StringValidator isSubstring _cmd "set") ]]; then
			local className=PropsWriter
		else
			local className=PropsReader
		fi

		${className} ${cmd} ${branch} $@
	fi
}

main $@
Add new script to handle properties file read/write
Add new script to handle properties file read/write
