Skip to content

Commit d244cf6

Browse files
authored
Merge pull request #2201 from adamretter/hotfix/xar-downloads-required-5.0.0
(5.0.0) If downloading XARs fails, the build should fail
2 parents df1c7c0 + df359bd commit d244cf6

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

build/scripts/installer.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,16 @@
8989
</target>
9090

9191
<target name="download-xar">
92+
<!-- get dest="${apps.dir}" src="${apps.repo}/find?abbrev=${xar}&amp;processor=${project.version}"
93+
verbose="on" maxtime="180" usetimestamp="true" tryGzipEncoding="true"/ -->
9294

9395
<taskdef name="fetch" classname="nl.ow.dilemma.ant.fetch.FetchTask">
9496
<classpath>
9597
<pathelement location="${asocat-exist.jar}"/>
9698
</classpath>
9799
</taskdef>
98-
<fetch dest="${apps.dir}" url="${apps.repo}/pkg.zip?abbrev=${xar}&amp;zip=yes&amp;processor=${project.version}"
99-
failonerror="false" maxtime="360">
100+
<fetch dest="${apps.dir}" url="${apps.repo}/find?abbrev=${xar}&amp;processor=${project.version}&amp;zip=yes"
101+
failonerror="true" maxtime="180">
100102
<patternset>
101103
<include name="**/*.xar"/>
102104
</patternset>

build/scripts/setup.xml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
<property file="build.properties"/>
2323

24-
<property name="autodeploy.repo" value="http://demo.exist-db.org/exist/apps/public-repo"/>
2524
<property name="autostart-dir" value="autodeploy"/>
2625

2726
<target name="prepare">
@@ -64,17 +63,20 @@
6463
</target>
6564

6665
<target name="download-xar" unless="xar-installed">
66+
<!-- get dest="${autostart-dir}" src="${autodeploy.repo}/find?abbrev=${xar}&amp;processor=${project.version}"
67+
verbose="on" maxtime="180" usetimestamp="true" tryGzipEncoding="true"/ -->
6768

6869
<taskdef name="fetch" classname="nl.ow.dilemma.ant.fetch.FetchTask">
69-
<classpath>
70-
<pathelement location="${asocat-exist.jar}"/>
71-
</classpath>
70+
<classpath>
71+
<pathelement location="${asocat-exist.jar}"/>
72+
</classpath>
7273
</taskdef>
73-
<fetch dest="${autostart-dir}" url="${autodeploy.repo}/pkg.zip?abbrev=${xar}&amp;zip=yes&amp;processor=${project.version}"
74-
failonerror="false" maxtime="120">
75-
<patternset>
76-
<include name="**/*.xar"/>
77-
</patternset>
74+
<fetch dest="${autostart-dir}" url="${autodeploy.repo}/find?abbrev=${xar}&amp;processor=${project.version}&amp;zip=yes"
75+
failonerror="true" maxtime="180">
76+
<patternset>
77+
<include name="**/*.xar"/>
78+
</patternset>
7879
</fetch>
7980
</target>
81+
8082
</project>

0 commit comments

Comments
 (0)