mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-29 12:10:54 +00:00
updated bin scripts
This commit is contained in:
parent
11df3530f3
commit
d97c7c7668
@ -18,20 +18,13 @@ if [ ! -d "${APP_DIR}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cd $APP_DIR
|
cd $APP_DIR
|
||||||
./bin/java-wordnik-api.sh
|
|
||||||
./bin/php-wordnik-api.sh
|
|
||||||
./bin/python3-wordnik-api.sh
|
|
||||||
./bin/objc-wordnik-api.sh
|
|
||||||
./bin/python-wordnik-api.sh
|
|
||||||
./bin/scala-wordnik-api.sh
|
|
||||||
|
|
||||||
./bin/android-java-petstore.sh
|
./bin/android-java-petstore.sh
|
||||||
./bin/csharp-petstore.sh
|
./bin/android-java-wordnik-api.sh
|
||||||
./bin/flash-petstore.sh
|
./bin/dynamic-html.sh
|
||||||
|
./bin/html.sh
|
||||||
|
./bin/java-petstore-filemap.sh
|
||||||
./bin/java-petstore.sh
|
./bin/java-petstore.sh
|
||||||
|
./bin/java-wordnik-api.sh
|
||||||
./bin/objc-petstore.sh
|
./bin/objc-petstore.sh
|
||||||
./bin/php-petstore.sh
|
./bin/objc-wordnik-api.sh
|
||||||
./bin/python-petstore.sh
|
./bin/tizen-petstore.sh
|
||||||
./bin/python3-petstore.sh
|
|
||||||
./bin/ruby-petstore.sh
|
|
||||||
./bin/scala-petstore.sh
|
|
||||||
|
@ -17,11 +17,20 @@ if [ ! -d "${APP_DIR}" ]; then
|
|||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $APP_DIR
|
root=./modules/swagger-codegen-distribution/pom.xml
|
||||||
|
|
||||||
|
# gets version of swagger-codegen
|
||||||
|
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
|
||||||
|
|
||||||
|
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn clean package
|
||||||
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="$@ com.wordnik.swagger.codegen.Codegen -i src/test/resources/petstore.json -l android -o samples/client/petstore/android-java"
|
ags="$@ -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l android -o samples/client/petstore/android-java"
|
||||||
|
|
||||||
java -cp $APP_DIR/target/*:$APP_DIR/target/lib/* $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
SCRIPT="$0"
|
SCRIPT="$0"
|
||||||
SCALA_RUNNER_VERSION=$(scala ./bin/Version.scala)
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
while [ -h "$SCRIPT" ] ; do
|
||||||
ls=`ls -ld "$SCRIPT"`
|
ls=`ls -ld "$SCRIPT"`
|
||||||
@ -18,15 +17,20 @@ if [ ! -d "${APP_DIR}" ]; then
|
|||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $APP_DIR
|
root=./modules/swagger-codegen-distribution/pom.xml
|
||||||
|
|
||||||
|
# gets version of swagger-codegen
|
||||||
|
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
|
||||||
|
|
||||||
|
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn clean package
|
||||||
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="$@ samples/client/petstore/android-java/AndroidJavaPetstoreCodegen.scala http://petstore.swagger.wordnik.com/api/api-docs special-key"
|
ags="$@ -i modules/swagger-codegen/src/test/resources/2_0/wordnik.json -l android -o samples/client/wordnik/android-java"
|
||||||
|
|
||||||
if [ -f $APP_DIR/target/scala-$SCALA_RUNNER_VERSION/*assembly*.jar ]; then
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
scala -cp target/scala-$SCALA_RUNNER_VERSION/*assembly*.jar $ags
|
|
||||||
else
|
|
||||||
echo "Please set scalaVersion := \"$SCALA_RUNNER_VERSION\" in build.sbt and run ./sbt assembly"
|
|
||||||
fi
|
|
||||||
|
@ -17,11 +17,20 @@ if [ ! -d "${APP_DIR}" ]; then
|
|||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $APP_DIR
|
root=./modules/swagger-codegen-distribution/pom.xml
|
||||||
|
|
||||||
|
# gets version of swagger-codegen
|
||||||
|
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
|
||||||
|
|
||||||
|
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn clean package
|
||||||
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="$@ com.wordnik.swagger.codegen.Codegen -i http://petstore.swagger.wordnik.com/v2/swagger.json -l dynamic-html -o samples/swagger-dynamic-html"
|
ags="$@ -i http://petstore.swagger.wordnik.com/v2/swagger.json -l dynamic-html -o samples/swagger-dynamic-html"
|
||||||
|
|
||||||
java -cp $APP_DIR/target/*:$APP_DIR/target/lib/* $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
15
bin/html.sh
15
bin/html.sh
@ -17,11 +17,20 @@ if [ ! -d "${APP_DIR}" ]; then
|
|||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $APP_DIR
|
root=./modules/swagger-codegen-distribution/pom.xml
|
||||||
|
|
||||||
|
# gets version of swagger-codegen
|
||||||
|
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
|
||||||
|
|
||||||
|
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn clean package
|
||||||
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="$@ com.wordnik.swagger.codegen.Codegen -i http://petstore.swagger.wordnik.com/v2/swagger.json -l html -o samples/swagger-html"
|
ags="$@ -i http://petstore.swagger.wordnik.com/v2/swagger.json -l html -o samples/swagger-html"
|
||||||
|
|
||||||
java -cp $APP_DIR/target/*:$APP_DIR/target/lib/* $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
@ -17,10 +17,20 @@ if [ ! -d "${APP_DIR}" ]; then
|
|||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $APP_DIR
|
root=./modules/swagger-codegen-distribution/pom.xml
|
||||||
|
|
||||||
|
# gets version of swagger-codegen
|
||||||
|
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
|
||||||
|
|
||||||
|
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn clean package
|
||||||
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="$@ com.wordnik.swagger.codegen.Codegen -i src/test/resources/petstore.json -l java -o samples/client/petstore/java"
|
ags="$@ -i modules/swagger-codegen/src/test/resources/2_0/petstore.json -l java -o samples/client/petstore/java"
|
||||||
|
|
||||||
java -cp $APP_DIR/target/*:$APP_DIR/target/lib/* $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
@ -17,10 +17,20 @@ if [ ! -d "${APP_DIR}" ]; then
|
|||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $APP_DIR
|
root=./modules/swagger-codegen-distribution/pom.xml
|
||||||
|
|
||||||
|
# gets version of swagger-codegen
|
||||||
|
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
|
||||||
|
|
||||||
|
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn clean package
|
||||||
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="$@ com.wordnik.swagger.codegen.Codegen -i http://petstore.swagger.wordnik.com/v2/swagger.json -l java -o samples/client/petstore/java"
|
ags="$@ -i http://petstore.swagger.wordnik.com/v2/swagger.json -l java -o samples/client/petstore/java"
|
||||||
|
|
||||||
java -cp $APP_DIR/target/*:$APP_DIR/target/lib/* $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
@ -17,10 +17,20 @@ if [ ! -d "${APP_DIR}" ]; then
|
|||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $APP_DIR
|
root=./modules/swagger-codegen-distribution/pom.xml
|
||||||
|
|
||||||
|
# gets version of swagger-codegen
|
||||||
|
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
|
||||||
|
|
||||||
|
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn clean package
|
||||||
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="$@ com.wordnik.swagger.codegen.Codegen -i src/test/resources/wordnik.json -l java"
|
ags="$@ -i modules/swagger-codegen/src/test/resources/2_0/wordnik.json -l java -o samples/client/wordnik/java"
|
||||||
|
|
||||||
java -cp $APP_DIR/target/*:$APP_DIR/target/lib/* $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
@ -17,10 +17,20 @@ if [ ! -d "${APP_DIR}" ]; then
|
|||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $APP_DIR
|
root=./modules/swagger-codegen-distribution/pom.xml
|
||||||
|
|
||||||
|
# gets version of swagger-codegen
|
||||||
|
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
|
||||||
|
|
||||||
|
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn clean package
|
||||||
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="$@ com.wordnik.swagger.codegen.Codegen -i src/test/resources/petstore.json -l objc -o samples/client/petstore/objc -t src/main/resources/objc"
|
ags="$@ -i modules/swagger-codegen/src/test/resources/petstore.json -l objc -o samples/client/petstore/objc -t src/main/resources/objc"
|
||||||
|
|
||||||
java -cp $APP_DIR/target/*:$APP_DIR/target/lib/* $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
@ -17,10 +17,20 @@ if [ ! -d "${APP_DIR}" ]; then
|
|||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $APP_DIR
|
root=./modules/swagger-codegen-distribution/pom.xml
|
||||||
|
|
||||||
|
# gets version of swagger-codegen
|
||||||
|
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
|
||||||
|
|
||||||
|
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn clean package
|
||||||
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="$@ com.wordnik.swagger.codegen.Codegen -i src/test/resources/wordnik.json -l objc"
|
ags="$@ -i modules/swagger-codegen/src/test/resources/2_0/wordnik.json -l objc -o samples/client/wordnik/objc"
|
||||||
|
|
||||||
java -cp $APP_DIR/target/*:$APP_DIR/target/lib/* $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
@ -17,10 +17,20 @@ if [ ! -d "${APP_DIR}" ]; then
|
|||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $APP_DIR
|
root=./modules/swagger-codegen-distribution/pom.xml
|
||||||
|
|
||||||
|
# gets version of swagger-codegen
|
||||||
|
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
|
||||||
|
|
||||||
|
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn clean package
|
||||||
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="$@ com.wordnik.swagger.codegen.Codegen -i http://petstore.swagger.wordnik.com/v2/swagger.json -l tizen -o samples/client/petstore/tizen"
|
ags="$@ -i http://petstore.swagger.wordnik.com/v2/swagger.json -l tizen -o samples/client/petstore/tizen"
|
||||||
|
|
||||||
java -cp $APP_DIR/target/*:$APP_DIR/target/lib/* $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user