Generating title page template

33 views
Skip to first unread message

Jean-Marc Meessen

unread,
Feb 13, 2014, 11:17:42 AM2/13/14
to docbkx-to...@googlegroups.com
Hello,

I am trying to use the new feature for generating title page templates. It seems to get a result but I thing that I am not using it properly. I get an ugly exception that I can't get rid off. I don't seem to be able to force a particular name for the title template (although I can live with that).

Some help would be welcome.

Jmm

pom.xml abstract

(...)
          <execution>
          <id>Generate Docbook title template</id>
            <goals>
              <goal>generate-template</goal>
            </goals>
            <phase>generate-sources</phase>
        <configuration>
        <sourceDirectory>${basedir}/src/doc/docbkx/fo-stylesheets/</sourceDirectory>
          <includes>awl.titlepage.templates.xml</includes>
          <targetsFilename>awl.titlepage</targetsFilename>
        </configuration>
          </execution>
(...)

Result


[INFO] --- docbkx-maven-plugin:2.0.15:generate-template (Generate Docbook title template) @ DEPhandlerDoc ---
[INFO] Processing input file: awl.titlepage.templates.xml
[WARNING] Property not found in com.agilejava.docbkx.maven.DocbkxTemplateMojo
java.lang.NoSuchFieldException: targetsFilename
at java.lang.Class.getDeclaredField(Class.java:1948)
at com.agilejava.docbkx.maven.AbstractTransformerMojo.setProperty(AbstractTransformerMojo.java:957)
at com.agilejava.docbkx.maven.AbstractTransformerMojo.configureXref(AbstractTransformerMojo.java:522)
at com.agilejava.docbkx.maven.AbstractTransformerMojo.execute(AbstractTransformerMojo.java:170)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

[INFO] Applying customization parameters after docbkx parameters
[WARNING] Property not found in com.agilejava.docbkx.maven.DocbkxTemplateMojo
[WARNING] Property not found in com.agilejava.docbkx.maven.DocbkxTemplateMojo
[INFO] /Users/jmm/work/DEPhandler/DEPhandlerDoc/target/docbkx/template/awl.titlepage.templates.xsl has been generated.

Mimil Mimil

unread,
Feb 13, 2014, 4:29:22 PM2/13/14
to docbkx-to...@googlegroups.com
Hello,

yes we do not allow changing the output filename, it is based on the input filename.

Concerning the exception, yes it is an issue but not a blocking one. It has been introduced with this feature https://code.google.com/p/docbkx-tools/issues/detail?id=106&can=1&start=100

It is now corrected in the svn

Regards,
Cedric


--
You received this message because you are subscribed to the Google Groups "Docbkx Tools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docbkx-tools-us...@googlegroups.com.
To post to this group, send email to docbkx-to...@googlegroups.com.
Visit this group at http://groups.google.com/group/docbkx-tools-users.
For more options, visit https://groups.google.com/groups/opt_out.

Jean-Marc Meessen

unread,
Feb 14, 2014, 3:44:35 PM2/14/14
to docbkx-to...@googlegroups.com
ok. I will warn my users and adapt the way I name the files.

Thank.

Jmm

Mimil

unread,
Feb 14, 2014, 4:44:52 PM2/14/14
to docbkx-to...@googlegroups.com
You can use a postprocess task to rename the files (it is anttask format), maybe it can fit your needs.

Regards,
Cédric.
Reply all
Reply to author
Forward
0 new messages