Package fr.ifremer.isisfish.util
Class JavadocHelper
java.lang.Object
fr.ifremer.isisfish.util.JavadocHelper
Helper for javadoc.
Use "javadoc" executable tools located in JAVA_HOME.
- Since:
- 3.2.0.4
- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- chatellier
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
generateJavadoc
(JavaSourceStorage source, File destDir, boolean force, PrintWriter out) Generate javadoc of current.static int
generateJavadoc
(File rootSrc, File fileSrc, File dest, PrintWriter out) Generate single file javadoc.static int
generateJavadoc
(File rootSrc, File dest, PrintWriter out) Generate javadoc on all java file in a directory.static int
generateJavadoc
(File rootSrc, Collection<File> filesSrc, File dest, PrintWriter out) Generate file collection javadoc.protected static int
generateJavadoc
(List<File> classpath, Collection<File> filesSrc, File dest, PrintWriter out) Generate file collection javadoc.
-
Constructor Details
-
JavadocHelper
public JavadocHelper()
-
-
Method Details
-
generateJavadoc
public static int generateJavadoc(JavaSourceStorage source, File destDir, boolean force, PrintWriter out) Generate javadoc of current.- Parameters:
source
- source storagedestDir
- javadoc destination directoryforce
- force (if html file is newer than java file)out
- out writer (javadoc output, can benull
)- Returns:
- javadoc tool result
-
generateJavadoc
Generate javadoc on all java file in a directory.- Parameters:
rootSrc
- le repertoire de toutes les sourcesdest
- le répertoire de destination de la javadocout
- le flux de sortie (peut etre null)- Returns:
- le resulat de sortie de l'executable javadoc (0 si ok)
-
generateJavadoc
Generate single file javadoc.- Parameters:
rootSrc
- le repertoire de toutes les sourcesfileSrc
- le fichier dont on veut la javadocdest
- le répertoire de destination de la javadocout
- le flux de sortie (peut etre null)- Returns:
- le resulat de sortie de l'executable javadoc (0 si ok)
-
generateJavadoc
public static int generateJavadoc(File rootSrc, Collection<File> filesSrc, File dest, PrintWriter out) Generate file collection javadoc.- Parameters:
rootSrc
- le repertoire de toutes les sourcesfilesSrc
- les fichiers dont on veut la javadocdest
- le répertoire de destination de la javadocout
- le flux de sortie (peut etre null)- Returns:
- le resulat de sortie de l'executable javadoc (0 si ok)
-
generateJavadoc
protected static int generateJavadoc(List<File> classpath, Collection<File> filesSrc, File dest, PrintWriter out) Generate file collection javadoc.- Parameters:
classpath
- common classpathfilesSrc
- les fichiers dont on veut la javadocdest
- le répertoire de destination de la javadocout
- le flux de sortie (peut etre null)- Returns:
- le resulat de sortie de l'executable javadoc (0 si ok)
-