Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 67712200CBE for ; Fri, 7 Jul 2017 16:03:48 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 65DCB169240; Fri, 7 Jul 2017 14:03:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 857B216923E for ; Fri, 7 Jul 2017 16:03:47 +0200 (CEST) Received: (qmail 40937 invoked by uid 500); 7 Jul 2017 14:03:42 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 40923 invoked by uid 99); 7 Jul 2017 14:03:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2017 14:03:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 23EE81A024C for ; Fri, 7 Jul 2017 14:03:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.211 X-Spam-Level: X-Spam-Status: No, score=-2.211 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIM_INVALID=0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=pvsw.onmicrosoft.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id liRIVHGPlcnx for ; Fri, 7 Jul 2017 14:03:38 +0000 (UTC) Received: from eu-smtp-delivery-106.mimecast.com (eu-smtp-delivery-106.mimecast.com [207.82.80.106]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id C72285FE54 for ; Fri, 7 Jul 2017 14:03:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pvsw.onmicrosoft.com; s=selector1-actian-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=01yXk9zieTUvFOpMM50Tr7E2Lg7r0h4frRg4feYD6zM=; b=YcylzzR2kZFNvirAH0VD9VzLBAhJEmMxRRIHH1RA6EUnV6t/JBkHxl3+HCJi0Y4JFDjV2A6Cpb3MqWM2vHssrZL5DP6NDS2Aoy7kAaqyGrHcDTlt3ximDd9AKXDVWASxvaU8l/wl75ZhTsjcOD3ehbU3skIweVgzgJfoXvHe22o= Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03lp0020.outbound.protection.outlook.com [216.32.181.20]) (Using TLS) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-80-9TsS4-ndOSGWRqdOsqj3Dg-1; Fri, 07 Jul 2017 15:03:36 +0100 Received: from MWHPR06MB3310.namprd06.prod.outlook.com (10.174.251.30) by MWHPR06MB3312.namprd06.prod.outlook.com (10.174.251.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Fri, 7 Jul 2017 14:03:32 +0000 Received: from MWHPR06MB3310.namprd06.prod.outlook.com ([10.174.251.30]) by MWHPR06MB3310.namprd06.prod.outlook.com ([10.174.251.30]) with mapi id 15.01.1220.018; Fri, 7 Jul 2017 14:03:32 +0000 From: Roger Whitcomb To: Ant Users List Subject: RE: Test for JUnit version? Thread-Topic: Test for JUnit version? Thread-Index: AdL2l6Qy63pUTusfTV2Ct1XL2KQeVAAPoo3KABTlM/A= Date: Fri, 7 Jul 2017 14:03:31 +0000 Message-ID: References: <87eftsdhkt.fsf@v45346.1blu.de> In-Reply-To: <87eftsdhkt.fsf@v45346.1blu.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [12.32.116.227] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR06MB3312;20:72OztfJbBT3Y/5wyZAS7T52jZiaGqPm3amQXE/EK7kcwFW9yERQA7KU0tfa0UqbxS2bSBbZhmRwnfIyqmzKzaoAZfLZvI3vGJC6jYmoHU+R0i1fZIdAHdo/71vMnM5A13hf8XsMbj0tKsK7r7YTpFCQNCvDJRuX7QUy8fTttS68= x-ms-office365-filtering-correlation-id: e613897f-62b2-4d7c-75ca-08d4c540f3cf x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:MWHPR06MB3312; x-ms-traffictypediagnostic: MWHPR06MB3312: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(236129657087228)(209349559609743); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(2017060910064)(8121501046)(10201501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(20161123564025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:MWHPR06MB3312;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:MWHPR06MB3312; x-forefront-prvs: 0361212EA8 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(979002)(6009001)(39830400002)(39450400003)(39410400002)(39400400002)(53754006)(252514010)(13464003)(377424004)(24454002)(377454003)(6436002)(25786009)(50986999)(189998001)(7736002)(86362001)(3280700002)(6506006)(305945005)(66066001)(74316002)(2900100001)(966005)(76176999)(14454004)(6246003)(77096006)(38730400002)(33656002)(54356999)(99286003)(6116002)(72206003)(53936002)(478600001)(110136004)(6306002)(9686003)(55016002)(3660700001)(8676002)(7696004)(8936002)(102836003)(3480700004)(53546010)(3846002)(6916009)(81166006)(229853002)(2906002)(2950100002)(5660300001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR06MB3312;H:MWHPR06MB3310.namprd06.prod.outlook.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: actian.com X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jul 2017 14:03:32.0847 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 20057ce9-1386-4770-8b04-e7824ef632be X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR06MB3312 X-MC-Unique: 9TsS4-ndOSGWRqdOsqj3Dg-1 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable archived-at: Fri, 07 Jul 2017 14:03:48 -0000 Perfect! Somehow missed that ... :) Thank you. -----Original Message----- From: Stefan Bodewig [mailto:bodewig@apache.org]=20 Sent: Thursday, July 06, 2017 8:58 PM To: user@ant.apache.org Subject: Re: Test for JUnit version? On 2017-07-06, Roger Whitcomb wrote: > Hi all, > I just realized I have written some JUnit tests that rely= on "assertNotEquals" that has just appeared "recently" in JUnit (as in, 4.= 11 and 4.12, but not 4.10). I'm testing for the presence of JUnit in the c= lasspath in my "build.xml", but is there a way to test for the specific ver= sion of JUnit? I see there is a "org.junit.runner.JUnitCore.getVersion()" = method, which presumably could be used, but I'm guessing I'd have to write = Javascript in my "build.xml" in order to test that. > Anyone have a better idea? You can use a together with [1] to directly test fo= r the presence of assertNotEquals. Stefan [1] http://ant.apache.org/manual/Tasks/conditions.html#hasmethod --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional comm= ands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org