Skip to content

Commit

Permalink
Add bash scripts
Browse files Browse the repository at this point in the history
fix bat include
  • Loading branch information
r41d committed Apr 20, 2015
1 parent b1fc18c commit 628a5ca
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 1 deletion.
8 changes: 7 additions & 1 deletion distribution/distribution.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,16 @@
<outputDirectory>/src/main/style</outputDirectory>
</fileSet>
<fileSet>
<directory>/scripts</directory>
<directory>scripts</directory>
<includes>
<include>wsdldiff.bat</include>
<include>analyzewsdl.bat</include>
<include>create-request-template.bat</include>
<include>schemadiff.bat</include>
<include>wsdldiff.sh</include>
<include>analyzewsdl.sh</include>
<include>create-request-template.sh</include>
<include>schemadiff.sh</include>
</includes>
<outputDirectory>/bin</outputDirectory>
<filtered>true</filtered>
Expand Down
30 changes: 30 additions & 0 deletions distribution/scripts/analyzewsdl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh
SCRIPTNAME=`basename $0`
if [ -n $SOA_MODEL_HOME ]; then # check if SOA_MODEL_HOME is set
if [ ! -e "${SOA_MODEL_HOME}/bin/${SCRIPTNAME}" ]; then # if script can't find itself...
echo "Invalid SOA_MODEL_HOME directory specified"
exit 1
fi
else # if SOA_MODEL_HOME is not set...
SOA_MODEL_HOME=$PWD # ... try pwd
if [ ! -e "${SOA_MODEL_HOME}/bin/${SCRIPTNAME}" ]; then # if script can't find itself...
echo "Please set the SOA_MODEL_HOME environment variable to point to the"
echo "directory where you have extracted the SOA Model distribution package"
echo "and put it in your path environment variable."
exit 1
fi
fi

CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/soa-model-distribution-${version}.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/soa-model-core-${version}.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/commons-codec-1.6.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/httpclient-4.2.2.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/httpcore-4.2.2.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/commons-logging-1.1.1.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/groovy-2.0.4.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/groovy-xml-2.0.4.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/asm-4.0.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/commons-cli-1.2.jar"
java -classpath "${CLASSPATH}" \
org.membrane_soa.soa_model.analyzer.WSDLAnalyzer \
$1 $2 $3 $4 $5 $6
30 changes: 30 additions & 0 deletions distribution/scripts/create-request-template.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh
SCRIPTNAME=`basename $0`
if [ -n $SOA_MODEL_HOME ]; then # check if SOA_MODEL_HOME is set
if [ ! -e "${SOA_MODEL_HOME}/bin/${SCRIPTNAME}" ]; then # if script can't find itself...
echo "Invalid SOA_MODEL_HOME directory specified"
exit 1
fi
else # if SOA_MODEL_HOME is not set...
SOA_MODEL_HOME=$PWD # ... try pwd
if [ ! -e "${SOA_MODEL_HOME}/bin/${SCRIPTNAME}" ]; then # if script can't find itself...
echo "Please set the SOA_MODEL_HOME environment variable to point to the"
echo "directory where you have extracted the SOA Model distribution package"
echo "and put it in your path environment variable."
exit 1
fi
fi

CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/soa-model-distribution-${version}.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/soa-model-core-${version}.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/commons-codec-1.6.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/httpclient-4.2.2.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/httpcore-4.2.2.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/commons-logging-1.1.1.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/groovy-2.0.4.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/groovy-xml-2.0.4.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/asm-4.0.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/commons-cli-1.2.jar"
java -classpath "${CLASSPATH}" \
org.membrane_soa.soa_model.creator.CreateSOAPRequestTemplate \
$1 $2 $3 $4 $5 $6
30 changes: 30 additions & 0 deletions distribution/scripts/schemadiff.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh
SCRIPTNAME=`basename $0`
if [ -n $SOA_MODEL_HOME ]; then # check if SOA_MODEL_HOME is set
if [ ! -e "${SOA_MODEL_HOME}/bin/${SCRIPTNAME}" ]; then # if script can't find itself...
echo "Invalid SOA_MODEL_HOME directory specified"
exit 1
fi
else # if SOA_MODEL_HOME is not set...
SOA_MODEL_HOME=$PWD # ... try pwd
if [ ! -e "${SOA_MODEL_HOME}/bin/${SCRIPTNAME}" ]; then # if script can't find itself...
echo "Please set the SOA_MODEL_HOME environment variable to point to the"
echo "directory where you have extracted the SOA Model distribution package"
echo "and put it in your path environment variable."
exit 1
fi
fi

CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/soa-model-distribution-${version}.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/soa-model-core-${version}.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/commons-codec-1.6.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/httpclient-4.2.2.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/httpcore-4.2.2.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/commons-logging-1.1.1.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/groovy-2.0.4.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/groovy-xml-2.0.4.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/asm-4.0.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/commons-cli-1.2.jar"
java -classpath "${CLASSPATH}" \
org.membrane_soa.soa_model.diff.SchemaDiffCLI \
$1 $2 $3 $4 $5 $6
30 changes: 30 additions & 0 deletions distribution/scripts/wsdldiff.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh
SCRIPTNAME=`basename $0`
if [ -n $SOA_MODEL_HOME ]; then # check if SOA_MODEL_HOME is set
if [ ! -e "${SOA_MODEL_HOME}/bin/${SCRIPTNAME}" ]; then # if script can't find itself...
echo "Invalid SOA_MODEL_HOME directory specified"
exit 1
fi
else # if SOA_MODEL_HOME is not set...
SOA_MODEL_HOME=$PWD # ... try pwd
if [ ! -e "${SOA_MODEL_HOME}/bin/${SCRIPTNAME}" ]; then # if script can't find itself...
echo "Please set the SOA_MODEL_HOME environment variable to point to the"
echo "directory where you have extracted the SOA Model distribution package"
echo "and put it in your path environment variable."
exit 1
fi
fi

CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/soa-model-distribution-${version}.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/soa-model-core-${version}.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/commons-codec-1.6.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/httpclient-4.2.2.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/httpcore-4.2.2.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/commons-logging-1.1.1.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/groovy-2.0.4.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/groovy-xml-2.0.4.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/asm-4.0.jar"
CLASSPATH="${CLASSPATH}:${SOA_MODEL_HOME}/lib/commons-cli-1.2.jar"
java -classpath "${CLASSPATH}" \
org.membrane_soa.soa_model.diff.WSDLDiffCLI \
$1 $2 $3 $4 $5 $6

0 comments on commit 628a5ca

Please sign in to comment.