try { executeTarget("testSpawn"); assertInLog("Standalone SmartFrog daemon started"); assertInLog("SmartFrog daemon terminated"); } catch (BuildException e) {  assertTrue(e.getMessage().indexOf("not compatible with spawn")>=0); }
executeTarget("testSpawn"); assertInLog(SmartFrogTask.MESSAGE_SPAWNED_DAEMON); assertInLog("SmartFrog daemon terminated");
    public void testSpawn() {        try {            executeTarget("testSpawn");            assertInLog("Standalone SmartFrog daemon started");            assertInLog("SmartFrog daemon terminated");        } catch (BuildException e) {            //older ant versions will not spawn            assertTrue(e.getMessage().indexOf("not compatible with spawn")>=0);        }    }