prantl.ant.eclipse
Class ClassPathEntrySourceElement

java.lang.Object
  extended by prantl.ant.eclipse.ClassPathEntryElement
      extended by prantl.ant.eclipse.ClassPathEntryPathElement
          extended by prantl.ant.eclipse.ClassPathEntrySourceElement

public class ClassPathEntrySourceElement
extends ClassPathEntryPathElement

Describes an element classpathentry under the element classpath, specifically the kind "src". Presets the value "" for the attribute path to include all sources in the base directory by default. An instance of this element will be created automatically with the default settings if none present.

Since:
Ant-Eclipse 1.0
Author:
Ferdinand Prantl <prantl@users.sourceforge.net>

Constructor Summary
ClassPathEntrySourceElement()
          Creates a new instance of the classpathentry-src element.
 
Method Summary
 java.lang.String getExcluding()
          Returns a list of project-relative paths to be excluded from the source path delimited by vertical lines ('|') or null if it has not been set, which means do not exlude anything.
 java.lang.String getOutput()
          Returns a source-specific output directory to compile the Java classes there or null if it has not been set, which means to use the common one.
 void setExcluding(java.lang.String value)
          Sets the list of project-relative paths to be excluded from the source path delimited by vertical lines ('|').
 void setOutput(java.lang.String value)
          Sets the source-specific output directory to compile the Java classes there.
 void setPath(java.lang.String value)
          Sets the path of the classpathentry element.
 void setPathRef(Reference value)
          Sets the reference to a path of the classpathentry element.
 
Methods inherited from class prantl.ant.eclipse.ClassPathEntryPathElement
getPathRef, validate
 
Methods inherited from class prantl.ant.eclipse.ClassPathEntryElement
getPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPathEntrySourceElement

public ClassPathEntrySourceElement()
Creates a new instance of the classpathentry-src element.

Since:
Ant-Eclipse 1.0
Method Detail

getExcluding

public java.lang.String getExcluding()
Returns a list of project-relative paths to be excluded from the source path delimited by vertical lines ('|') or null if it has not been set, which means do not exlude anything.

Returns:
A list of project-relative paths delimited by vertical lines ('|') to exclude or null if not having been set.

setExcluding

public void setExcluding(java.lang.String value)
Sets the list of project-relative paths to be excluded from the source path delimited by vertical lines ('|').

Parameters:
value - The list of project-relative paths to be excluded from the sourcepath.
Since:
Ant-Eclipse 1.0

getOutput

public java.lang.String getOutput()
Returns a source-specific output directory to compile the Java classes there or null if it has not been set, which means to use the common one.

Returns:
A source-specific output directory or null if not having been set.

setOutput

public void setOutput(java.lang.String value)
Sets the source-specific output directory to compile the Java classes there.

Parameters:
value - The source-specific output directory.
Since:
Ant-Eclipse 1.0

setPath

public void setPath(java.lang.String value)
Sets the path of the classpathentry element.

Overrides:
setPath in class ClassPathEntryPathElement
Parameters:
value - A kind-of-element specific path value.
Throws:
BuildException - If an attribute pathref has been set.
Since:
Ant-Eclipse 1.0

setPathRef

public void setPathRef(Reference value)
Sets the reference to a path of the classpathentry element. Additionally resets the eventually present attribute path if it was set to the current directory by default.

Overrides:
setPathRef in class ClassPathEntryPathElement
Parameters:
value - A reference to the kind-of-element specific path value.
Throws:
BuildException - If an attribute pathref has been set.
Since:
Ant-Eclipse 1.0