org.pageseeder.xmldoclet.options.DirectoryOption Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pso-xmldoclet Show documentation
Show all versions of pso-xmldoclet Show documentation
Java doclet to generate documentation as XML
The newest version!
package org.pageseeder.xmldoclet.options;
import jdk.javadoc.doclet.Reporter;
import java.io.File;
import java.util.Collections;
import java.util.List;
/**
* Option to specify the output directory of the doclet.
*
* @author Christophe Lauret
* @version 1.0
*/
public final class DirectoryOption extends XMLDocletOptionBase {
private File directory = new File(".");
public DirectoryOption(Reporter reporter) {
super(reporter);
}
@Override
public int getArgumentCount() {
return 1;
}
@Override
public String getDescription() {
return "the directory where output is placed.";
}
@Override
public Kind getKind() {
return Kind.STANDARD;
}
@Override
public List getNames() {
return Collections.singletonList("-d");
}
@Override
public String getParameters() {
return "";
}
@Override
public boolean process(String option, List arguments) {
this.directory = new File(arguments.get(0));
return true;
}
public File getDirectory() {
return this.directory;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy