Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 77704 invoked from network); 23 Jan 2002 13:40:06 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 23 Jan 2002 13:40:06 -0000 Received: (qmail 28619 invoked by uid 97); 23 Jan 2002 13:39:56 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 28603 invoked by uid 97); 23 Jan 2002 13:39:56 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 28592 invoked from network); 23 Jan 2002 13:39:55 -0000 Message-ID: <3C4EBD7B.5030405@flashnet.it> Date: Wed, 23 Jan 2002 14:41:15 +0100 From: Ugo Landini User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120 X-Accept-Language: en-us MIME-Version: 1.0 To: ant-user@jakarta.apache.org Subject: execution path Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi all, I am sorry if this question is a FAQ on this mailing list, but the archive is actually not working: This is my problem: I have the basedir set to ".", and the unit tests are compiled in a {tests.dir}, which is a subdir in WEB-INF (I am deploying for Tomcat). I also need (for the tests to run) some files which go under the webapp directory so the test classes can find them (i copy them with the task), and this is all working if I run the tests "by hand" (i.e. java junit.swingui.TestRunner AllTests, for example ) after going in the right directories. But the junit tasks in build.xml search for the files in the project directory starting from the basedir (which is different from the deployment dir under Tomcat, obviously), which forces me to copy the files needed for the tests *either* in the webapps *and* in the project directory, if I don't want the build to fail (I'd like to run tests automatically) I cannot setup the basedir to something different from "." only for specific tasks (I think also task has the same problem), because that is for the whole project, so my question is: is there any workaround? Or am I missing something? (more probably) TIA uL -- To unsubscribe, e-mail: For additional commands, e-mail: