Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.agilejava.docbkx.maven;
  * Copyright 2006 Wilfred Springer
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
A dedicated base class for plugins generating HTML output, in order to allow the specific stylesheet chosen to be dependent on the chunkedOutput property.

Wilfred Springer
public abstract class AbstractHtmlMojo extends AbstractMojoBase {

Indicates if the output should either be a single page, or if it should be spread across multiple pages.

    private boolean chunkedOutput;
    protected String getNonDefaultStylesheetLocation() {
        if () {
            return "docbook/"+getType()+"/chunk.xsl";
        } else {
            return null;

This implementation will set the root.filename property, based on the targetFile's name.
    public void adjustTransformer(Transformer transformer,
            String sourceFilenameFile targetFile) {
        if () {
            getLog().debug("Chunking output.");
            String rootFilename = targetFile.getName();
            rootFilename = rootFilename.substring(0, rootFilename
                    + .);
New to GrepCode? Check out our FAQ X