You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2019/07/03 20:20:46 UTC

[freemarker] branch 2.3-gae updated: Build: Worked around issue where calling multiple tasks, like `ant jar ide-dependencies` can corrupt the /.ivy directory if that was created by the first task.

This is an automated email from the ASF dual-hosted git repository.

ddekany pushed a commit to branch 2.3-gae
in repository https://gitbox.apache.org/repos/asf/freemarker.git


The following commit(s) were added to refs/heads/2.3-gae by this push:
     new 04e7eac  Build: Worked around issue where calling multiple tasks, like `ant jar ide-dependencies` can corrupt the <project>/.ivy directory if that was created by the first task.
04e7eac is described below

commit 04e7eac465faff1e79ad0e399612aca21d85202d
Author: ddekany <dd...@apache.org>
AuthorDate: Wed Jul 3 22:20:37 2019 +0200

    Build: Worked around issue where calling multiple tasks, like `ant jar ide-dependencies` can corrupt the <project>/.ivy directory if that was created by the first task.
---
 build.xml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/build.xml b/build.xml
index a5ddf57..b6a34ae 100644
--- a/build.xml
+++ b/build.xml
@@ -990,6 +990,15 @@ Proceed? </input>
   <!-- ================================================================== -->
   
   <target name="_autoget-deps" unless="deps.available">
+    <antcall target="_autoget-deps-condition-workaround" />
+  </target>
+
+  <!--
+    Called with antcall to ensure that deps.available will be up-to-date.
+    Without this trick, if ant is called with multiple tasks, the local .ivy
+    directory might ends up corrupted if it was created by the 1st task.
+  -->
+  <target name="_autoget-deps-condition-workaround" unless="deps.available">
     <antcall target="update-deps" />
   </target>