java.lang.Object
de.sormuras.bach.Project
public class Project
extends java.lang.Object
Modular project model.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProject.DeploymentProperties used to upload compiled modules.static classProject.LibraryManage external 3rd-party modules.static classProject.ModuleInfoSource-based module reference.static classProject.ModuleUnitJava module source unit.static classProject.RealmMain- and test realms.static classProject.SourceSingle source path with optional release directive.classProject.TargetCollection of directories and other realm-specific assets.static classProject.ToolArgumentsRealm-specific tool argument collector. -
Field Summary
Fields Modifier and Type Field Description java.nio.file.PathbaseDirectoryBase directory.Project.LibrarylibraryLibrary.java.lang.StringnameName of the project.java.util.List<Project.Realm>realmsRealms.java.nio.file.PathtargetDirectoryTarget directory.java.lang.module.ModuleDescriptor.VersionversionVersion of the project. -
Constructor Summary
Constructors Constructor Description Project(java.nio.file.Path baseDirectory, java.nio.file.Path targetDirectory, java.lang.String name, java.lang.module.ModuleDescriptor.Version version, Project.Library library, java.util.List<Project.Realm> realms) -
Method Summary
Modifier and Type Method Description java.util.List<java.nio.file.Path>modulePaths(Project.Target target, java.nio.file.Path... initialPaths)Compute module path for the passed realm.static Projectof(java.nio.file.Path base)Create default project parsing the passed base directory.Project.Targettarget(Project.Realm realm)
-
Field Details
-
baseDirectory
public final java.nio.file.Path baseDirectoryBase directory. -
targetDirectory
public final java.nio.file.Path targetDirectoryTarget directory. -
name
public final java.lang.String nameName of the project. -
version
public final java.lang.module.ModuleDescriptor.Version versionVersion of the project. -
library
Library. -
realms
Realms.
-
-
Constructor Details
-
Project
public Project(java.nio.file.Path baseDirectory, java.nio.file.Path targetDirectory, java.lang.String name, java.lang.module.ModuleDescriptor.Version version, Project.Library library, java.util.List<Project.Realm> realms)
-
-
Method Details
-
of
Create default project parsing the passed base directory. -
modulePaths
public java.util.List<java.nio.file.Path> modulePaths(Project.Target target, java.nio.file.Path... initialPaths)Compute module path for the passed realm. -
target
-