Class SourceFolder

java.lang.Object
org.gradle.plugins.ide.eclipse.model.AbstractClasspathEntry
org.gradle.plugins.ide.eclipse.model.SourceFolder
All Implemented Interfaces:
ClasspathEntry

public class SourceFolder extends AbstractClasspathEntry
SourceFolder.path contains only project relative path.
Since:
1.0
  • Constructor Details

    • SourceFolder

      public SourceFolder(Node node)
      Creates a new SourceFolder.
      Since:
      1.0
    • SourceFolder

      public SourceFolder(String projectRelativePath, String output)
      Creates a new SourceFolder.
      Since:
      1.0
  • Method Details

    • getOutput

      public String getOutput()
      Returns the output.
      Since:
      1.0
    • setOutput

      public void setOutput(String output)
      Sets the output.
      Since:
      1.0
    • getIncludes

      public List<String> getIncludes()
      Returns the includes.
      Since:
      1.0
    • setIncludes

      public void setIncludes(List<String> includes)
      Sets the includes.
      Since:
      1.0
    • getExcludes

      public List<String> getExcludes()
      Returns the excludes.
      Since:
      1.0
    • setExcludes

      public void setExcludes(List<String> excludes)
      Sets the excludes.
      Since:
      1.0
    • getDir

      public File getDir()
      Returns the dir.
      Since:
      1.0
    • setDir

      public void setDir(File dir)
      Sets the dir.
      Since:
      1.0
    • getName

      public String getName()
      Returns the name.
      Since:
      1.0
    • setName

      public void setName(String name)
      Sets the name.
      Since:
      2.7
    • getKind

      public String getKind()
      Description copied from interface: ClasspathEntry
      Returns the kind.
    • getAbsolutePath

      public String getAbsolutePath()
      Returns the absolute path.
      Since:
      1.0
    • trim

      public void trim()
      Trim.
      Since:
      2.7
    • trim

      public void trim(String prefix)
      Trim.
      Since:
      2.7
    • appendNode

      public void appendNode(Node node)
      Description copied from interface: ClasspathEntry
      Append node.
      Specified by:
      appendNode in interface ClasspathEntry
      Overrides:
      appendNode in class AbstractClasspathEntry
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AbstractClasspathEntry
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractClasspathEntry
    • toString

      public String toString()
      Overrides:
      toString in class AbstractClasspathEntry