Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C309FB8C for ; Fri, 10 May 2013 14:55:20 +0000 (UTC) Received: (qmail 28908 invoked by uid 500); 10 May 2013 14:55:19 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 28006 invoked by uid 500); 10 May 2013 14:55:17 -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 27519 invoked by uid 99); 10 May 2013 14:55:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 14:55:17 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gudnabrsam@gmail.com designates 74.125.83.41 as permitted sender) Received: from [74.125.83.41] (HELO mail-ee0-f41.google.com) (74.125.83.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 14:55:13 +0000 Received: by mail-ee0-f41.google.com with SMTP id d4so1231546eek.28 for ; Fri, 10 May 2013 07:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:reply-to:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=B6RibKFPzLHSO+4Z++rtUua5qGoLLFiMrA/cOzdhnDw=; b=RWgxjXWcQ8PpxW0Vx1+WlJGC6BS8Qvv//8M8PoImu8tUgPP7I8CbCNcb1feJUyUcP4 lURVtB4wNwOronVaWRTrtakm4n/JjSjZCIDBnKfXPz3oznvf+CQ3s9F/bfpVMqiwWja1 NRwoQvHUT85zZ4QPYmShAKQiAr6cWSijlhuYCQyysoGX9D4ZL8tdhZdXwibE6HnrMYTQ THdwU6sld6IV/vxhKigbAkUk+fUPW/oN5UAg0CXLR8OZcpla92OEd8hxb1ucN2+tm7KQ OZG8z+ZL5LxwQhqTRK6dcS+A7YADdhjdIoma1EmibniOVezZAbEcO6KXw2bK0CTo09e0 nfOg== MIME-Version: 1.0 X-Received: by 10.15.73.197 with SMTP id h45mr1898678eey.46.1368197692071; Fri, 10 May 2013 07:54:52 -0700 (PDT) Received: by 10.223.76.12 with HTTP; Fri, 10 May 2013 07:54:51 -0700 (PDT) Reply-To: gudnabrsam@gmail.com In-Reply-To: References: Date: Fri, 10 May 2013 09:54:51 -0500 Message-ID: Subject: Re: How to run a single junit test method with ant From: Matt Benson To: Ant Users List Content-Type: multipart/alternative; boundary=001a11c34b666b4f7004dc5e590b X-Virus-Checked: Checked by ClamAV on apache.org --001a11c34b666b4f7004dc5e590b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Typically this would be done using separate targets. Ant's own build.xml provides an example. HTH, Matt On Thu, May 9, 2013 at 11:33 PM, =E8=82=96=E8=B0=8B wro= te: > Hi, Users. > I am using ant in Linux. I can use ant junit task to run all test > methods in a junit4 test class but fail to find the way to run a single > test method. I googled and found a helpful article at > https://today.java.net/pub/a/today/2003/09/12/individual-test-cases.html. > However, the solution it provides does not help. My ant seems not to > recognize the "tests" sysproperty. > My ant version is 1.8.4. and the related content of build.xml is listed > as follows: > > > > > > on the command > line with -Dtest=3D" depends=3D"compile, ensure-test-name"> > > > > > > > > > > > > > Please help! Thanks a lot! > > Regards > xiaomou > --001a11c34b666b4f7004dc5e590b--