if (failOnError) { smartfrog.setFailonerror(failOnError); }  propagateTimeout();
propagateSpawnIncompatibleSettings();
    protected void execSmartFrog(String failureText, String errorText) {        //adopt the classpath        setupClasspath(smartfrog);        //last minute fixup of error properties.        //this is because pre Ant1.7, even setting this to false stops spawn working        //delayed setting only when the flag is true reduces the need to flip the bit        if (failOnError) {            smartfrog.setFailonerror(failOnError);        }        //same for timeout        propagateTimeout();        //run it        int err = smartfrog.executeJava();        //if we didnt want the error code, we are finished        if (!failOnError) {            return;        }        //else, lets post-analyse the deployment        switch (err) {            case 0:                return;                //-1 is an expected error, but                //for some reason smartfrog on HP-UX returns something else.                //so we catch 255 as well.            case -1:            case 255:                throw new BuildException(failureText);            default:                throw new BuildException(errorText + " - error code " + err);        }    }