gradle
8.4

# Package-level declarations

Classes for the model used by the eclipse plugins.

## Types

AbstractClasspathEntry
Link copied to clipboard
abstract class AbstractClasspathEntry : ClasspathEntry
Common superclass for all ClasspathEntry instances.
AbstractLibrary
Link copied to clipboard
abstract class AbstractLibrary : AbstractClasspathEntry
Common superclass for the library elements.
AccessRule
Link copied to clipboard
open class AccessRule
Access rule associated to a classpath entry.
BuildCommand
Link copied to clipboard
open class BuildCommand : Serializable
A build command.
Classpath
Link copied to clipboard
open class Classpath : XmlPersistableConfigurationObject
Represents the customizable elements of an eclipse classpath file.
ClasspathEntry
Link copied to clipboard
interface ClasspathEntry
Represents an entry in the Eclipse classpath.
Container
Link copied to clipboard
open class Container : AbstractClasspathEntry
A container classpath entry.
EclipseClasspath
Link copied to clipboard
abstract class EclipseClasspath
The build path settings for the generated Eclipse project.
EclipseJdt
Link copied to clipboard
abstract class EclipseJdt
Enables fine-tuning jdt details of the Eclipse plugin

    plugins {
        id 'java'
        id 'eclipse'
    }

    eclipse {
      jdt {
        //if you want to alter the java versions (by default they are configured with gradle java plugin settings):
        sourceCompatibility = 1.6
        targetCompatibility = 1.5
        javaRuntimeName = "J2SE-1.5"

        file {
          //whenMerged closure is the highest voodoo
          //and probably should be used only to solve tricky edge cases.
          //the type passed to the closure is Jdt

          //closure executed after jdt file content is loaded from existing file
          //and after gradle build information is merged
          whenMerged { jdt
            //you can tinker with the Jdt here
          }

          //withProperties allows addition of properties not currently
          //modeled by Gradle
          withProperties { properties ->
              //you can tinker with the java.util.Properties here
          }
        }
      }
    }

Content copied to clipboard
EclipseModel
Link copied to clipboard
abstract class EclipseModel
DSL-friendly model of the Eclipse project information.
EclipseProject
Link copied to clipboard
abstract class EclipseProject
Enables fine-tuning project details (.
EclipseWtp
Link copied to clipboard
abstract class EclipseWtp
Enables fine-tuning wtp/wst details of the Eclipse plugin For projects applying the eclipse plugin and either one of the ear or war plugins, this plugin is auto-applied.
EclipseWtpComponent
Link copied to clipboard
abstract class EclipseWtpComponent
Enables fine-tuning wtp component details of the Eclipse plugin Example of use with a blend of all possible properties.
EclipseWtpFacet
Link copied to clipboard
abstract class EclipseWtpFacet
Enables fine-tuning wtp facet details of the Eclipse plugin Advanced configuration closures beforeMerged and whenMerged receive WtpFacet object as parameter.
Facet
Link copied to clipboard
open class Facet
A project facet.
FileReference
Link copied to clipboard
interface FileReference
A reference to a file in eclipse.
Jdt
Link copied to clipboard
open class Jdt : PropertiesPersistableConfigurationObject
Represents the Eclipse JDT settings.
Library
Link copied to clipboard
open class Library : AbstractLibrary
A classpath entry representing a library.
Link
Link copied to clipboard
open class Link
Link.
Output
Link copied to clipboard
open class Output : ClasspathEntry
A classpath entry representing an output folder.
Project
Link copied to clipboard
open class Project : XmlPersistableConfigurationObject
Represents the customizable elements of an eclipse project file.
ProjectDependency
Link copied to clipboard
open class ProjectDependency : AbstractClasspathEntry
A classpath entry representing a project dependency.
ResourceFilter
Link copied to clipboard
interface ResourceFilter
The gradle DSL model of an Eclipse resource filter.
ResourceFilterAppliesTo
Link copied to clipboard
enum ResourceFilterAppliesTo
Specifies the type of resource that the Eclipse ResourceFilter applies to.
ResourceFilterMatcher
Link copied to clipboard
interface ResourceFilterMatcher
The model of an Eclipse resource filter matcher.
ResourceFilterType
Link copied to clipboard
enum ResourceFilterType
Specifies whether an Eclipse ResourceFilter is including or excluding resources.
SourceFolder
Link copied to clipboard
open class SourceFolder : AbstractClasspathEntry
SourceFolder.path contains only project relative path.
UnresolvedLibrary
Link copied to clipboard
open class UnresolvedLibrary : Library
A library that turned out to be unresolved.
Variable
Link copied to clipboard
open class Variable : AbstractLibrary
A variable library entry.
WbDependentModule
Link copied to clipboard
open class WbDependentModule : WbModuleEntry
A wtp descriptor dependent module entry.
WbModuleEntry
Link copied to clipboard
interface WbModuleEntry
Represents an entry in `wb-module`.
WbProperty
Link copied to clipboard
open class WbProperty : WbModuleEntry
A wtp descriptor property entry.
WbResource
Link copied to clipboard
open class WbResource : WbModuleEntry
A wtp descriptor resource entry.
WtpComponent
Link copied to clipboard
open class WtpComponent : XmlPersistableConfigurationObject
Creates the .settings/org.eclipse.wst.common.component file for WTP projects.
WtpFacet
Link copied to clipboard
open class WtpFacet : XmlPersistableConfigurationObject
Creates the .settings/org.eclipse.wst.common.project.facet.core.xml file for WTP projects.