private boolean isForkDisabled ( Plugin plugin ) throws MojoExecutionException { String forkCountValue = extractParamValue ( plugin , FORK_COUNT_PARAM_NAME ) ; String forkModeValue = extractParamValue ( plugin , FORK_MODE_PARAM_NAME ) ; return ( forkCountValue != null && forkCountValue . equals ( "0" ) ) || ( forkModeValue != null && forkModeValue . equals ( "never" ) ) ; }
Returns true if fork is disabled i . e . if we cannot set the agent .