Return-Path: X-Original-To: apmail-ant-dev-archive@www.apache.org Delivered-To: apmail-ant-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0B3D89DC7 for ; Fri, 9 Mar 2012 04:57:36 +0000 (UTC) Received: (qmail 86060 invoked by uid 500); 9 Mar 2012 04:57:35 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 86006 invoked by uid 500); 9 Mar 2012 04:57:35 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 85995 invoked by uid 99); 9 Mar 2012 04:57:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 04:57:35 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 04:57:29 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id B64484150053 for ; Fri, 9 Mar 2012 05:57:07 +0100 (CET) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g8lP7hjMdkrg for ; Fri, 9 Mar 2012 05:57:07 +0100 (CET) Received: by samaflost.de (Postfix, from userid 1000) id 5DBA94150054; Fri, 9 Mar 2012 05:57:07 +0100 (CET) From: Stefan Bodewig To: dev@ant.apache.org Subject: Re: Java5 move and Jenkins References: <871upafep7.fsf@v35516.1blu.de> <95F714FE-7CC0-48FA-9B53-D31633D62D9F@hibnet.org> <87r4x3hee2.fsf@v35516.1blu.de> Date: Fri, 09 Mar 2012 05:57:07 +0100 In-Reply-To: (Jesse Glick's message of "Thu, 08 Mar 2012 20:44:56 -0500") Message-ID: <87zkbq4bj0.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org On 2012-03-09, Jesse Glick wrote: > On 03/08/2012 12:04 AM, Stefan Bodewig wrote: >> do we have to do anything special to provide the Jenkins build with a >> ${java.to.tmpdir} that it actually is allowed to write to? > Using ${java.io.tmpdir} from tests is a bit dangerous anyway; the > files may rarely or never get cleaned up, the tearDown target should take care of that, unless anything kills Ant, that is. > you need to consider possible race conditions between different jobs > running on the same node, etc. True. I guess we never envisoined that. > Can the tests be made to use a tempdir inside the ${basedir} > somewhere? Several JUnit tests use java.io.tempdir (need to grep through it), most if not all AntUnit tests import a common file that defines the setUp and tearDown targets and properties input and output which the tests use. If you change that file (src/tests/antunit/antunit-base.xml) it should take effect for a whole bunch of AntUnit tests immediately. > By comparison, most NetBeans unit tests use a utility > NbTestCase.getWorkDir() [1] which takes a static root > (e.g. ${basedir}/build/test/unit/work/) and appends a suffix based on > the test suite & case names. For tests needing File access this is > very convenient. That would work for our JUnit tests, for AntUnit we'd have the build file name (the one importing the base file) but not the executing target. Stefan > [1] https://hg.netbeans.org/core-main/raw-file/default/nbjunit/src/org/netbeans/junit/NbTestCase.java --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org