-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
45 lines (39 loc) · 1.69 KB
/
build.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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="ant-processenabler" default="default">
<!-- skip svn and don't add any extensions -->
<property name="main.import.library.svn" value="false" />
<property name="main.addExtensionsByDefault" value="false" />
<!-- get the process enabler current version -->
<import file="resources\ant\library_main.xml" />
<target name="default" depends="updateAssembly,cleanUp" />
<macrodef name="resourceMapper">
<attribute name="resourceFolder" />
<attribute name="resourceFileName" />
<attribute name="resource" />
<attribute name="resourceType" />
<sequential>
<if>
<!-- Make sure the ant lib is named like that, i.e. without version.
This is important because the ant.bat is looking for the file. -->
<and>
<equals arg1="@{resourceType}" arg2="${build.resource.dependency}" />
<matches pattern=".*org[\\/]apache[\\/]ant[\\/].*[\\/]ant-(\d+\.)*\d+" string="@{resource}"/>
</and>
<then>
<var name="resMapper.rename" value="ant.jar" />
</then>
<!-- Make sure the ant-launcher lib is named like that, i.e. without version.
This is important because the ant.bat is looking for the file. -->
<elseif>
<and>
<equals arg1="@{resourceType}" arg2="${build.resource.dependency}" />
<matches pattern=".*org[\\/]apache[\\/]ant[\\/].*[\\/]ant-launcher-(\d+\.)*\d+" string="@{resource}"/>
</and>
<then>
<var name="resMapper.rename" value="ant-launcher.jar" />
</then>
</elseif>
</if>
</sequential>
</macrodef>
</project>