ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47775] New: non forked ant java task exits immediately on Mac OS X 10.6
Date Tue, 01 Sep 2009 14:53:36 GMT

           Summary: non forked ant java task exits immediately on Mac OS X
           Product: Ant
           Version: unspecified
          Platform: Macintosh
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks

--- Comment #0 from John McKisson <> 2009-09-01 07:53:32 PDT
My OS is Mac OS X 10.6.  This problem exists in ant 1.7.0 (included with 10.6),
1.7.1, and the latest version I got from svn (Apache Ant version 1.8.0alpha
compiled on September 1 2009).

This problem persists with both the 32 and 64 bit JVM included by Apple in
10.6, Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219).

I have a simple ant java task which launches a java program:

<target name="run-server" depends="compile" description="Run the
    <java classname="jDaq.server.CarrierServer"/>

Running this task appears to launch properly but then immediately exits,
producing this output:

mckisson:jDaq john$ ant run-server
Buildfile: /Users/john/Development/jDaq/build.xml



     [java] Sep 1, 2009 10:41:28 AM jDaq.server.CarrierServer <clinit>
     [java] 10:41:28.981 [INFO] (main) CarrierServer:: Starting Server...
     [java] 10:41:33.650 [INFO] (main) CarrierServer:: Server running on
     [java] 10:41:33.651 [INFO] (main) CarrierServer:: Using TCP port 1198
     [java] 10:41:33.651 [INFO] (main) CarrierServer:: Codebase server running:
     [java] 10:41:33.651 [INFO] (main) CarrierServer:: Looking for Devices...
     [java] 10:41:33.696 [INFO] (main) CarrierServer:: <Remote> new FpgaControl
     [java] 10:41:33.724 [INFO] (main) FpgaControl:: Creating new Daq/COG
threads: QUSB-0
     [java] 10:41:33.725 [INFO] (QUSB-0 Daq) FpgaControl:: idle...
     [java] 10:41:33.727 [INFO] (QUSB-0 COG) FpgaControl:: idle...
     [java] 10:41:33.771 [INFO] (main) CarrierServer:: <Remote> new FpgaControl
     [java] 10:41:33.772 [INFO] (main) FpgaControl:: Creating new Daq/COG
threads: QUSB-1
     [java] 10:41:33.777 [INFO] (QUSB-1 Daq) FpgaControl:: idle...
     [java] 10:41:33.778 [INFO] (QUSB-1 COG) FpgaControl:: idle...
     [java] 10:41:33.780 [INFO] (main) CarrierServer:: Server Ready, free
memory = 71548.34kB

Total time: 6 seconds
mckisson:jDaq john$ 

Running the same task with fork defined as true works properly and the program
does not exit immediately.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message