Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.agilejava.docbkx.maven;
The base class of a Mojo generating Eclipse documentation.

Wilfred Springer
public abstract class AbstractEclipseMojo extends AbstractTransformerMojo {

This implementation will set the root.filename property, based on the targetFile's name. It will also set the to a value different than '0', in order to make sure that the Eclipse files are not getting generated to Maven's basedir, but to the target directory instead.
    public void adjustTransformer(Transformer transformer,
            String sourceFilenameFile targetFile) {
        String rootFilename = targetFile.getName();
        rootFilename = rootFilename.substring(0, rootFilename.lastIndexOf('.'));
                + .);
New to GrepCode? Check out our FAQ X