Tests: download and unzip nunit into a temporary local path instead of 
something that only windows can


Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/1b3e6373
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/1b3e6373
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/1b3e6373

Branch: refs/heads/feature/cd-pipeline
Commit: 1b3e6373706f84c64cf98f2ee1fbda701316f3f2
Parents: 80314ac
Author: Dominik Psenner <[email protected]>
Authored: Wed Jul 5 17:30:59 2017 +0200
Committer: Dominik Psenner <[email protected]>
Committed: Wed Jul 5 17:30:59 2017 +0200

----------------------------------------------------------------------
 tests/nant.build | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/1b3e6373/tests/nant.build
----------------------------------------------------------------------
diff --git a/tests/nant.build b/tests/nant.build
index 8300c51..a3662b4 100644
--- a/tests/nant.build
+++ b/tests/nant.build
@@ -27,11 +27,13 @@ limitations under the License.
     <target name="install-nunit">
       <if test="${not 
file::exists('lib/${current.build.configuration.dir}/nunit.framework.dll')}">
        <get 
src="https://github.com/nunit/nunitv2/releases/download/2.6.4/NUnit-2.6.4.zip";
-            dest="${environment::get-folder-path('InternetCache')}/nunit.zip"/>
-       <unzip 
zipfile="${environment::get-folder-path('InternetCache')}/nunit.zip"
-              
todir="${environment::get-folder-path('InternetCache')}/nunit.tmp"/>
-       <copy 
file="${environment::get-folder-path('InternetCache')}/nunit.tmp/NUnit-2.6.4/bin/nunit.framework.dll"
+            dest=".tmp-nunit.zip"/>
+       <unzip zipfile=".tmp-nunit.zip"
+              todir=".tmp-nunit"/>
+       <copy file=".tmp-nunit/NUnit-2.6.4/bin/nunit.framework.dll"
              todir="lib/${current.build.configuration.dir}"/>
+       <delete file=".tmp-nunit.zip"/>
+       <delete dir=".tmp-nunit"/>
       </if>
     </target>
 

Reply via email to