com.kryshchuk.maven.plugins.jfreechart.fs.SingleFileIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jfreechart-maven-plugin Show documentation
Show all versions of jfreechart-maven-plugin Show documentation
This plugin integrates chart generation into the build process.
/**
*
*/
package com.kryshchuk.maven.plugins.jfreechart.fs;
import java.io.File;
import org.apache.maven.plugin.MojoFailureException;
/**
* @author yura
* @since ${developmentVersion}
*
*/
public class SingleFileIterator extends AbstractFileIterator {
private final File file;
public SingleFileIterator(final File file, final File outputDirectory) {
super(outputDirectory);
this.file = file;
}
@Override
public void iterate(final FileVisitor visitor) throws FilesIterationException, MojoFailureException {
final File outputFile = new File(getOutputDirectory(), replaceExtension(file.getName()));
visitor.visit(file, outputFile);
}
}