Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

573 create servicedefinition jar if necessary #576

Merged
merged 2 commits into from
Nov 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>