|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <project basedir="." name="bootstrapFromGithub" default="build"> |
3 | | - <!-- |
| 3 | + <!-- |
4 | 4 | ANT build script to start the build from the lib cache or, if that doesn't exist yet, download the tools from |
5 | 5 | Github first. It is assumed that this is a Nictiz repo. |
6 | 6 | The following parameters need to be present: |
|
31 | 31 | </sequential> |
32 | 32 | </macrodef> |
33 | 33 | <overrideprop name="tool.version.actual" from="${ant.project.name}.tool.version" else="tool.version"/> |
34 | | - |
| 34 | + |
35 | 35 | <!-- Construct the path to the test scripts, either the locally defined dir or a new dir under "lib" --> |
36 | 36 | <property name="testscripttools.repo.dir" location="${lib.dir}/${tool.reponame}/${tool.name}/${tool.version.actual}"/> |
37 | 37 | <condition property="testscripttools.dir" value="${tool.localdir.abs}" else="${testscripttools.repo.dir}"> |
38 | 38 | <length string="${tool.localdir}" trim="true" when="greater" length="0"/> |
39 | 39 | </condition> |
40 | | - |
| 40 | + |
41 | 41 | <!-- Check if we need to download the testscript tools repo from Github, which is needed if we don't have it |
42 | 42 | already and if we didn't specify to use a local copy (we never download anything when using a local copy so we |
43 | 43 | cannot accidentally override it). --> |
|
47 | 47 | <length string="${tool.localdir}" trim="true" when="equal" length="0"/> |
48 | 48 | <not> |
49 | 49 | <available file="${testscripttools.dir}"/> |
50 | | - </not> |
| 50 | + </not> |
51 | 51 | </and> |
52 | 52 | </condition> |
53 | 53 | </target> |
54 | | - |
55 | | - <!-- Download and extract the Nictiz testscript tools from Github if we don't have them already --> |
| 54 | + |
| 55 | + <!-- Download and extract the Nictiz testscript tools from Github if we don't have them already --> |
56 | 56 | <target name="get.toolrepo" depends="checkForRepoDownload" if="download.repo"> |
57 | 57 | <sequential> |
58 | 58 | <echo>Downloading the testscript tools repo from Github</echo> |
|
61 | 61 | <mkdir dir="${testscripttools.dir}/"/> |
62 | 62 | <local name="zip.name"/> |
63 | 63 | <property name="zip.name" value="${testscripttools.dir}/package.zip"/> |
64 | | - <get src="https://github.com/jduwel/${tool.reponame}/archive/${tool.version.actual}.zip" |
| 64 | + <get src="https://github.com/nictiz/${tool.reponame}/archive/${tool.version.actual}.zip" |
65 | 65 | dest="${zip.name}"/> |
66 | 66 | <unzip src="${zip.name}" dest="${testscripttools.dir}" failOnEmptyArchive="true"> |
67 | 67 | <patternset> |
|
78 | 78 | <target name="build" depends="get.toolrepo"> |
79 | 79 | <ant antfile="${testscripttools.dir}/${tool.antfile}" inheritAll="true" inheritRefs="true"/> |
80 | 80 | </target> |
81 | | - |
| 81 | + |
82 | 82 | </project> |
0 commit comments