|
1 | 1 | #!/bin/sh
|
2 | 2 |
|
3 |
| -SCRIPT="$0" |
4 |
| - |
5 |
| -while [ -h "$SCRIPT" ] ; do |
6 |
| - ls=`ls -ld "$SCRIPT"` |
7 |
| - link=`expr "$ls" : '.*-> \(.*\)$'` |
8 |
| - if expr "$link" : '/.*' > /dev/null; then |
9 |
| - SCRIPT="$link" |
10 |
| - else |
11 |
| - SCRIPT=`dirname "$SCRIPT"`/"$link" |
12 |
| - fi |
13 |
| -done |
14 |
| - |
15 |
| -if [ ! -d "${APP_DIR}" ]; then |
16 |
| - APP_DIR=`dirname "$SCRIPT"`/.. |
17 |
| - APP_DIR=`cd "${APP_DIR}"; pwd` |
18 |
| -fi |
19 |
| - |
20 |
| -executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar" |
21 |
| - |
22 |
| -if [ ! -f "$executable" ] |
23 |
| -then |
24 |
| - mvn clean package |
25 |
| -fi |
26 |
| - |
27 |
| -# if you've executed sbt assembly previously it will use that instead. |
28 |
| -export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties" |
29 |
| -ags="$@ generate -t modules/swagger-codegen/src/main/resources/swift3 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l swift3 -c ./bin/swift3-petstore.json -o samples/client/petstore/swift3/default" |
30 |
| - |
31 | 3 | echo "#### Petstore Swift API client (default) ####"
|
32 |
| -java $JAVA_OPTS -jar $executable $ags |
| 4 | +./bin/swift3-petstore.sh |
33 | 5 |
|
34 |
| -ags="$@ generate -t modules/swagger-codegen/src/main/resources/swift3 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l swift3 -c ./bin/swift3-petstore-promisekit.json -o samples/client/petstore/swift3/promisekit" |
35 | 6 | echo "#### Petstore Swift API client (promisekit) ####"
|
36 |
| -java $JAVA_OPTS -jar $executable $ags |
| 7 | +./bin/swift3-petstore-promisekit.sh |
37 | 8 |
|
38 |
| -ags="$@ generate -t modules/swagger-codegen/src/main/resources/swift3 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l swift3 -c ./bin/swift3-petstore-rxswift.json -o samples/client/petstore/swift3/rxswift" |
39 | 9 | echo "#### Petstore Swift API client (rxswift) ####"
|
40 |
| -java $JAVA_OPTS -jar $executable $ags |
| 10 | +./bin/swift3-petstore-rxswift.sh |
41 | 11 |
|
42 |
| -ags="$@ generate -t modules/swagger-codegen/src/main/resources/swift3 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l swift3 -c ./bin/swift3-petstore-unwraprequired.json -o samples/client/petstore/swift3/unwraprequired" |
43 | 12 | echo "#### Petstore Swift API client (unwraprequired) ####"
|
44 |
| -java $JAVA_OPTS -jar $executable $ags |
| 13 | +./bin/swift3-petstore-unwraprequired.sh |
45 | 14 |
|
46 |
| -ags="$@ generate -t modules/swagger-codegen/src/main/resources/swift3 -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l swift3 -c ./bin/swift3-petstore-objcCompatible.json -o samples/client/petstore/swift3/objcCompatible" |
47 | 15 | echo "#### Petstore Swift API client (objcCompatible) ####"
|
48 |
| -java $JAVA_OPTS -jar $executable $ags |
| 16 | +./bin/swift3-petstore-objcCompatible.sh |
0 commit comments