ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Ruby" <ru...@us.ibm.com>
Subject Re: Uses of Antcall?
Date Sun, 17 Jun 2001 01:16:35 GMT
jakarta-commons/cactus makes an "interesting" use of antcall.  Here's an
example usage of an ant task that they provide:

    <runservertests testURL="http://localhost:8080/test"
        startTarget="start_tomcat_32"
        stopTarget="stop_tomcat_32"
        testTarget="tests"/>

The key logic for this task is:

    public void execute() throws BuildException
    {
        try {
            callStart();
            callTests();
        } finally {
            // Make sure we stop the server
            callStop();
        }
    }

The implementation of the various callXXX methods essentially works out to
be an antcall on the value specified by XXXtarget.

- Sam Ruby


Mime
View raw message