org.nuiton.util
Class SourceEntry

java.lang.Object
  extended by org.nuiton.util.SourceEntry

Deprecated. since 1.0.3, move to package org.nuiton.plugin (removed in 1.1.0)

@Deprecated
public class SourceEntry
extends Object

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.

Author:
tony

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

specificGoal

protected String specificGoal
Deprecated. 
If you want to restrict use of the entry, set the class name goal to this property via setSpecificGoal(String).

If let to null, all goals can use this entry.


basedir

protected File basedir
Deprecated. 

includes

protected String[] includes
Deprecated. 

excludes

protected String[] excludes
Deprecated. 

files

protected String[] files
Deprecated. 
Files to be find


skipFiles

protected String[] skipFiles
Deprecated. 

skipMessage

protected String skipMessage
Deprecated. 

updater

protected FileUpdater updater
Deprecated. 
Constructor Detail

SourceEntry

public SourceEntry()
Deprecated. 
Method Detail

getExcludes

public String[] getExcludes()
Deprecated. 

setExcludes

public void setExcludes(String[] excludes)
Deprecated. 

getIncludes

public String[] getIncludes()
Deprecated. 

setIncludes

public void setIncludes(String[] includes)
Deprecated. 

getBasedir

public File getBasedir()
Deprecated. 

setBasedir

public void setBasedir(File basedir)
Deprecated. 

getSpecificGoal

public String getSpecificGoal()
Deprecated. 

setSpecificGoal

public void setSpecificGoal(String specificGoal)
Deprecated. 

useForGoal

public boolean useForGoal(String goal)
Deprecated. 

hasSrc

public boolean hasSrc()
Deprecated. 

hasIncludes

public boolean hasIncludes()
Deprecated. 

hasExcludes

public boolean hasExcludes()
Deprecated. 

isFileUptodate

public final boolean isFileUptodate(File file)
Deprecated. 
Test if a file is up to date and not to be treated.

Parameters:
file - the file path to test
Returns:
true if file is up to date and do not need to be parsed
See Also:
FileUpdater

getIncludedFiles

public String[] getIncludedFiles(File defaultBasedir,
                                 String[] defaultIncludes,
                                 String[] defaultExcludes)
Deprecated. 

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

getIncludedFiles

public String[] getIncludedFiles(File basedir,
                                 String[] defaultIncludes,
                                 String[] defaultExcludes,
                                 URLClassLoader loader,
                                 List<String> annotationClass,
                                 org.apache.maven.plugin.logging.Log log)
Deprecated. 

filterByAnnotation

protected boolean filterByAnnotation(String file,
                                     URLClassLoader loader,
                                     List<String> annotationClass,
                                     org.apache.maven.plugin.logging.Log log)
Deprecated. 

getFQN

protected String getFQN(String file)
Deprecated. 

getClass

public Class<?> getClass(String file,
                         URLClassLoader loader,
                         org.apache.maven.plugin.logging.Log log)
Deprecated. 

getAnnotation

public Annotation getAnnotation(String file,
                                URLClassLoader loader,
                                List<String> annotationClass,
                                org.apache.maven.plugin.logging.Log log)
Deprecated. 

getClass

public Class<?> getClass(File file,
                         URLClassLoader loader,
                         org.apache.maven.plugin.logging.Log log)
Deprecated. 

getAnnotation

public Annotation getAnnotation(File file,
                                URLClassLoader loader,
                                List<String> annotationClass,
                                org.apache.maven.plugin.logging.Log log)
Deprecated. 

getSkipMessage

public String getSkipMessage()
Deprecated. 

getFiles

public String[] getFiles()
Deprecated. 

getSkipFiles

public String[] getSkipFiles()
Deprecated. 

getFoudFiles

public int getFoudFiles()
Deprecated. 

getUpdater

public FileUpdater getUpdater()
Deprecated. 

setUpdater

public void setUpdater(FileUpdater updater)
Deprecated. 


Copyright © 2009 CodeLutin. All Rights Reserved.