bee.api
Project
Project()
getRoot()psychopath.Directory
psychopath.Directory |
A root directory of this project. |
Return project root directory.
getGroup()String
String |
The product group. |
Return product group.
getProduct()String
String |
The product name. |
Return product name.
getVersion()String
String |
The product version. |
Return product version.
product(CharSequencegroup, CharSequenceproduct, CharSequenceversion)void
CharSequencegroup, CharSequenceproduct, CharSequenceversion)CharSequencegroup |
A product group. |
CharSequenceproduct |
A product name. |
CharSequenceversion |
A product version. |
Declare product package, name and version.
getDescription()String
String |
The product description. |
Return product description.
describe(Stringdescription)void
Stringdescription)Stringdescription |
A product description. |
Declare product description.
license()License
License |
Returns project license.
license(Licenselicense)void
Licenselicense)Licenselicense |
Set product license.
licenser(intlicensedFrom, StringlicensedBy)void
intlicensedFrom, StringlicensedBy)intlicensedFrom |
|
StringlicensedBy |
Add product licenser.
licenser(intlicensedFrom, intlicensedTo, StringlicensedBy)void
intlicensedFrom, intlicensedTo, StringlicensedBy)intlicensedFrom |
|
intlicensedTo |
|
StringlicensedBy |
Add product licenser.
getEncoding()Charset
Charset |
Returns project encoding.
encoding(Charsetencoding)void
Charsetencoding)Charsetencoding |
Set product encoding.
hasDependency(StringprojectName, StringproductName)boolean
StringprojectName, StringproductName)StringprojectName |
A project name to search. |
StringproductName |
A product name to search. |
boolean |
A search result. |
Check whether this project depends on the specified product or not.
getDependency(Scopescopes)SetLibrary
Scopescopes)LibraryScopescopes |
|
Set |
Resolve all dependencies for the specified scope.
getLibrary(StringprojectName, StringproductName)SetLibrary
StringprojectName, StringproductName)LibraryStringprojectName |
|
StringproductName |
|
Set |
Find Library by name.
getLibrary(StringprojectName, StringproductName, Stringversion)SetLibrary
StringprojectName, StringproductName, Stringversion)LibraryStringprojectName |
|
StringproductName |
|
Stringversion |
|
Set |
Find Library by name.
getClasspath()SetString
StringSet |
Gather all classpaths needed to run this project.
requireLombok()Library
Library |
Declare dependency against to Lombok library.
require(StringprojectName, StringproductName)Library
StringprojectName, StringproductName)StringprojectName |
A project name. |
StringproductName |
A product name. |
Library |
A dependency. |
Declare dependency for latest version.
require(StringprojectName, StringproductName, Stringversion)Library
StringprojectName, StringproductName, Stringversion)StringprojectName |
A project name. |
StringproductName |
A product name. |
Stringversion |
A product version. |
Library |
A dependency. |
Declare dependency.
require(StringprojectName, StringproductName, Stringclassifier, Stringversion)Library
StringprojectName, StringproductName, Stringclassifier, Stringversion)StringprojectName |
A project name. |
StringproductName |
A product name. |
Stringclassifier |
A product classifier. |
Stringversion |
A product version. |
Library |
A dependency. |
Declare dependency.
getJavaSourceVersion()SourceVersion
SourceVersion |
A Java version requirement. |
Returns Java version requirement.
getJavaRequiredVersion()SourceVersion
SourceVersion |
A Java version requirement. |
Returns Java version requirement.
require(SourceVersionversion)void
SourceVersionversion)SourceVersionversion |
A Java version to require. |
Declare Java version requirement.
require(SourceVersionsourceVersion, SourceVersionrequiredJavaVersion)void
SourceVersionsourceVersion, SourceVersionrequiredJavaVersion)SourceVersionsourceVersion |
A Java source version to require. |
SourceVersionrequiredJavaVersion |
A Java target version to require. |
Declare Java version requirement.
unrequire(StringprojectName, StringproductName)void
StringprojectName, StringproductName)StringprojectName |
A project name. |
StringproductName |
A product name. |
Exclude the specified library from transitive dependency resolution.
repository(Stringuri)void
Stringuri)Stringuri |
Add new repository by URI.
getInput()psychopath.Directory
psychopath.Directory |
The base input directory. |
Get the bese directory of input.
setInput(psychopath.Directoryinput)void
psychopath.Directoryinput)psychopath.Directoryinput |
The base input directory to set. |
Set base directory of input. null will set default directory. A relative path
will be resolved from project root directory.
setInput(Stringinput)void
Stringinput)Stringinput |
The base input directory to set. |
Set base directory of input. null will set default directory. A relative path
will be resolved from project root directory.
getOutput()psychopath.Directory
psychopath.Directory |
The base output directory. |
Get the bese directory of output.
setOutput(psychopath.Directoryoutput)void
psychopath.Directoryoutput)psychopath.Directoryoutput |
The base output directory to set. |
Set base directory of output. null will set default directory. A relative path
will be resolved from project root directory.
setOutput(Stringoutput)void
Stringoutput)Stringoutput |
The base output directory to set. |
Set base directory of output. null will set default directory. A relative path
will be resolved from project root directory.
getSources()psychopath.Directory
psychopath.Directory |
Returns source directories.
getSourceSet()kiss.Signalpsychopath.Directory
psychopath.Directorykiss.Signal |
Returns source directories.
getClasses()psychopath.Directory
psychopath.Directory |
Returns class directory.
getTestSources()psychopath.Directory
psychopath.Directory |
Returns test source directories.
getTestSourceSet()kiss.Signalpsychopath.Directory
psychopath.Directorykiss.Signal |
Returns test source directories.
getTestClasses()psychopath.Directory
psychopath.Directory |
Returns test class directory.
getProjectSources()psychopath.Directory
psychopath.Directory |
Returns project source directories.
getProjectSourceSet()kiss.Signalpsychopath.Directory
psychopath.Directorykiss.Signal |
Returns project source directories.
getProjectClasses()psychopath.Directory
psychopath.Directory |
Returns project class directory.
getProjectDefinition()psychopath.File
psychopath.File |
Returns project source file.
getProjectDefintionClass()psychopath.File
psychopath.File |
Returns project source file.
getAnnotationProcessors()Setpsychopath.Location
psychopath.LocationSet |
Resolve all annotation processor for this project.
locateJar()psychopath.File
psychopath.File |
Locate product jar file.
locateSourceJar()psychopath.File
psychopath.File |
Locate product source jar file.
locateJavadocJar()psychopath.File
psychopath.File |
Locate product javadoc jar file.
getVersionControlSystem()VCS
VCS |
A uri of version control system. |
Get the VCS.
versionControlSystem(Stringuri)void
Stringuri)Stringuri |
A uri of version control system. |
Locate VCS.
config(ClassTtask, ConsumerCconfiguration)void
ClassTtask, ConsumerCconfiguration)T |
|
C |
|
Classtask |
|
Consumerconfiguration |
config(ClassTtask)C
ClassTtask)T |
|
C |
|
Classtask |
|
C |
asLibrary()Library
Library |
Convert this project to Library.
associate(ClassAtype)A
ClassAtype)A |
|
Classtype |
|
A |
Retrieve the project related object of the specified type.
hashCode()int
int |
equals(Objectobj)boolean
Objectobj)Objectobj |
|
boolean |
toBeeDefinition()ListString
StringList |
Returns literal project definition.
toMavenDefinition()String
String |
Returns literal of POM file.
ref(Stringfile)CharSequence
Stringfile)Stringfile |
A path to the target text file. |
CharSequence |
A file contents. |
Return the reference of the specified file's text.
ref(Pathfile)CharSequence
Pathfile)Pathfile |
A target text file. |
CharSequence |
A file contents. |
Return the reference of the specified file's text.
ref(psychopath.Filefile)CharSequence
psychopath.Filefile)psychopath.Filefile |
A target text file. |
CharSequence |
A file contents. |
Return the reference of the specified file's text.