Return-Path: Delivered-To: apmail-maven-continuum-users-archive@www.apache.org Received: (qmail 1950 invoked from network); 12 Apr 2006 02:31:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Apr 2006 02:31:45 -0000 Received: (qmail 56170 invoked by uid 500); 12 Apr 2006 02:31:44 -0000 Delivered-To: apmail-maven-continuum-users-archive@maven.apache.org Received: (qmail 56148 invoked by uid 500); 12 Apr 2006 02:31:43 -0000 Mailing-List: contact continuum-users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-users@maven.apache.org Delivered-To: mailing list continuum-users@maven.apache.org Received: (qmail 56137 invoked by uid 99); 12 Apr 2006 02:31:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Apr 2006 19:31:43 -0700 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=HTML_MESSAGE,SPF_HELO_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [64.85.69.190] (HELO EX01.int.loudeye.com) (64.85.69.190) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 11 Apr 2006 19:31:37 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C65DD9.2C599FF5" Subject: Continuum hangs when building a Maven project that spawns a process Date: Tue, 11 Apr 2006 19:31:17 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Continuum hangs when building a Maven project that spawns a process Thread-Index: AcZd2Sz/W8gj9Rh6Slun9TGxpc9PUw== From: "John Didion" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C65DD9.2C599FF5 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable We have a project that spawns a process (via Runtime.exec) that is intended to live beyond the duration of the build. When Continuum builds this project, the status is always "in progress".=20 =20 The problem seems to be that the stream pumper that redirects the output from maven hangs on in.readLine(), where in is a reader that wraps the maven process' input stream. Apparently, the process' input stream never closes (even though the jvm running maven exits after the build completes) and the input stream's read method is blocking. If I manually kill the process spawned by maven, then the input stream closes and the build completes.=20 =20 The interesting this is that if I write a simple java class to invoke maven via Runtime.exec (in the same manner that continuum does via plexus' Commandline class) and then call this from the command line, everything works fine. We were also doing this exact same thing in an ant build.xml via CruiseControl, and it worked fine.=20 =20 My hunch is that it has something to do with the wrapper program that is used to invoke continuum. =20 Continuum's process chain looks like this: wrapper->continuum jvm->maven->longrunningprocess CruiseControl's process chain looks like this: cruise control jvm->build loop thread->ant->longrunningprocess =20 Does anyone have any idea why this would be, and, more importantly, how I can work around it? ------_=_NextPart_001_01C65DD9.2C599FF5--