Skip to content

Commit

Permalink
Increase MDA flexibility
Browse files Browse the repository at this point in the history
Allow setting of a JNI library path, and adding an extra directory of JAR files on a per-target basis.
  • Loading branch information
iay committed Jul 24, 2018
1 parent 9945332 commit a6326cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1470,6 +1470,8 @@
<sequential>
<java classname="net.shibboleth.metadata.cli.SimpleCommandLine"
fork="true" failonerror="true" maxmemory="${java.max.memory}">
<sysproperty key="java.library.path" path="${mda.jni.path}"
if:set="mda.jni.path"/>
<classpath>
<!-- Spring "classpath:" imports can be under the MDX directory -->
<pathelement path="${mdx.dir}"/>
Expand All @@ -1487,6 +1489,12 @@
<fileset dir="${tools.dir}/inc-mda">
<include name="*.jar"/>
</fileset>

<!-- Include a per-target directory if set. -->
<fileset dir="${tools.dir}">
<include name="${mda.classpath.extra}/*.jar"
if="mda.classpath.extra"/>
</fileset>
</classpath>
<syspropertyset>
<propertyset refid="mda.properties"/>
Expand Down

0 comments on commit a6326cf

Please sign in to comment.