mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-19 23:30:56 +00:00
* Update php client (OAS3) bin/openapi3/php-petstore.sh * Update symfony server (OAS2) bin/php-symfony-petstore.sh * Lumen: remove 'swagger' * Update lumen server (OAS2) * Update php client (security): deleted 'SwaggerClient-php' folder * Update TEST_DIR * Update php client tests (OAS3) bin/openapi3/php-petstore.sh * Update php client (OAS2) bin/php-petstore.sh * Fix * Fix lumen -> php-lumen * Update lumen server (security) * Delete moved files currently it will generate into under 'lib' folder. * Fix slim -> php-slim * Update slim server (security) bin/security/slim-petstore-server.sh * Fix * Update dot files
39 lines
1.0 KiB
Bash
Executable File
39 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
SCRIPT="$0"
|
|
echo "# START SCRIPT: $SCRIPT"
|
|
|
|
while [ -h "$SCRIPT" ] ; do
|
|
ls=`ls -ld "$SCRIPT"`
|
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
if expr "$link" : '/.*' > /dev/null; then
|
|
SCRIPT="$link"
|
|
else
|
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
fi
|
|
done
|
|
|
|
if [ ! -d "${APP_DIR}" ]; then
|
|
APP_DIR=`dirname "$SCRIPT"`/..
|
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
fi
|
|
|
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
|
|
if [ ! -f "$executable" ]
|
|
then
|
|
mvn clean package
|
|
fi
|
|
|
|
# cleanup tests
|
|
TEST_DIR="./samples/client/petstore-security-test/php/OpenAPIToolsClient-php/test"
|
|
if [ -d $TEST_DIR ]; then
|
|
rm -rf $TEST_DIR
|
|
fi
|
|
|
|
# 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"
|
|
ags="$@ generate -t modules/openapi-generator/src/main/resources/php -i modules/openapi-generator/src/test/resources/3_0/petstore-security-test.yaml -l php -o samples/client/petstore-security-test/php"
|
|
|
|
java $JAVA_OPTS -jar $executable $ags
|