This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new cc3ff05 Add the option for distributions to disable dependency
downloads
cc3ff05 is described below
commit cc3ff051305cd5a70389f8c686d61c689e92ddef
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 858871a..e45fe99 100644
--- a/build.properties.default
+++ b/build.properties.default
@@ -35,6 +35,7 @@ git.branch=8.5.x
# ----- Build control flags -----
# Note enabling validation uses Checkstyle which is LGPL licensed
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 1738091..3486a26 100644
--- a/build.xml
+++ b/build.xml
@@ -3044,7 +3044,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}"/>
@@ -3061,7 +3061,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}"/>
@@ -3086,7 +3086,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}"/>
@@ -3102,7 +3102,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}"/>
@@ -3126,7 +3126,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}"/>
@@ -3141,7 +3141,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]