Install nunit into the current.bin.dir

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

Branch: refs/heads/feature/RollingFileAppender-NG
Commit: 51c3269c3de87e58c20240b57f8131deb14234f3
Parents: 4a1404b
Author: Dominik Psenner <[email protected]>
Authored: Tue Jul 4 16:46:15 2017 +0200
Committer: Dominik Psenner <[email protected]>
Committed: Tue Jul 4 16:46:15 2017 +0200

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


http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/51c3269c/tests/nant.build
----------------------------------------------------------------------
diff --git a/tests/nant.build b/tests/nant.build
index 6c306e8..da178a5 100644
--- a/tests/nant.build
+++ b/tests/nant.build
@@ -25,13 +25,13 @@ limitations under the License.
     <call target="set-build-configuration" />
 
     <target name="install-nunit">
-      <if test="${not file::exists('lib/' + 
framework::get-family(framework::get-target-framework()) + '/' + 
version::to-string(framework::get-version(framework::get-target-framework())) + 
'/nunit.framework.dll')}">
+      <if test="${not 
file::exists('lib/${current.bin.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"
-             
todir="lib/${framework::get-family(framework::get-target-framework())}/${version::to-string(framework::get-version(framework::get-target-framework()))}"/>
+             todir="lib/${current.bin.dir}"/>
       </if>
     </target>
 

Reply via email to