Skip to content

Commit

Permalink
573 create servicedefinition jar if necessary (#576)
Browse files Browse the repository at this point in the history
* create-servicedefinition-jar-if-missing
  • Loading branch information
LukasFey-GIP authored Nov 10, 2023
1 parent f65bf23 commit 79eee56
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion installation/build/buildService.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
target: build-src
================================= -->
<!-- CAUTION: Do not attempt to launch this from here. Launch from build.xml instead. -->
<target name="build-src" depends="cleanup, resolve, prepareLibs, genExceptionClass, genCliClass">
<target name="build-src" depends="cleanup, create-servicedefinition-jar-if-missing, resolve, prepareLibs, genExceptionClass, genCliClass">
<mkdir dir="${basedir}/classes" />
<javaCompile>
<classpath path="${basedir}/classes" />
Expand Down Expand Up @@ -339,4 +339,26 @@
</java>
</target>

<!-- =================================
target: create-servicedefinition-jar-if-missing
================================= -->
<target name="create-servicedefinition-jar-if-missing" description="Create servicedefinition.jar locally, if there is no servicedefinition.jar present">
<condition property="servicedefinitionJarExists" value="true" else="false">
<resourcecount when="greater" count="0">
<fileset dir="${basedir}">
<include name="**/serviceDefinition.jar" />
</fileset>
</resourcecount>
</condition>
<if>
<equals arg1="${servicedefinitionJarExists}" arg2="false" />
<then>
<antcall target="create-servicedefinition-jar" />
</then>
<else>
<echo message="servicedefinition jar exists already." />
</else>
</if>
</target>

</project>

0 comments on commit 79eee56

Please sign in to comment.