|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.util.SourceEntry
@Deprecated public class SourceEntry
A simple model for a sourceEntry represents by a basedir and includes and/or exlucdes pattern.
The class offers the usefull method :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.
| Field Summary | |
|---|---|
protected File |
basedir
Deprecated. |
protected String[] |
excludes
Deprecated. |
protected String[] |
files
Deprecated. Files to be find |
protected String[] |
includes
Deprecated. |
protected String[] |
skipFiles
Deprecated. |
protected String |
skipMessage
Deprecated. |
protected String |
specificGoal
Deprecated. If you want to restrict use of the entry, set the class name goal to this property via setSpecificGoal(String). |
protected FileUpdater |
updater
Deprecated. |
| Constructor Summary | |
|---|---|
SourceEntry()
Deprecated. |
|
| Method Summary | |
|---|---|
protected boolean |
filterByAnnotation(String file,
URLClassLoader loader,
List<String> annotationClass,
org.apache.maven.plugin.logging.Log log)
Deprecated. |
Annotation |
getAnnotation(File file,
URLClassLoader loader,
List<String> annotationClass,
org.apache.maven.plugin.logging.Log log)
Deprecated. |
Annotation |
getAnnotation(String file,
URLClassLoader loader,
List<String> annotationClass,
org.apache.maven.plugin.logging.Log log)
Deprecated. |
File |
getBasedir()
Deprecated. |
Class<?> |
getClass(File file,
URLClassLoader loader,
org.apache.maven.plugin.logging.Log log)
Deprecated. |
Class<?> |
getClass(String file,
URLClassLoader loader,
org.apache.maven.plugin.logging.Log log)
Deprecated. |
String[] |
getExcludes()
Deprecated. |
String[] |
getFiles()
Deprecated. |
int |
getFoudFiles()
Deprecated. |
protected String |
getFQN(String file)
Deprecated. |
String[] |
getIncludedFiles(File defaultBasedir,
String[] defaultIncludes,
String[] defaultExcludes)
Deprecated. |
String[] |
getIncludedFiles(File basedir,
String[] defaultIncludes,
String[] defaultExcludes,
URLClassLoader loader,
List<String> annotationClass,
org.apache.maven.plugin.logging.Log log)
Deprecated. |
String[] |
getIncludes()
Deprecated. |
String[] |
getSkipFiles()
Deprecated. |
String |
getSkipMessage()
Deprecated. |
String |
getSpecificGoal()
Deprecated. |
FileUpdater |
getUpdater()
Deprecated. |
boolean |
hasExcludes()
Deprecated. |
boolean |
hasIncludes()
Deprecated. |
boolean |
hasSrc()
Deprecated. |
boolean |
isFileUptodate(File file)
Deprecated. Test if a file is up to date and not to be treated. |
void |
setBasedir(File basedir)
Deprecated. |
void |
setExcludes(String[] excludes)
Deprecated. |
void |
setIncludes(String[] includes)
Deprecated. |
void |
setSpecificGoal(String specificGoal)
Deprecated. |
void |
setUpdater(FileUpdater updater)
Deprecated. |
String |
toString()
Deprecated. |
boolean |
useForGoal(String goal)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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 FileUpdater updater
| Constructor Detail |
|---|
public SourceEntry()
| Method Detail |
|---|
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 test
true if file is up to date and do not need to be parsedFileUpdater
public String[] getIncludedFiles(File defaultBasedir,
String[] defaultIncludes,
String[] defaultExcludes)
public String toString()
toString in class Object
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)
protected String getFQN(String file)
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 FileUpdater getUpdater()
public void setUpdater(FileUpdater updater)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||