Hi Justin,

there's a self-activating profile in there that renames the output if the 
source is called "index.adoc"
So if you rename that, it will not automatically rename the output.

   <!--
        This plugin fails the build if there is no index.adoc file,
        so only run it if there is input for generating slide output.
    -->
    <profiles>
        <profile>
            <id>rename-output</id>
            <activation>
                <file>
                    <exists>src/main/asciidoc/index.adoc</exists>
                </file>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.coderplus.maven.plugins</groupId>
                        <artifactId>copy-rename-maven-plugin</artifactId>
                        <version>${copy-rename-maven-plugin.version}</version>
                        <executions>
                            <execution>
                                <id>rename-slide-file</id>
                                <phase>process-resources</phase>
                                <goals>
                                    <goal>rename</goal>
                                </goals>
                                <configuration>
                                    
<sourceFile>${project.slides.directory}/${project.main.contentfile}.revealjs</sourceFile>
                                    
<destinationFile>${project.slides.directory}/${project.main.contentfile}.html</destinationFile>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

If we want different naming schemes, then we need to adjust the tooling.

Chris




Am 25.01.20, 08:44 schrieb "Justin Mclean" <[email protected]>:

    Hi,
    
    > I used the template to create several presentations and didn't have that 
issue. 
    
    Is it assuming that it is called index rather than what is specified? 
    
    For example:
    
        <properties>
            <project.main.contentfile>index_en</project.main.contentfile>
        </properties>
    
    Thanks.
    Justin

Reply via email to