Skip to content

Commit

Permalink
build.xml: moved project's artifacts name and title to property
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasgeissler committed May 3, 2024
1 parent 6879614 commit 1357ed6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
30 changes: 15 additions & 15 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,44 +163,44 @@
<target name="jar" depends="jar.runtime, jar.console" />

<target name="jar.runtime" depends="src.compile">
<jar jarfile="build/exedio-cope-patch.jar" filesonly="true" duplicate="fail" strict="fail" level="9">
<jar jarfile="build/${artifacts.name}.jar" filesonly="true" duplicate="fail" strict="fail" level="9">
<fileset dir="build/classes/src" />
<manifest>
<attribute name="Specification-Title" value="exedio cope patch" />
<attribute name="Specification-Title" value="${artifacts.title}" />
<attribute name="Specification-Version" value="${build.tag}" />
<attribute name="Specification-Vendor" value="exedio GmbH" />
<attribute name="Implementation-Title" value="exedio cope patch" />
<attribute name="Implementation-Title" value="${artifacts.title}" />
<attribute name="Implementation-Version" value="${build.tag}" />
<attribute name="Implementation-Vendor" value="exedio GmbH" />
</manifest>
</jar>
<plot file="build/exedio-cope-patch.jar" />
<plot file="build/${artifacts.name}.jar" />
</target>

<target name="jar.console" depends="consolesrc.compile">
<jar jarfile="build/exedio-cope-patch-console.jar" filesonly="true" duplicate="fail" strict="fail" level="9">
<jar jarfile="build/${artifacts.name}-console.jar" filesonly="true" duplicate="fail" strict="fail" level="9">
<fileset dir="build/classes/consolesrc" />
<manifest>
<attribute name="Specification-Title" value="exedio cope patch console" />
<attribute name="Specification-Title" value="${artifacts.title} console" />
<attribute name="Specification-Version" value="${build.tag}" />
<attribute name="Specification-Vendor" value="exedio GmbH" />
<attribute name="Implementation-Title" value="exedio cope patch console" />
<attribute name="Implementation-Title" value="${artifacts.title} console" />
<attribute name="Implementation-Version" value="${build.tag}" />
<attribute name="Implementation-Vendor" value="exedio GmbH" />
</manifest>
</jar>
<plot file="build/exedio-cope-patch-console.jar" />
<plot file="build/${artifacts.name}-console.jar" />
</target>

<target name="jar.src">
<mkdir dir="build" />
<zip destfile="build/exedio-cope-patch-src.zip" filesonly="true" whenempty="fail" duplicate="fail" level="9">
<zip destfile="build/${artifacts.name}-src.zip" filesonly="true" whenempty="fail" duplicate="fail" level="9">
<zipfileset dir="${basedir}/src"><include name="**/*.java"/><exclude name="**/*_Jspm.java" /></zipfileset>
<zipfileset dir="${basedir}/consolesrc">
<include name="**/*.java" />
</zipfileset>
</zip>
<plot file="build/exedio-cope-patch-src.zip" />
<plot file="build/${artifacts.name}-src.zip" />
</target>

<target name="web" depends="examplesrc.compile">
Expand Down Expand Up @@ -279,7 +279,7 @@
<target name="compile" depends="src.compile, consolesrc.compile, testsrc.compile, examplesrc.compile" />

<target name="api">
<api title="cope patch">
<api title="${artifacts.title}">
<src>
<fileset dir="src" includes="**/*.java" />
</src>
Expand All @@ -301,10 +301,10 @@

<target name="jenkins" depends="all">
<copy todir="${basedir}/build/success">
<fileset file="${basedir}/build/exedio-cope-patch.jar" />
<fileset file="${basedir}/build/exedio-cope-patch-console.jar" />
<fileset file="${basedir}/build/exedio-cope-patch-src.zip" />
<fileset file="${basedir}/exedio-cope-patch-log.txt" />
<fileset file="${basedir}/build/${artifacts.name}.jar" />
<fileset file="${basedir}/build/${artifacts.name}-console.jar" />
<fileset file="${basedir}/build/${artifacts.name}-src.zip" />
<fileset file="${basedir}/${artifacts.name}-log.txt" />
</copy>
<copy file="ivy/ivy.xml" todir="build/success" overwrite="true">
<filterset>
Expand Down
6 changes: 6 additions & 0 deletions project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ instrument.verify=false
# See https://junit.org/junit5/docs/current/user-guide/#running-tests-console-launcher-options
#
test-details=summary

# Name and title of the artifacts created in the build process of this project.
# See build.xml for their usage.
#
artifacts.name=exedio-cope-patch
artifacts.title=exedio cope patch

0 comments on commit 1357ed6

Please sign in to comment.