32 <property name="@DROP@.master.bundle.url" |
32 <property name="@DROP@.master.bundle.url" |
33 value="${@DROP@.master.bundle.url.base}/${@DROP@.bundle.name}"/> |
33 value="${@DROP@.master.bundle.url.base}/${@DROP@.bundle.name}"/> |
34 |
34 |
35 <!-- Location where the copied bundle lands. --> |
35 <!-- Location where the copied bundle lands. --> |
36 <property name="@DROP@.bundle.copy" |
36 <property name="@DROP@.bundle.copy" |
37 value="${drop.dir}/bundles/${@DROP@.bundle.name}"/> |
37 value="${drop.expanded.dir}/bundles/${@DROP@.bundle.name}"/> |
38 |
38 |
39 <!-- Root of exploded area. --> |
39 <!-- Root of exploded area. --> |
40 <property name="@DROP@.root.dir" value="${drop.dir}/@DROP@"/> |
40 <property name="@DROP@.root.dir" value="${drop.dir}/@DROP@"/> |
41 <property name="@DROP@.src.dir" value="${@DROP@.root.dir}/src"/> |
41 <property name="@DROP@.src.dir" value="${@DROP@.root.dir}/src"/> |
42 |
42 |
43 <!-- To see if the drop areas are ready. (ignoring bundles) --> |
43 <!-- To see if the drop areas are ready. (ignoring bundles) --> |
44 <target name="-@DROP@-ready"> |
44 <target name="-@DROP@-ready"> |
45 <condition property="@DROP@.ready"> |
45 <condition property="@DROP@.ready"> |
46 <and> |
46 <or> |
47 <available file="${@DROP@.root.dir}" type="dir"/> |
47 <available file="${drop.included.dir}" type="dir"/> |
48 <available file="${@DROP@.root.dir}/PATCHED" type="file"/> |
48 <and> |
49 </and> |
49 <available file="${@DROP@.root.dir}" type="dir"/> |
|
50 <available file="${@DROP@.root.dir}/PATCHED" type="file"/> |
|
51 </and> |
|
52 </or> |
50 </condition> |
53 </condition> |
51 </target> |
54 </target> |
52 |
55 |
53 <!-- Copy over bundles from some shared master area. --> |
56 <!-- Copy over bundles from some shared master area. --> |
54 <condition property="@DROP@.master.bundle.copy.exists"> |
57 <condition property="@DROP@.master.bundle.copy.exists"> |
70 |
73 |
71 <!-- Determine if the master url download should be used. --> |
74 <!-- Determine if the master url download should be used. --> |
72 <target name="-@DROP@-url-should-be-used" unless="@DROP@.url.should.be.used"> |
75 <target name="-@DROP@-url-should-be-used" unless="@DROP@.url.should.be.used"> |
73 <condition property="@DROP@.url.should.be.used"> |
76 <condition property="@DROP@.url.should.be.used"> |
74 <and> |
77 <and> |
75 <http url="${@DROP@.master.bundle.url.base}"/> |
|
76 <not> |
78 <not> |
77 <isset property="@DROP@.master.bundle.copy.exists"/> |
79 <isset property="@DROP@.master.bundle.copy.exists"/> |
78 </not> |
80 </not> |
79 </and> |
81 </and> |
80 </condition> |
82 </condition> |
104 if="@DROP@.master.bundle.found" |
106 if="@DROP@.master.bundle.found" |
105 unless="@DROP@.ready"> |
107 unless="@DROP@.ready"> |
106 <delete dir="${@DROP@.root.dir}"/> |
108 <delete dir="${@DROP@.root.dir}"/> |
107 <delete dir="${@DROP@.root.dir}-temp"/> |
109 <delete dir="${@DROP@.root.dir}-temp"/> |
108 <mkdir dir="${@DROP@.root.dir}-temp"/> |
110 <mkdir dir="${@DROP@.root.dir}-temp"/> |
|
111 <checksum file="${@DROP@.bundle.copy}" |
|
112 property="@DROP@.bundle.md5.checksum.is"/> |
|
113 <condition property="@DROP@.bundle.md5.checksum.good"> |
|
114 <equals arg1="${@DROP@.bundle.md5.checksum}" |
|
115 arg2="${@DROP@.bundle.md5.checksum.is}"/> |
|
116 </condition> |
|
117 <fail unless="@DROP@.bundle.md5.checksum.good"> |
|
118 Checksum on file ${@DROP@.bundle.copy} is |
|
119 ${@DROP@.bundle.md5.checksum.is}, not ${@DROP@.bundle.md5.checksum} |
|
120 </fail> |
109 <unzip src="${@DROP@.bundle.copy}" dest="${@DROP@.root.dir}-temp"/> |
121 <unzip src="${@DROP@.bundle.copy}" dest="${@DROP@.root.dir}-temp"/> |
110 <move file="${@DROP@.root.dir}-temp" tofile="${@DROP@.root.dir}"/> |
122 <move file="${@DROP@.root.dir}-temp" tofile="${@DROP@.root.dir}"/> |
111 <touch> |
123 <touch> |
112 <fileset dir="${@DROP@.root.dir}"/> |
124 <fileset dir="${@DROP@.root.dir}"/> |
113 </touch> |
125 </touch> |