forked from iterate-ch/cyberduck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runtime.xml
32 lines (27 loc) · 1.32 KB
/
runtime.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="UTF-8"?>
<project name="Java Runtime" basedir=".">
<property name="runtime.dependency" value="${build}/jre1.8.0_152.jre"/>
<property name="bundle.runtime" value="${bundle.plugins}/Runtime.jre"/>
<property name="bundle.runtime.lib"
value="@executable_path/../PlugIns/Runtime.jre/Contents/Home/lib/server/libjvm.dylib"/>
<target name="runtime">
<mkdir dir="${bundle}/${bundle.runtime}"/>
<!-- Copy runtime -->
<echo message="Copy runtime from ${runtime.dependency} to ${bundle}/${bundle.runtime}"/>
<copy todir="${bundle}/${bundle.runtime}" preservelastmodified="true">
<fileset followsymlinks="true" dir="${runtime.dependency}" excludesfile="${home}/runtime-excludes.properties"/>
</copy>
</target>
<target name="shared-library-install-name">
<echo message="Change dynamic shared library install names to ${newname} in ${directory}"/>
<apply executable="/usr/bin/install_name_tool" failonerror="true"
type="file"
parallel="false" spawn="false" force="true">
<arg line="-change ${oldname} ${newname}"/>
<fileset dir="${directory}">
<include name="*.dylib"/>
</fileset>
<srcfile/>
</apply>
</target>
</project>