public class OomphIdeExtension extends Object implements P2Declarative
DSL for OomphIdePlugin
.
Constructor and Description |
---|
OomphIdeExtension(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
addAllProjects()
Adds all eclipse projects from all gradle projects.
|
void |
addAllProjects(Spec<String> include)
Adds all eclipse projects from all gradle projects whose paths meet the given spec.
|
void |
addBuildSrc()
Adds the buildSrc folder as an eclipse project.
|
void |
addIncludedProject(String includedBuild,
String projectPath)
Adds an eclipse project from the given included build.
|
void |
addProject(String projectPath)
Adds the eclipse project from the given project path.
|
void |
addProjectFolder(Object folderObj)
Adds the given folder as an eclipse project.
|
void |
addSetupAction(SetupAction internalSetupAction)
Adds an action which will be run inside our running application.
|
void |
addSetupActionLazy(Action<List<SetupAction>> lazyInternalSetupAction)
Eventually adds some actions which will be run inside our running application.
|
void |
description(String description)
Sets the description of the generated IDE.
|
void |
eclipseIni(Action<EclipseIni> eclipseIni)
Sets properties in the
eclipse.ini . |
void |
findProjectsInIncludedBuilds()
Finds projects in the included builds.
|
void |
findProjectsInIncludedBuilds(Spec<String> spec) |
P2Model |
getP2()
Returns the P2 model so that users can add the features they’d like.
|
Project |
getProject()
Returns the underlying project.
|
void |
icon(Object icon)
Sets the icon image - any size and format is okay, but something square is recommended.
|
void |
ideDir(Object ideDir)
Sets the folder where the ide will be built.
|
void |
jdt(Action<ConventionJdt> action)
Adds the java development tools, @see ConventionJdt.
|
void |
linkedResource(String linkName,
Object linkTarget)
Links the given target into the workspace with the given name, see eclipse manual.
|
void |
name(String name)
Sets the name of the generated IDE.
|
void |
p2director(Action<P2Model.DirectorApp> directorModifier)
Allows for fine-grained manipulation of the mirroring operation.
|
void |
pde(Action<ConventionPde> action)
Adds the plugin-development environment, @see ConventionPde.
|
void |
perspective(String perspective)
Sets the starting perspective (window layout), see
Perspectives for common perspectives. |
void |
runP2Using(Action<P2Model.DirectorApp> runUsing)
Defaults to
P2Model.DirectorApp.runUsingBootstrapper() - this allows you to override that behavior. |
void |
runP2UsingPDE()
Provisions using the latest available version of the full Eclipse PDE.
|
void |
runP2UsingPDE(String version)
Provisions using the given version of the full Eclipse PDE.
|
void |
splash(Object splash)
Sets the splash screen image - any size and format is okay.
|
void |
style(Action<ConventionStyle> action)
Convenience methods for setting the style, @see ConventionStyle.
|
void |
thirdParty(Action<ConventionThirdParty> action)
Adds third-party tools, @see ConventionThirdParty.
|
void |
workspaceFile(String destination,
Object fileSrc)
Sets the given path within the workspace directory to be a copy of the file located at fileSrc.
|
void |
workspaceProp(String destination,
Action<Map<String,String>> configSupplier)
Sets the given path within the workspace directory to be a property file.
|
void |
workspaceXml(String destination,
Action<XmlProvider> xmlSupplier)
Modifies the xml that was written in a previous call to
workspaceFile(String, Object) or
workspaceXml(String, Action) . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, artifactRepo, artifactRepo, feature, feature, iu, iu, metadataRepo, metadataRepo, populate, repo, repo, repoEclipse, repoEclipseLatest, slicingOption
public static final String NAME
public OomphIdeExtension(Project project) throws IOException
IOException
public Project getProject()
Returns the underlying project.
public P2Model getP2()
Returns the P2 model so that users can add the features they’d like.
getP2
in interface P2Declarative
public void p2director(Action<P2Model.DirectorApp> directorModifier)
Allows for fine-grained manipulation of the mirroring operation.
public void icon(Object icon)
Sets the icon image - any size and format is okay, but something square is recommended.
public void splash(Object splash)
Sets the splash screen image - any size and format is okay.
public void name(String name)
Sets the name of the generated IDE. Defaults to the name of the root project.
public void description(String description)
Sets the description of the generated IDE. Defaults to name.
public void perspective(String perspective)
Sets the starting perspective (window layout), see Perspectives
for common perspectives.
public void eclipseIni(Action<EclipseIni> eclipseIni)
Sets properties in the eclipse.ini
.
public void ideDir(Object ideDir)
Sets the folder where the ide will be built.
public void addAllProjects()
Adds all eclipse projects from all gradle projects.
public void addAllProjects(Spec<String> include)
Adds all eclipse projects from all gradle projects whose paths meet the given spec.
public void findProjectsInIncludedBuilds(Spec<String> spec)
OomphIdeExtension#findProjectsInIncludedBuilds(), passes include
public void findProjectsInIncludedBuilds()
Finds projects in the included builds. You have to run gradlew eclipse
before running gradle ide
for this to work, because
it relies on pre-existing .project
files to determine the paths to subprojects.
Supports root projects and subprojects, but not subsubprojects.
public void addIncludedProject(String includedBuild, String projectPath)
Adds an eclipse project from the given included build.
public void addProject(String projectPath)
Adds the eclipse project from the given project path.
public void addProjectFolder(Object folderObj)
Adds the given folder as an eclipse project.
public void addBuildSrc()
Adds the buildSrc folder as an eclipse project.
It’s recommended that you add this snippet to your buildSrc, to ensure that your eclipse project stays up-to-date.
apply plugin: 'eclipse'
build.dependsOn(tasks.getByName('eclipse'))
public void workspaceFile(String destination, Object fileSrc)
Sets the given path within the workspace directory to be a copy of the file located at fileSrc.
public void workspaceProp(String destination, Action<Map<String,String>> configSupplier)
Sets the given path within the workspace directory to be a property file. If a property file was already
written by a previous call to workspaceFile(String, Object)
or workspaceProp(String, Action)
,
then it can be modified by this action.
public void workspaceXml(String destination, Action<XmlProvider> xmlSupplier)
Modifies the xml that was written in a previous call to workspaceFile(String, Object)
or
workspaceXml(String, Action)
. However,
public void addSetupAction(SetupAction internalSetupAction)
Adds an action which will be run inside our running application.
public void addSetupActionLazy(Action<List<SetupAction>> lazyInternalSetupAction)
Eventually adds some actions which will be run inside our running application.
public void linkedResource(String linkName, Object linkTarget)
Links the given target into the workspace with the given name, see eclipse manual.
public void runP2Using(Action<P2Model.DirectorApp> runUsing)
Defaults to P2Model.DirectorApp.runUsingBootstrapper()
- this allows you to override that behavior.
public void runP2UsingPDE(String version)
Provisions using the given version of the full Eclipse PDE.
public void runP2UsingPDE()
Provisions using the latest available version of the full Eclipse PDE.
public void style(Action<ConventionStyle> action)
Convenience methods for setting the style, @see ConventionStyle.
public void jdt(Action<ConventionJdt> action)
Adds the java development tools, @see ConventionJdt.
public void pde(Action<ConventionPde> action)
Adds the plugin-development environment, @see ConventionPde.
public void thirdParty(Action<ConventionThirdParty> action)
Adds third-party tools, @see ConventionThirdParty.