This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new f92fe57 Add the option for distributions to disable dependency
downloads
f92fe57 is described below
commit f92fe57ce89368597b0e4732d95a2b4d26075ad9
Author: remm <[email protected]>
AuthorDate: Fri Mar 5 10:29:18 2021 +0100
Add the option for distributions to disable dependency downloads
The dependencies will still be checked but no download will actually
occur. This allows a distribution to provide its own built binaries
while making sure no other ones are included.
---
build.properties.default | 1 +
build.xml | 12 ++++++------
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/build.properties.default b/build.properties.default
index 91f0ba3..a0355eb 100644
--- a/build.properties.default
+++ b/build.properties.default
@@ -36,6 +36,7 @@ git.branch=master
# Note enabling validation uses Checkstyle which is LGPL licensed
ant.version.required=1.9.8
execute.validate=false
+execute.download=true
execute.test.nio=true
execute.test.nio2=true
# Still requires APR/native library to be present
diff --git a/build.xml b/build.xml
index 57bda80..2593c4c 100644
--- a/build.xml
+++ b/build.xml
@@ -3379,7 +3379,7 @@ skip.installer property in build.properties" />
</sequential>
</macrodef>
- <target name="downloadgz" unless="exist" depends="testexist,setproxy">
+ <target name="downloadgz" unless="exist" if="${execute.download}"
depends="testexist,setproxy">
<!-- Download and extract the package -->
<local name="temp.file"/>
<mkdir dir="${base.path}"/>
@@ -3396,7 +3396,7 @@ skip.installer property in build.properties" />
<delete file="${temp.file}.tar.gz"/>
</target>
- <target name="downloadgz-2" unless="exist" depends="testexist">
+ <target name="downloadgz-2" unless="exist" if="${execute.download}"
depends="testexist">
<!-- Download and extract the package from the two alternative locations
-->
<local name="temp.file"/>
<mkdir dir="${base.path}"/>
@@ -3421,7 +3421,7 @@ skip.installer property in build.properties" />
<delete file="${temp.file}.tar.gz"/>
</target>
- <target name="downloadzip" unless="exist" depends="testexist,setproxy">
+ <target name="downloadzip" unless="exist" if="${execute.download}"
depends="testexist,setproxy">
<!-- Download and extract the package -->
<local name="temp.file"/>
<mkdir dir="${base.path}"/>
@@ -3437,7 +3437,7 @@ skip.installer property in build.properties" />
<delete file="${temp.file}"/>
</target>
- <target name="downloadzip-2" unless="exist" depends="testexist">
+ <target name="downloadzip-2" unless="exist" if="${execute.download}"
depends="testexist">
<!-- Download and extract the package from the two alternative locations
-->
<local name="temp.file"/>
<mkdir dir="${base.path}"/>
@@ -3461,7 +3461,7 @@ skip.installer property in build.properties" />
<delete file="${temp.file}"/>
</target>
- <target name="downloadfile" unless="exist" depends="testexist,setproxy">
+ <target name="downloadfile" unless="exist" if="${execute.download}"
depends="testexist,setproxy">
<!-- Download the file -->
<local name="temp.file"/>
<mkdir dir="${base.path}"/>
@@ -3476,7 +3476,7 @@ skip.installer property in build.properties" />
<move file="${temp.file}" tofile="${destfile}"/>
</target>
- <target name="downloadfile-2" unless="exist" depends="testexist">
+ <target name="downloadfile-2" unless="exist" if="${execute.download}"
depends="testexist">
<!-- Download the file from the two alternative locations -->
<local name="temp.file"/>
<mkdir dir="${base.path}"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]