src/main/java/com/digitalglobe/util/maven/plugin/CloudFormationDeployMavenPlugin.java
/**
     * Use the method to determine if the stack should be executed.  A condition may exist on the stack that signals
     * when the stack is required or not in the current deployment.
     *
     * @param condition is the name of a condition to investigate.
     * @return a flag indicating if the condition is true or false.
     * @throws MojoExecutionException when a validation or logic error occurs.
     */
Use the method to determine if the stack should be executed.  A condition may exist on the stack that signals
when the stack is required or not in the current deployment.

@param condition is the name of a condition to investigate.
@return a flag indicating if the condition is true or false.
@throws MojoExecutionException when a validation or logic error occurs.
Use the method to determine if the stack should be executed . A condition may exist on the stack that signals when the stack is required or not in the current deployment . @param condition is the name of a condition to investigate . @return a flag indicating if the condition is true or false . @throws MojoExecutionException when a validation or logic error occurs .
private boolean shouldExecuteStack(String condition) throws MojoExecutionException {
        boolean execute = true;
        if((conditions == null) && (condition != null))
            throw new MojoExecutionException("The condition map is missing even though stack condition exists.");
        if((conditions != null) && (condition != null)) {
            boolean found = false;
            for (Map.Entry<String, Boolean> entry : conditions.entrySet()) {
                if (entry.getKey().equals(condition)) {
                    execute = entry.getValue();
                    found = true;
                    break;
                }
            }
            if(!found) throw new MojoExecutionException("Condition not found in condition map.");
        }
        return execute;
    }
private boolean shouldExecuteStack ( String condition ) throws MojoExecutionException { boolean execute = true ; if ( ( conditions == null ) && ( condition != null ) ) throw new MojoExecutionException ( "The condition map is missing even though stack condition exists." ) ; if ( ( conditions != null ) && ( condition != null ) ) { boolean found = false ; for ( Map . Entry < String , Boolean > entry : conditions . entrySet ( ) ) { if ( entry . getKey ( ) . equals ( condition ) ) { execute = entry . getValue ( ) ; found = true ; break ; } } if ( ! found ) throw new MojoExecutionException ( "Condition not found in condition map." ) ; } return execute ; }
Use the method to determine if the stack should be executed.
Use the method to determine if the stack should be executed .