Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 28594 invoked by uid 500); 20 Sep 2001 21:23:01 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 28585 invoked from network); 20 Sep 2001 21:23:00 -0000 Message-ID: <3BAA5F31.36CEBEF5@cisco.com> Date: Thu, 20 Sep 2001 17:27:13 -0400 From: Paul Michali X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: ant-user@jakarta.apache.org Subject: Re: How to run a background app? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Chris Flemetakis wrote: > > I have never used the parallel task but it does sound to me like what you > should use.. > > I would also suggest using sleep after you start your parallel tasks to give > the app server time to start up before you begin your junit tests > > If it it a weblogic server you might also be able to utilize the wlstart and > wlstop features of ant to ensure a "clean" startup and shutdown of all > procedures. Unfortunately not. It is a freeware Java based mail server that I use for some of my JUnit tests and I'm trying several ways to make sure this is running, before I run the tests. I've got a few postings trying to figure out how to do this from Ant, with a custom task to test to see if it is running. I'm also exploring how to kick this server off, from inside my JUnit tests. I'm stuck on the Ant way, as I can't figure out how to spawn the server. I have one suggestion to spawn the server as part of the custom task (I just wanted to try to do it from Ant, since it is a Java app). In digging in the docs, I came across the feature, but I haven't given it a shot. I'm stuck on the JUnit way, as I'm not sure how to perform this startup only once. One suggestion was using the TestSetup (see other thread), but I'm not sure if that will work, when running from Ant (but maybe I just don't understand all this :^). I'm trying to get a handle on each of the ways, figure out which ones work, and understand the pros and cons of each way. PCM (Paul Michali) Carrier Voice Gateway Business Unit (CVGBU) Cisco Systems, Inc. 250 Apollo Drive Chelmsford, MA 01824 Phone : (800) 572-6771 x 45817 (978) 244-5817 [direct] Paging: (800) 365-4578 [voice] pcm@epage.cisco.com [email page]