forked from asterics/AsTeRICS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimported.xml
More file actions
43 lines (33 loc) · 1.56 KB
/
imported.xml
File metadata and controls
43 lines (33 loc) · 1.56 KB
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
<project name="asterics.imported" basedir=".">
<condition property="license.prefix" value="${component.id}-" else="">
<isset property="component.id" />
</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>