File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
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 -Dlogback.configurationFile=bin/logback.xml"
29
+ ags=" generate -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-composed-schemas.yaml -l kotlin-client --artifact-id kotlin-petstore-client -o samples/composed/client/petstore/kotlin $@ "
30
+
31
+ java ${JAVA_OPTS} -jar ${executable} ${ags}
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
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 -Dlogback.configurationFile=bin/logback.xml"
29
+ ags=" generate -i modules/swagger-codegen/src/test/resources/3_0_0/petstore-with-composed-schemas.yaml -l php -o samples/composed/client/petstore/php $@ "
30
+
31
+ java $JAVA_OPTS -jar $executable $ags
You can’t perform that action at this time.
0 commit comments