public final class JkEclipseClasspathGenerator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
JkEclipseClasspathGenerator |
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.
|
JkEclipseClasspathGenerator |
addAccessRules(JkDependency dependency,
java.util.Properties rules) |
JkEclipseClasspathGenerator |
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.
|
JkEclipseClasspathGenerator |
addAttributes(JkDependency dependency,
java.util.Properties attributes) |
java.lang.String |
generate()
Generate the .classpath file
|
static JkEclipseClasspathGenerator |
of(JkIdeSupport ideSupport)
Constructs a
JkEclipseClasspathGenerator . |
JkEclipseClasspathGenerator |
setDefDependencies(JkDependencyResolver buildDependencyResolver,
JkDependencySet buildDependencies)
If the build script depends on external libraries, you must set the resolver of these dependencies here.
|
JkEclipseClasspathGenerator |
setImportedProjects(java.util.List<java.nio.file.Path> importedBuildProjects)
If the build script depends on build script located in another projects, you must add those projects here.
|
JkEclipseClasspathGenerator |
setIncludeJavadoc(boolean includeJavadoc)
Set if generated .classpath file should contain javadoc link for libraries.
|
JkEclipseClasspathGenerator |
setJreContainer(java.lang.String jreContainer)
Specifies the exact string to use as jre container.
|
JkEclipseClasspathGenerator |
setUsePathVariables(boolean usePathVariables)
If
true dependencies path will use JEKA_HOME and JEKA_REPO classpath variable instead of absolute paths. |
public static JkEclipseClasspathGenerator of(JkIdeSupport ideSupport)
JkEclipseClasspathGenerator
.public JkEclipseClasspathGenerator setIncludeJavadoc(boolean includeJavadoc)
public JkEclipseClasspathGenerator setJreContainer(java.lang.String jreContainer)
public JkEclipseClasspathGenerator setUsePathVariables(boolean usePathVariables)
true
dependencies path will use JEKA_HOME and JEKA_REPO classpath variable instead of absolute paths.public JkEclipseClasspathGenerator setImportedProjects(java.util.List<java.nio.file.Path> importedBuildProjects)
public JkEclipseClasspathGenerator setDefDependencies(JkDependencyResolver buildDependencyResolver, JkDependencySet buildDependencies)
public JkEclipseClasspathGenerator addAttribute(JkDependency dependency, java.lang.String name, java.lang.String value)
dependency
- The dependency paired to the classpathentry we want to generate `dev.jeka.core.api.depmanagement.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 JkEclipseClasspathGenerator addAttributes(JkDependency dependency, java.util.Properties attributes)
public JkEclipseClasspathGenerator addAccessRule(JkDependency dependency, java.lang.String kind, java.lang.String pattern)
dependency
- The dependency paired to the classpathentry we want to generate `dev.jeka.core.api.depmanagement.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 JkEclipseClasspathGenerator addAccessRules(JkDependency dependency, java.util.Properties rules)
public java.lang.String generate()