forked from SORMAS-Foundation/SORMAS-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
29 lines (23 loc) · 1.07 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0"?>
<!DOCTYPE project>
<project name="sormas-rest" basedir="." default="3-collect" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<import file="../sormas-base/build-artifact.xml" />
<property name="maven.artifactId" value="sormas-rest" />
<property name="file.suffix" value="war" />
<target name="3-collect" description="Kopiert das Artefakt nach deploy/apps.">
<property name="copy.path" value="../deploy/apps" />
<antcall inheritAll="true" target="--copy-artifact" />
<antcall inheritall="true" target="--copy-openapi-spec" />
</target>
<target name="--copy-openapi-spec" description="Copies the OpenAPI/Swagger specification for the SORMAS REST API to deploy/openapi.">
<copy todir="../deploy/openapi" preservelastmodified="true" verbose="true">
<fileset dir="./target">
<include name="swagger.json" />
<include name="swagger.yaml" />
<include name="external_visits_API.json" />
<include name="external_visits_API.yaml" />
</fileset>
<mapper type="glob" from="swagger.*" to="sormas-rest.*" />
</copy>
</target>
</project>