This is an automated email from the ASF dual-hosted git repository.
damjan pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new e2eb708dd6 When junit is absent, download only junit, and when
hamcrest is absent, download only hamcrest.
e2eb708dd6 is described below
commit e2eb708dd61134c3ad4e7e55318ac802bf809846
Author: Damjan Jovanovic <[email protected]>
AuthorDate: Sun Jan 15 18:22:35 2023 +0200
When junit is absent, download only junit, and when hamcrest is absent,
download only hamcrest.
Patch by: me
---
test/build.xml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/test/build.xml b/test/build.xml
index ece910b287..9f73172286 100644
--- a/test/build.xml
+++ b/test/build.xml
@@ -62,12 +62,16 @@
<available file="lib/hamcrest.jar"
property="hamcrest.jar.exists"/>
</target>
- <target name="prepare.junit" depends="check.junit"
unless="junit.jar.exists">
+ <target name="prepare.junit" depends="check.junit, prepare.hamcrest"
unless="junit.jar.exists">
<mkdir dir="lib" />
<get src="${junit.jar.repos}" dest="lib/junit.jar"
skipexisting="true" />
+ </target>
+
+ <target name="prepare.hamcrest" depends="check.hamcrest"
unless="hamcrest.jar.exists">
+ <mkdir dir="lib" />
<get src="${hamcrest.jar.repos}" dest="lib/hamcrest.jar"
skipexisting="true" />
</target>
-
+
<target name="testcommon.init">
<mkdir dir="testcommon/bin" />
<copy includeemptydirs="false" todir="testcommon/bin">