File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-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 -DloggerPath=conf/log4j.properties"
29
+ ags=" $@ generate -t modules/swagger-codegen/src/main/resources/JavaJaxRS -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l jaxrs -o samples/server/petstore/jersey2 --library=jersey2"
30
+
31
+ java $JAVA_OPTS -jar $executable $ags
You can’t perform that action at this time.
0 commit comments