-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathimported.xml
56 lines (46 loc) · 2.29 KB
/
imported.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<project name="asterics.imported" basedir=".">
<condition property="license.prefix" value="${component.id}-" else="">
<isset property="component.id" />
</condition>
<!--
Define os.name for Bundle-NativeCode statement in MANIFEST of plugins:
As on Windows the alias os.name (win32) is not correctly matched, we have to manually define the property
so that the native bundles start on windows 10.
@see https://github.com/asterics/AsTeRICS/issues/17
Note: Maybe we should also set the alias for Linux and Mac manually, because here we hardcode the
runtime os.name at build time. So the os.names could actually differ, although according to the list of os.names
(https://www.osgi.org/developer/specifications/reference/)
for Linux there is only 1 name and for Mac OSX also.
-->
<condition property="org.osgi.framework.os.name" value="win32" else="${os.name}">
<os family="windows" />
</condition>
<!-- <property name="license.prefix" value="${component.id}-"/>-->
<property name="javac.source" value="1.7"/>
<property name="javac.target" value="1.7"/>
<!-- just to be sure also set the default values to the above ones -->
<property name="ant.build.javac.source" value="${javac.source}"/>
<property name="ant.build.javac.target" value="${javac.target}"/>
<property name="source.license" value="D:\AsTeRICS\AsTeRICS_Licensing_Packaging_Asterics_2_8_Prep\ARE-LICENSE_MITOrGPLv3WithException.txt"/>
<target name="copyLicenses" >
<mkdir dir="${runtime}/LICENSE"/>
<copy todir="${runtime}/LICENSE" failonerror="false">
<fileset dir="LICENSE" includes="**/*.txt"/>
<globmapper from="*" to="${license.prefix}*"/>
</copy>
</target>
<!-- check existence of license file -->
<target name="checkLicenseFile">
<available file="LICENSE/LICENSE_dual.txt" property="license.exists"></available>
</target>
<!-- Replace license file with new one, if a target file already exists -->
<target name="findAndReplaceLicenseFile" depends="checkLicenseFile" if="${license.exists}">
<copy file="${source.license}" tofile="LICENSE/LICENSE_dual.txt" verbose="true">
</copy>
</target>
<!-- Rename license file -->
<target name="renameLicenseFile">
<move file="LICENSE/LICENSE_dual.txt" tofile="LICENSE/LICENSE_MITOrGPLv3WithException.txt" verbose="true">
</move>
</target>
</project>