ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19768] New: - request for "daemon" attribute for <java> task
Date Thu, 08 May 2003 15:31:44 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19768>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19768

request for "daemon" attribute for <java> task

           Summary: request for "daemon" attribute for <java> task
           Product: Ant
           Version: 1.6Alpha (nightly)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: skripi@mail2003.shadowbyte.net


Hi,

I want to suggest to add a feature daemon with boolean value to the <java> task,
to enable <ant> to start services based on java with a <java> task call.

Currently if i start e.g. the tomcat server with a forked jvm, ant waits until
the server has shut down again.

So the task should look like:
-------------------------
   <java fork="yes" daemon="yes" 
       classname="${tomcat-bootstrap}">
           <arg value="${param}" />
       <sysproperty key="catalina.base"      value="${catalina-home}" />
       <sysproperty key="catalina.home"      value="${catalina-home}" />
       <sysproperty key="java.io.tmpdir"     value="${catalina-temp}" />
       <sysproperty key="java.endorsed.dirs" value="${java.endorsed.dirs}" />
       <classpath refid="tomcat-4.1-cp" />
    </java>
-------------------------
as far as i understand ant, fork="yes" should be present for the daemon task to 
work.

Iff this would work, java driven services could get rid of os specific startup 
scripts, making the setup and maintaining even easier. A (minor) drawback would 
be, that ant will then be a prerequisite for running.

see http://archives.apache.org/eyebrowse/ReadMsg?listName=user@ant.apache.
org&msgNo=30487
and (with example script)
http://archives.apache.org/eyebrowse/ReadMsg?listName=user@ant.apache.
org&msgNo=30476

Mime
View raw message