[jaxrs-cfx][server] delete output dir before building sample files (#452)

bin/jaxrs-cxf-petstore-server.sh:

* delete output dir before building sample
* add comment before deleting files
This commit is contained in:
John Wang 2018-07-04 20:45:03 -07:00 committed by Jérémie Bresson
parent 2577e48feb
commit 00354d3264
3 changed files with 5 additions and 2 deletions

View File

@ -25,6 +25,9 @@ then
mvn -B clean package
fi
echo "Removing files and folders under samples/server/petstore/jaxrs-cxf"
rm -rf samples/server/petstore/jaxrs-cxf
# 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/JavaJaxRS/cxf -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-cxf -o samples/server/petstore/jaxrs-cxf -DhideGenerationTimestamp=true --additional-properties serverPort=8082 $@"

View File

@ -112,7 +112,7 @@ public class PetApiServiceImpl implements PetApi {
}
/**
* uploads an image
* uploads an image (required)
*
*/
public ModelApiResponse uploadFileWithRequiredFile(Long petId, Attachment fileDetail, String additionalMetadata) {

View File

@ -213,7 +213,7 @@ public class PetApiTest {
}
/**
* uploads an image
* uploads an image (required)
*
* @throws ApiException
* if the Api call fails