public class SourceEntry extends Object
getIncludedFiles(File,
String[], String[])
to obtain the list of files from the basedir directory which
respects the includes and/or excludes patterns using an
internal DirectoryScanner object.
Note : The class does not extends DirectoryScanner since we
DO not want to expose his methods.| Modifier and Type | Field and Description |
|---|---|
protected File |
basedir |
protected String[] |
excludes |
protected String[] |
files
Files to be find
|
protected String[] |
includes |
protected String[] |
skipFiles |
protected String |
skipMessage |
protected String |
specificGoal
If you want to restrict use of the entry, set the class name goal to this
property via
setSpecificGoal(String). |
protected org.nuiton.io.FileUpdater |
updater |
| Constructor and Description |
|---|
SourceEntry() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
filterByAnnotation(String file,
URLClassLoader loader,
List<String> annotationClass,
org.apache.maven.plugin.logging.Log log) |
Annotation |
getAnnotation(File file,
URLClassLoader loader,
List<String> annotationClass,
org.apache.maven.plugin.logging.Log log) |
Annotation |
getAnnotation(String file,
URLClassLoader loader,
List<String> annotationClass,
org.apache.maven.plugin.logging.Log log) |
File |
getBasedir() |
Class<?> |
getClass(File file,
URLClassLoader loader,
org.apache.maven.plugin.logging.Log log) |
Class<?> |
getClass(String file,
URLClassLoader loader,
org.apache.maven.plugin.logging.Log log) |
String[] |
getExcludes() |
String[] |
getFiles() |
int |
getFoudFiles() |
protected String |
getFQN(String file) |
String[] |
getIncludedFiles(File defaultBasedir,
String[] defaultIncludes,
String[] defaultExcludes) |
String[] |
getIncludedFiles(File basedir,
String[] defaultIncludes,
String[] defaultExcludes,
URLClassLoader loader,
List<String> annotationClass,
org.apache.maven.plugin.logging.Log log) |
String[] |
getIncludes() |
String[] |
getSkipFiles() |
String |
getSkipMessage() |
String |
getSpecificGoal() |
org.nuiton.io.FileUpdater |
getUpdater() |
boolean |
hasExcludes() |
boolean |
hasIncludes() |
boolean |
hasSrc() |
boolean |
isFileUptodate(File file)
Test if a file is up to date and not to be treated.
|
void |
setBasedir(File basedir) |
void |
setExcludes(String[] excludes) |
void |
setIncludes(String[] includes) |
void |
setSpecificGoal(String specificGoal) |
void |
setUpdater(org.nuiton.io.FileUpdater updater) |
String |
toString() |
boolean |
useForGoal(String goal) |
protected String specificGoal
setSpecificGoal(String).
If let to null, all goals can use this entry.protected File basedir
protected String[] includes
protected String[] excludes
protected String[] files
protected String[] skipFiles
protected String skipMessage
protected org.nuiton.io.FileUpdater updater
public String[] getExcludes()
public void setExcludes(String[] excludes)
public String[] getIncludes()
public void setIncludes(String[] includes)
public File getBasedir()
public void setBasedir(File basedir)
public String getSpecificGoal()
public void setSpecificGoal(String specificGoal)
public boolean useForGoal(String goal)
public boolean hasSrc()
public boolean hasIncludes()
public boolean hasExcludes()
public final boolean isFileUptodate(File file)
file - the file path to testtrue if file is up to date and do not need to be parsedFileUpdaterpublic String[] getIncludedFiles(File defaultBasedir, String[] defaultIncludes, String[] defaultExcludes)
public String[] getIncludedFiles(File basedir, String[] defaultIncludes, String[] defaultExcludes, URLClassLoader loader, List<String> annotationClass, org.apache.maven.plugin.logging.Log log)
protected boolean filterByAnnotation(String file, URLClassLoader loader, List<String> annotationClass, org.apache.maven.plugin.logging.Log log)
public Class<?> getClass(String file, URLClassLoader loader, org.apache.maven.plugin.logging.Log log)
public Annotation getAnnotation(String file, URLClassLoader loader, List<String> annotationClass, org.apache.maven.plugin.logging.Log log)
public Class<?> getClass(File file, URLClassLoader loader, org.apache.maven.plugin.logging.Log log)
public Annotation getAnnotation(File file, URLClassLoader loader, List<String> annotationClass, org.apache.maven.plugin.logging.Log log)
public String getSkipMessage()
public String[] getFiles()
public String[] getSkipFiles()
public int getFoudFiles()
public org.nuiton.io.FileUpdater getUpdater()
public void setUpdater(org.nuiton.io.FileUpdater updater)
Copyright © 2007–2013 CodeLutin. All rights reserved.