New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a parameter to remove the asciidoctor execution from the watch mode #386

Closed
cescoffier opened this Issue Dec 9, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@cescoffier
Member

cescoffier commented Dec 9, 2014

This parameter let you enable or disable a specific execution to be executed in the watch mode. This is useful when generating PDF and EPUB3 where the generation is a bit time-consuming.

Here is an example. Only the html execution is watched. Others are skipped.

<plugin>
                <groupId>org.wisdom-framework</groupId>
                <artifactId>wisdom-asciidoc-maven-plugin</artifactId>
                <version>0-7-SNAPSHOT</version>
                <executions>
                    <execution>
                        <id>html</id>
                        <goals>
                            <goal>compile-asciidoc</goal>
                        </goals>
                        <configuration>
                            <stylesheet>github.css</stylesheet>
                            <stylesheetDir>stylesheets</stylesheetDir>
                            <sourceHighlighter>highlightjs</sourceHighlighter>
                            <includes>
                                <include>index.ad</include>
                            </includes>
                        </configuration>
                    </execution>
                    <execution>
                        <id>pdf</id>
                        <goals>
                            <goal>compile-asciidoc</goal>
                        </goals>
                        <configuration>
                            <watch>false</watch>
                            <stylesheetDir>stylesheets</stylesheetDir>
                            <sourceHighlighter>highlightjs</sourceHighlighter>
                            <backend>pdf</backend>
                            <includes>
                                <include>wisdom-framework.ad</include>
                            </includes>
                        </configuration>
                    </execution>
                    <execution>
                        <id>epub</id>
                        <goals>
                            <goal>compile-asciidoc</goal>
                        </goals>
                        <configuration>
                            <watch>false</watch>
                            <stylesheetDir>stylesheets</stylesheetDir>
                            <sourceHighlighter>highlightjs</sourceHighlighter>
                            <backend>epub3</backend>
                            <includes>
                                <include>wisdom-framework-epub.ad</include>
                            </includes>
                        </configuration>
                    </execution>
                </executions>
</plugin>

@cescoffier cescoffier added this to the 0.7 milestone Dec 9, 2014

@cescoffier cescoffier self-assigned this Dec 9, 2014

@cescoffier cescoffier closed this in c9c1acf Dec 9, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment