Sha256: 8301963cd13ac31963741a046d6ad241db94d25c31b13c29490fd8cb0da14781
Contents?: true
Size: 955 Bytes
Versions: 11
Compression:
Stored size: 955 Bytes
Contents
#!/bin/bash set -e cd "$(dirname "$0")/.." SWAGGER_CODGEN_REVISION=$(cat .swagger-revision 2> /dev/null || true) if [ "$SWAGGER_CODGEN_REVISION" = "" ]; then echo "Set a revision of swagger-codegen to use in .swagger-revision" exit 1 fi if [ ! -d "swagger-codegen" ]; then git clone https://github.com/swagger-api/swagger-codegen fi ( cd swagger-codegen if [[ "${#SWAGGER_CODGEN_REVISION}" -lt 40 ]]; then # resolve git tags / branch names SWAGGER_CODGEN_REVISION=$(git show "$SWAGGER_CODGEN_REVISION" --format="%H") fi if [[ $(cat .git/HEAD) != "$SWAGGER_CODGEN_REVISION" ]]; then git fetch git checkout "$SWAGGER_CODGEN_REVISION" mvn clean package fi ) executable="./swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar" if [ ! -f "$executable" ]; then mvn clean package fi export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" java $JAVA_OPTS -jar $executable $*
Version data entries
11 entries across 11 versions & 2 rubygems