public final class JkPluginEclipse extends JkPlugin
Modifier and Type | Field and Description |
---|---|
java.lang.String |
jreContainer
If not null, this value will be used as the JRE container path when generating .classpath file.
|
boolean |
useVarPath
Flag to set whether 'all' task should use absolute paths instead of classpath variables
|
MANIFEST_BREAKING_CHANGE_URL_ENTRY, MANIFEST_LOWEST_JEKA_COMPATIBLE_VERSION_ENTRY
Modifier | Constructor and Description |
---|---|
protected |
JkPluginEclipse(JkClass run) |
Modifier and Type | Method and Description |
---|---|
JkPluginEclipse |
addAccessRule(JkDependency dependency,
java.lang.String kind,
java.lang.String pattern)
For the specified dependency, specify a child accessrule tag to add to the mapping classpathentry tag.
|
JkPluginEclipse |
addAttribute(JkDependency dependency,
java.lang.String name,
java.lang.String value)
For the specified dependency, specify a child attribute tag to add to the mapping classpathentry tag.
|
protected void |
afterSetup()
Override this method to perform some actions, once the plugin has been setup by
JkClass.setup() method. |
void |
all() |
void |
files() |
void |
setStandardJREContainer(java.lang.String jreName)
Set the JRE container to the Eclipse Standard VM type with the desired name.
|
beforeSetup, getJkClass, help, name, toString
public java.lang.String jreContainer
public boolean useVarPath
protected JkPluginEclipse(JkClass run)
public void setStandardJREContainer(java.lang.String jreName)
protected void afterSetup()
JkPlugin
JkClass.setup()
method.
Typically, some plugins have to configure other ones (For instance, java plugin configures
scaffold plugin to instruct what to use as a template build class). Those kind of
configuration is better done here as the setup made in JkClass
is likely
to impact the result of the configuration.
afterSetup
in class JkPlugin
public void files()
public void all()
public JkPluginEclipse addAttribute(JkDependency dependency, java.lang.String name, java.lang.String value)
dependency
- The dependency paired to the classpathentry we want generate `JkModuleDependency
or a
JkFileSystemDependency
.
If it is a module dependency, it can be a direct or transitive dependency and only group:name
is relevant.public JkPluginEclipse addAccessRule(JkDependency dependency, java.lang.String kind, java.lang.String pattern)
dependency
- The dependency paired to the classpathentry we want generate `JkModuleDependency
or a
JkFileSystemDependency
.
If it is a module dependency, it can be a direct or transitive dependency and only group:name
is relevant.