public void execute()

in freemarker-docgen-maven/src/main/java/org/freemarker/docgen/maven/TransformMojo.java [72:107]


    public void execute() throws MojoExecutionException, MojoFailureException {
        Transform transform = new Transform();
        transform.setSourceDirectory(sourceDirectory);
        transform.setDestinationDirectory(outputDirectory);
        if (showEditoralNotes != null) {
            transform.setShowEditoralNotes(showEditoralNotes);
        }
        if (validate != null) {
            transform.setValidate(validate);
        }
        if (timeZone != null) {
            transform.setTimeZone(TimeZone.getTimeZone(timeZone));
        }
        if (generateEclipseToC != null) {
            transform.setGenerateEclipseToC(generateEclipseToC);
        }
        if (offline != null) {
            transform.setOffline(offline);
        }
        if (customVariableFileDirectory != null) {
            transform.setCustomVariableFileDirectory(customVariableFileDirectory);
        }
        if (customVariables != null) {
            transform.addCustomVariableOverrides(customVariables);
        }
        if (insertableFiles != null) {
            transform.addInsertableFileOverrides(insertableFiles);
        }
        transform.setPrintProgress(printProgress); // TODO Use Maven logging for this

        try {
            transform.execute();
        } catch (Exception e) {
            throw new MojoExecutionException("Error during document transformation", e);
        }
    }