mill.eclipse

package mill.eclipse

Members list

Type members

Classlikes

final case class EclipseJdtProject(projectName: String, javaSourceVersion: String, javaTargetVersion: String, linkedResources: Seq[LinkedResource], sourceFolders: Seq[SourceFolder], dependentProjectPaths: Seq[Path], dependentLibraries: Seq[Library])

The object contains the necessary information required to create all Eclipse JDT files for a specific project.

The object contains the necessary information required to create all Eclipse JDT files for a specific project.

Value parameters

dependentLibraries

used for creating the ".classpath" file

dependentProjectPaths

used for creating the ".classpath" file

javaSourceVersion

used for creating the Eclipse JDT related preferences

javaTargetVersion

used for the launcher and creating the Eclipse JDT related preference

linkedResources

will include source folders outside of the project directory

projectName

used for creating the ".project" file

sourceFolders

used for creating the ".classpath" file

Attributes

Source
EclipseJdtProject.scala
Supertypes
trait Serializable
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Source
EclipseJdtUtils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class GenEclipseImpl(evaluators: Seq[EvaluatorApi])

This generates Eclipse and Eclipse JDT project files for Java - Scala, Kotlin not supported!

This generates Eclipse and Eclipse JDT project files for Java - Scala, Kotlin not supported!

This includes the following files per project:

For more information as well as limited references for the file format, see the latest Eclipse IDE documentation.

This can be improved in the future for finding the project Java source and target version by looking at JavaModuleApi.javacOptions for the "-source" and "-target" flags! This is not yet implemented and relies on the Java Runtime version of the Mill process due to the fact that the Mill Modules are aggregated as much as possible for generating Eclipse JDT Projects!

Attributes

Companion
object
Source
GenEclipseImpl.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
GenEclipseImpl.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final case class Library(jarPath: Path, sourcesJarPath: Path | Null, javadocJarPath: Path | Null)

This contains the information about a Mill Module library. As this not necessarily has to be a Jar archive and if it is, there is no garantee that a sources or Javadoc Jar archive exists.

This contains the information about a Mill Module library. As this not necessarily has to be a Jar archive and if it is, there is no garantee that a sources or Javadoc Jar archive exists.

Value parameters

jarPath

path to the main library (most likely a Jar archive)

javadocJarPath

(optional) path to Javadoc archive

sourcesJarPath

(optional) path to sources archive

Attributes

Source
EclipseJdtProject.scala
Supertypes
trait Serializable
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class LinkedResource(absolutePath: Path, name: String)

For source folders outside of the Eclipse JDT Project directory we have to create a linked resource that will be in turn be used in the ".classpath" file via its name.

For source folders outside of the Eclipse JDT Project directory we have to create a linked resource that will be in turn be used in the ".classpath" file via its name.

Value parameters

absolutePath

to the linked resources

name

of the linked resource (by default the folder name) used for the classpath entry

Attributes

See also
Source
EclipseJdtProject.scala
Supertypes
trait Serializable
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class SourceFolder(relativePath: String, var isTest: Boolean)

This contains the information about a source folder for the Eclipse JDT Project. We eequire this information for constructing the ".classpath" information with the correct output directories.

This contains the information about a source folder for the Eclipse JDT Project. We eequire this information for constructing the ".classpath" information with the correct output directories.

Value parameters

isTest

whether this contains test code or nor

relativePath

to the source folder

Attributes

Source
EclipseJdtProject.scala
Supertypes
trait Serializable
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all