This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
import-target-template.xml
59 lines (46 loc) · 1.94 KB
/
import-target-template.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
57
58
59
<?xml version="1.0" encoding="UTF-8"?>
<!--
Template ant script, replace @NAME@ with name of item to import.
Properties expected to be defined:
import.dir
bundle.dir
Targets defined:
-get-init-@NAME@
-get-bundle-@NAME@
-get-unbundle-@NAME@-zip
-get-unbundle-@NAME@-targz
import-@NAME@
Properties defined:
import.@[email protected]
import.@[email protected]
import.@[email protected]
-->
<project name="import-@NAME@" default="import-@NAME@" basedir=".">
<target name="-get-init-@NAME@">
<condition property="import.@[email protected]">
<available file="${bundle.dir}/${@[email protected]}" type="file"/>
</condition>
<condition property="import.@[email protected]">
<available file="${@[email protected]}" type="file"/>
</condition>
</target>
<target name="-get-bundle-@NAME@" depends="-get-init-@NAME@" unless="import.@[email protected]">
<get-bundle name="@NAME@" url="${@[email protected]}" bundle="${@[email protected]}"/>
<file-check file="${bundle.dir}/${@[email protected]}"/>
</target>
<target name="-get-unbundle-@NAME@-zip" depends="-get-bundle-@NAME@" unless="import.@[email protected]">
<unbundle-zip src="${bundle.dir}/${@[email protected]}" dest="${import.dir}/@NAME@"/>
<file-check file="${@[email protected]}"/>
</target>
<target name="-get-unbundle-@NAME@-targz" depends="-get-bundle-@NAME@" unless="import.@[email protected]">
<unbundle-targz src="${bundle.dir}/${@[email protected]}" dest="${import.dir}/@NAME@"/>
<file-check file="${@[email protected]}"/>
</target>
<target name="import-@NAME@" depends="-get-bundle-@NAME@" unless="import.@[email protected]">
<antcall target="-get-unbundle-@NAME@-${@[email protected]}"/>
<file-check file="${@[email protected]}"/>
</target>
</project>