forked from loafle/openapi-generator-original
added jar target
This commit is contained in:
parent
5c39d5e8c5
commit
b5a826fe5e
@ -36,6 +36,12 @@
|
|||||||
<!-- this is the output module -->
|
<!-- this is the output module -->
|
||||||
<property name="module" value="${ant.project.name}" />
|
<property name="module" value="${ant.project.name}" />
|
||||||
|
|
||||||
|
<target name="jar" description="creates jar file " depends="build.all">
|
||||||
|
<jar jarfile="build/${release.module}-${release.version}.${artifact.ext}">
|
||||||
|
<fileset dir="build/main/java" />
|
||||||
|
</jar>
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="build.all" depends="clean, resolve, fastcompile" description="builds the module (default target)" />
|
<target name="build.all" depends="clean, resolve, fastcompile" description="builds the module (default target)" />
|
||||||
|
|
||||||
<target name="clean" description="cleans the project folder">
|
<target name="clean" description="cleans the project folder">
|
||||||
@ -62,15 +68,6 @@
|
|||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- copies ONLY the swagger-sample jar to dist-->
|
|
||||||
<target name="fastdist" depends="fastcompile">
|
|
||||||
<copy todir="dist/lib">
|
|
||||||
<fileset dir="build">
|
|
||||||
<include name="*.jar" />
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- copies all dependencies into the lib folder -->
|
<!-- copies all dependencies into the lib folder -->
|
||||||
<target name="resolve" description="retreive dependencies with ivy">
|
<target name="resolve" description="retreive dependencies with ivy">
|
||||||
<ivy:retrieve pattern="${basedir}/lib/[artifact]-[revision].[ext]" conf="build" />
|
<ivy:retrieve pattern="${basedir}/lib/[artifact]-[revision].[ext]" conf="build" />
|
||||||
@ -94,7 +91,6 @@
|
|||||||
</classpath>
|
</classpath>
|
||||||
</javac>
|
</javac>
|
||||||
|
|
||||||
|
|
||||||
<scalac srcdir="src/main/java:src/main/scala" destdir="build/main/java">
|
<scalac srcdir="src/main/java:src/main/scala" destdir="build/main/java">
|
||||||
<classpath>
|
<classpath>
|
||||||
<pathelement location="build/main/java" />
|
<pathelement location="build/main/java" />
|
||||||
@ -115,14 +111,7 @@
|
|||||||
</jar>
|
</jar>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- cleans up the dist -->
|
|
||||||
<target name="dist.clean" description="cleans the distribution folder">
|
|
||||||
<delete quiet="true" dir="dist" />
|
|
||||||
<delete quiet="true" file="dist.zip" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="dependency.tree" description="builds a graphml dependency diagram for viewing with yEd">
|
<target name="dependency.tree" description="builds a graphml dependency diagram for viewing with yEd">
|
||||||
<ivy:report conf="build" graph="true" todir="." outputpattern="[artifact]-[revision].[ext]" />
|
<ivy:report conf="build" graph="true" todir="." outputpattern="[artifact]-[revision].[ext]" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user