Package rife.bld

Class BaseProject

Direct Known Subclasses:
Project

public class BaseProject extends BuildExecutor
Provides the base configuration and commands of a Java project for the build system.
Since:
1.5.20
  • Field Details

    • workDirectory

      protected File workDirectory
      The work directory of the project.
      Since:
      1.5
      See Also:
    • pkg

      protected String pkg
      The project's package.
      Since:
      1.5
      See Also:
    • name

      protected String name
      The project's name.
      Since:
      1.5
      See Also:
    • version

      protected VersionNumber version
      The project's version.
      Since:
      1.5
      See Also:
    • mainClass

      protected String mainClass
      The project's main class.
      Since:
      1.5
      See Also:
    • repositories

      protected List<Repository> repositories
      The project's repositories for dependency resolution.
      Since:
      1.5
      See Also:
    • dependencies

      protected DependencyScopes dependencies
      The project's dependencies.
      Since:
      1.5
      See Also:
    • javaRelease

      protected Integer javaRelease
      The project's Java release version for compilation.
      Since:
      1.5.6
      See Also:
    • javaTool

      protected String javaTool
      The tool that is used for running the java main class.
      Since:
      1.5
      See Also:
    • archiveBaseName

      protected String archiveBaseName
      The base name that is used for creating archives.
      Since:
      1.5
      See Also:
    • jarFileName

      protected String jarFileName
      The filename to use for the main jar archive creation.
      Since:
      1.5
      See Also:
    • sourcesJarFileName

      protected String sourcesJarFileName
      The filename to use for the sources jar archive creation.
      Since:
      1.5.10
      See Also:
    • javadocJarFileName

      protected String javadocJarFileName
      The filename to use for the javadoc jar archive creation.
      Since:
      1.5.10
      See Also:
    • uberJarFileName

      protected String uberJarFileName
      The filename to use for the uber jar archive creation.
      Since:
      1.5
      See Also:
    • uberJarMainClass

      protected String uberJarMainClass
      The main class to run the UberJar with.
      Since:
      1.5
      See Also:
    • autoDownloadPurge

      protected Boolean autoDownloadPurge
      Indicates whether dependencies should be automatically downloaded and purged when changes are detected.
      Since:
      1.5.16
      See Also:
    • downloadSources

      protected Boolean downloadSources
      Indicates whether sources should be downloaded for the dependencies.
      Since:
      1.5.6
      See Also:
    • downloadJavadoc

      protected Boolean downloadJavadoc
      Indicates whether javadocs should be downloaded for the dependencies.
      Since:
      1.5.6
      See Also:
    • srcDirectory

      protected File srcDirectory
      The source code directory.
      Since:
      1.5
      See Also:
    • srcBldDirectory

      protected File srcBldDirectory
      The bld source code directory.
      Since:
      1.5
      See Also:
    • srcBldJavaDirectory

      protected File srcBldJavaDirectory
      The bld java source code directory.
      Since:
      1.5
      See Also:
    • srcBldResourcesDirectory

      protected File srcBldResourcesDirectory
      The bld resources source code directory.
      Since:
      1.5.6
      See Also:
    • srcMainDirectory

      protected File srcMainDirectory
      The main source code directory.
      Since:
      1.5
      See Also:
    • srcMainJavaDirectory

      protected File srcMainJavaDirectory
      The main java source code directory.
      Since:
      1.5
      See Also:
    • srcMainResourcesDirectory

      protected File srcMainResourcesDirectory
      The main resources source code directory.
      Since:
      1.5
      See Also:
    • srcMainResourcesTemplatesDirectory

      protected File srcMainResourcesTemplatesDirectory
      The main template resources source code directory.
      Since:
      1.5
      See Also:
    • srcTestDirectory

      protected File srcTestDirectory
      The test source code directory.
      Since:
      1.5
      See Also:
    • srcTestJavaDirectory

      protected File srcTestJavaDirectory
      The test java source code directory.
      Since:
      1.5
      See Also:
    • srcTestResourcesDirectory

      protected File srcTestResourcesDirectory
      The test resources source code directory.
      Since:
      1.5.18
      See Also:
    • libDirectory

      protected File libDirectory
      The lib directory.
      Since:
      1.5
      See Also:
    • libCompileDirectory

      protected File libCompileDirectory
      The compile scope lib directory.
      Since:
      1.5
      See Also:
    • libProvidedDirectory

      protected File libProvidedDirectory
      The provided scope lib directory.
      Since:
      1.8
      See Also:
    • libRuntimeDirectory

      protected File libRuntimeDirectory
      The runtime scope lib directory.
      Since:
      1.5
      See Also:
    • libStandaloneDirectory

      protected File libStandaloneDirectory
      The standalone scope lib directory.
      Since:
      1.5
      See Also:
    • libTestDirectory

      protected File libTestDirectory
      The standalone scope lib directory.
      Since:
      1.5
      See Also:
    • buildDirectory

      protected File buildDirectory
      The build directory.
      Since:
      1.5
      See Also:
    • buildBldDirectory

      protected File buildBldDirectory
      The bld build directory.
      Since:
      1.5
      See Also:
    • buildDistDirectory

      protected File buildDistDirectory
      The dist build directory.
      Since:
      1.5
      See Also:
    • buildJavadocDirectory

      protected File buildJavadocDirectory
      The javadoc build directory.
      Since:
      1.5.10
      See Also:
    • buildMainDirectory

      protected File buildMainDirectory
      The main build directory.
      Since:
      1.5
      See Also:
    • buildTemplatesDirectory

      protected File buildTemplatesDirectory
      The templates build directory.
      Since:
      1.5
      See Also:
    • buildTestDirectory

      protected File buildTestDirectory
      The test build directory.
      Since:
      1.5
      See Also:
  • Constructor Details

    • BaseProject

      public BaseProject()
  • Method Details

    • artifactRetriever

      public ArtifactRetriever artifactRetriever()
      Returns the artifact retriever that is used.
      Returns:
      the artifact retriever
      Since:
      1.5.21
    • cleanOperation

      public CleanOperation cleanOperation()
      Retrieves the project's default clean operation.
      Returns:
      the default clean operation instance
      Since:
      1.5.18
    • compileOperation

      public CompileOperation compileOperation()
      Retrieves the project's default compile operation.
      Returns:
      the default compile operation instance
      Since:
      1.5.18
    • dependencyTreeOperation

      public DependencyTreeOperation dependencyTreeOperation()
      Retrieves the project's default dependency tree operation.
      Returns:
      the default dependency tree operation instance
      Since:
      1.5.21
    • downloadOperation

      public DownloadOperation downloadOperation()
      Retrieves the project's default download operation.
      Returns:
      the default download operation instance
      Since:
      1.5.18
    • publishOperation

      public PublishOperation publishOperation()
      Retrieves the project's default publish operation.
      Returns:
      the default publish operation instance
      Since:
      1.5.18
    • purgeOperation

      public PurgeOperation purgeOperation()
      Retrieves the project's default purge operation.
      Returns:
      the default purge operation instance
      Since:
      1.5.18
    • runOperation

      public RunOperation runOperation()
      Retrieves the project's default run operation.
      Returns:
      the default run operation instance
      Since:
      1.5.18
    • testOperation

      public TestOperation<?,?> testOperation()
      Retrieves the project's default test operation.
      Returns:
      the default test operation instance
      Since:
      1.5.18
    • updatesOperation

      public UpdatesOperation updatesOperation()
      Retrieves the project's default updates operation.
      Returns:
      the default updates operation instance
      Since:
      1.5.18
    • versionOperation

      public VersionOperation versionOperation()
      Retrieves the project's default version operation.
      Returns:
      the default version operation instance
      Since:
      1.5.18
    • clean

      @BuildCommand(help=CleanHelp.class) public void clean() throws Exception
      Standard build command, cleans the build files.
      Throws:
      Exception
      Since:
      1.5
    • compile

      @BuildCommand(help=CompileHelp.class) public void compile() throws Exception
      Standard build command, compiles the project.
      Throws:
      Exception
      Since:
      1.5
    • dependencyTree

      @BuildCommand(value="dependency-tree", help=DependencyTreeHelp.class) public void dependencyTree() throws Exception
      Standard build command, output the dependency tree.
      Throws:
      Exception
      Since:
      1.5.21
    • download

      @BuildCommand(help=DownloadHelp.class) public void download() throws Exception
      Standard build command, downloads all dependencies of the project.
      Throws:
      Exception
      Since:
      1.5
    • purge

      @BuildCommand(help=PurgeHelp.class) public void purge() throws Exception
      Standard build command, purges all unused artifacts from the project.
      Throws:
      Exception
      Since:
      1.5
    • run

      @BuildCommand(help=RunHelp.class) public void run() throws Exception
      Standard build command, runs the project.
      Throws:
      Exception
      Since:
      1.5
    • test

      @BuildCommand(help=TestHelp.class) public void test() throws Exception
      Standard build command, tests the project.
      Throws:
      Exception
      Since:
      1.5
    • printVersion

      @BuildCommand(value="version", help=VersionHelp.class) public void printVersion() throws Exception
      Standard build command, outputs the version of the build system.
      Throws:
      Exception
      Since:
      1.5.2
    • updates

      @BuildCommand(help=UpdatesHelp.class) public void updates() throws Exception
      Standard build command, checks for updates of the project dependencies.
      Throws:
      Exception
      Since:
      1.5
    • useRife2Agent

      public void useRife2Agent(VersionNumber version)
      Includes the RIFE2 instrumentation agent as a runtime dependency, and activates it for run and test commands.
      Parameters:
      version - the version of the instrumentation agent to use
      Since:
      1.5.5
    • usesRife2Agent

      public boolean usesRife2Agent()
      Indicates whether the RIFE2 instrumentation agent should be used.
      Returns:
      true if the RIFE2 instrumentation agent should be used; or false otherwise
      Since:
      1.5.18
    • getRife2AgentFile

      public File getRife2AgentFile()
      Returns the jar file of the RIFE2 instrumentation agent that should be used.
      Returns:
      the jar file of the RIFE2 instrumentation agent; or null if no agent should be used
      Since:
      1.5.18
    • repository

      public Repository repository(String locationOrName)
      Creates a new repository instance.

      Instead of providing the repository location, it's also possible to provide a name that will be used to look up the repository credentials in the hierarchical properties.

      For instance, using the name myrepo will look for the following properties:
      bld.repo.myrepo
      bld.repo.myrepo.username (optional)
      bld.repo.myrepo.password (optional)

      Parameters:
      locationOrName - the repository location or name
      Returns:
      a newly created Repository instance
      Since:
      1.5.6
    • repository

      public Repository repository(String location, String username, String password)
      Creates a new repository instance with basic username and password authentication.
      Parameters:
      location - the repository location
      username - the repository username
      password - the repository password
      Returns:
      a newly created Repository instance
      Since:
      1.5.7
    • version

      public VersionNumber version(int major)
      Creates a new version instance.
      Parameters:
      major - the major component of the version number
      Returns:
      a newly created VersionNumber instance
      Since:
      1.5
    • version

      public VersionNumber version(int major, int minor)
      Creates a new version instance.
      Parameters:
      major - the major component of the version number
      minor - the minor component of the version number
      Returns:
      a newly created VersionNumber instance
      Since:
      1.5
    • version

      public VersionNumber version(int major, int minor, int revision)
      Creates a new version instance.
      Parameters:
      major - the major component of the version number
      minor - the minor component of the version number
      revision - the revision component of the version number
      Returns:
      a newly created VersionNumber instance
      Since:
      1.5
    • version

      public VersionNumber version(int major, int minor, int revision, String qualifier)
      Creates a new version instance.
      Parameters:
      major - the major component of the version number
      minor - the minor component of the version number
      revision - the revision component of the version number
      qualifier - the qualifier component of the version number
      Returns:
      a newly created VersionNumber instance
      Since:
      1.5
    • version

      public VersionNumber version(String description)
      Creates a new version instance.
      Parameters:
      description - the textual description of the version number
      Returns:
      a newly created VersionNumber instance; or VersionNumber.UNKNOWN if the description couldn't be parsed
      Since:
      1.5
    • snapshot

      public VersionNumber snapshot(int major)
      Creates a new snapshot version instance.
      Parameters:
      major - the major component of the snapshot version number
      Returns:
      a newly created snapshot VersionNumber instance
      Since:
      1.7.4
    • snapshot

      public VersionNumber snapshot(int major, int minor)
      Creates a new snapshot version instance.
      Parameters:
      major - the major component of the snapshot version number
      minor - the minor component of the snapshot version number
      Returns:
      a newly created snapshot VersionNumber instance
      Since:
      1.7.4
    • snapshot

      public VersionNumber snapshot(int major, int minor, int revision)
      Creates a new snapshot version instance.
      Parameters:
      major - the major component of the snapshot version number
      minor - the minor component of the snapshot version number
      revision - the revision component of the snapshot version number
      Returns:
      a newly created snapshot VersionNumber instance
      Since:
      1.7.4
    • scope

      public DependencySet scope(Scope scope)
      Retrieves the dependency set for a particular scope, initializing it if it doesn't exist yet.
      Parameters:
      scope - the scope to retrieve dependencies for
      Returns:
      the scope's dependency set
      Since:
      1.5
    • dependency

      public Dependency dependency(String groupId, String artifactId)
      Creates a new dependency instance.
      Parameters:
      groupId - the dependency group identifier
      artifactId - the dependency artifact identifier
      Returns:
      a newly created Dependency instance
      Since:
      1.5
    • dependency

      public Dependency dependency(String groupId, String artifactId, String version)
      Creates a new dependency instance.
      Parameters:
      groupId - the dependency group identifier
      artifactId - the dependency artifact identifier
      version - the dependency version
      Returns:
      a newly created Dependency instance
      Since:
      1.5.16
    • dependency

      public Dependency dependency(String groupId, String artifactId, String version, String classifier)
      Creates a new dependency instance.
      Parameters:
      groupId - the dependency group identifier
      artifactId - the dependency artifact identifier
      version - the dependency version
      classifier - the dependency classifier
      Returns:
      a newly created Dependency instance
      Since:
      1.5.16
    • dependency

      public Dependency dependency(String groupId, String artifactId, String version, String classifier, String type)
      Creates a new dependency instance.
      Parameters:
      groupId - the dependency group identifier
      artifactId - the dependency artifact identifier
      version - the dependency version
      classifier - the dependency classifier
      type - the dependency type
      Returns:
      a newly created Dependency instance
      Since:
      1.5.16
    • dependency

      public Dependency dependency(String groupId, String artifactId, VersionNumber version)
      Creates a new dependency instance.
      Parameters:
      groupId - the dependency group identifier
      artifactId - the dependency artifact identifier
      version - the dependency version
      Returns:
      a newly created Dependency instance
      Since:
      1.5
    • dependency

      public Dependency dependency(String groupId, String artifactId, VersionNumber version, String classifier)
      Creates a new dependency instance.
      Parameters:
      groupId - the dependency group identifier
      artifactId - the dependency artifact identifier
      version - the dependency version
      classifier - the dependency classifier
      Returns:
      a newly created Dependency instance
      Since:
      1.5
    • dependency

      public Dependency dependency(String groupId, String artifactId, VersionNumber version, String classifier, String type)
      Creates a new dependency instance.
      Parameters:
      groupId - the dependency group identifier
      artifactId - the dependency artifact identifier
      version - the dependency version
      classifier - the dependency classifier
      type - the dependency type
      Returns:
      a newly created Dependency instance
      Since:
      1.5
    • dependency

      public Dependency dependency(String description)
      Creates a new dependency instance from a string representation. The format is groupId:artifactId:version:classifier@type. The version, classifier and type are optional.

      If the string can't be successfully parsed, null will be returned.

      Parameters:
      description - the dependency string to parse
      Returns:
      a parsed instance of Dependency; or null when the string couldn't be parsed
      Since:
      1.5.2
    • local

      public LocalDependency local(String path)
      Creates a local dependency instance.

      If the local dependency points to a directory, it will be scanned for jar files.

      Parameters:
      path - the file system path of the local dependency
      Since:
      1.5.2
    • workDirectory

      public File workDirectory()
      Returns the work directory of the project. Defaults to this process's user working directory, which when running through the bld wrapper corresponds to the top-level project directory.
      Overrides:
      workDirectory in class BuildExecutor
      Since:
      1.5
    • srcDirectory

      public File srcDirectory()
      Returns the project source code directory. Defaults to "src" relative to workDirectory().
      Since:
      1.5
    • srcBldDirectory

      public File srcBldDirectory()
      Returns the project bld source code directory. Defaults to "bld" relative to srcDirectory().
      Since:
      1.5
    • srcBldJavaDirectory

      public File srcBldJavaDirectory()
      Returns the project bld java source code directory. Defaults to "java" relative to srcBldDirectory().
      Since:
      1.5
    • srcBldResourcesDirectory

      public File srcBldResourcesDirectory()
      Returns the project bld resources source code directory. Defaults to "resources" relative to srcMainDirectory().
      Since:
      1.5.5
    • srcMainDirectory

      public File srcMainDirectory()
      Returns the project main source code directory. Defaults to "main" relative to srcDirectory().
      Since:
      1.5
    • srcMainJavaDirectory

      public File srcMainJavaDirectory()
      Returns the project main java source code directory. Defaults to "java" relative to srcMainDirectory().
      Since:
      1.5
    • srcMainResourcesDirectory

      public File srcMainResourcesDirectory()
      Returns the project main resources source code directory. Defaults to "resources" relative to srcMainDirectory().
      Since:
      1.5
    • srcMainResourcesTemplatesDirectory

      public File srcMainResourcesTemplatesDirectory()
      Returns the project main template resources source code directory. Defaults to "templates" relative to srcMainResourcesDirectory().
      Since:
      1.5
    • srcTestDirectory

      public File srcTestDirectory()
      Returns the project test source code directory. Defaults to "test" relative to srcDirectory().
      Since:
      1.5
    • srcTestResourcesDirectory

      public File srcTestResourcesDirectory()
      Returns the project test resources source code directory. Defaults to "resources" relative to srcTestDirectory().
      Since:
      1.5.18
    • srcTestJavaDirectory

      public File srcTestJavaDirectory()
      Returns the project test java source code directory. Defaults to "java" relative to srcTestDirectory().
      Since:
      1.5
    • libDirectory

      public File libDirectory()
      Returns the project lib directory. Defaults to "lib" relative to workDirectory().
      Since:
      1.5
    • libBldDirectory

      public final File libBldDirectory()
      Returns the lib/bld directory relative to workDirectory().
      Since:
      1.5
    • libCompileDirectory

      public File libCompileDirectory()
      Returns the project compile scope lib directory. Defaults to "compile" relative to libDirectory().
      Since:
      1.5
    • libProvidedDirectory

      public File libProvidedDirectory()
      Returns the project provided scope lib directory. Defaults to "provided" relative to libDirectory().
      Since:
      1.8
    • libRuntimeDirectory

      public File libRuntimeDirectory()
      Returns the project runtime scope lib directory. Defaults to "runtime" relative to libDirectory().
      Since:
      1.5
    • libStandaloneDirectory

      public File libStandaloneDirectory()
      Returns the project standalone scope lib directory. Defaults to null.
      Since:
      1.5
    • libTestDirectory

      public File libTestDirectory()
      Returns the project test scope lib directory. Defaults to "test" relative to libDirectory().
      Since:
      1.5
    • buildDirectory

      public File buildDirectory()
      Returns the project build directory. Defaults to "build" relative to workDirectory().
      Since:
      1.5
    • buildBldDirectory

      public File buildBldDirectory()
      Returns the project bld build directory. Defaults to "bld" relative to buildDirectory().
      Since:
      1.5
    • buildDistDirectory

      public File buildDistDirectory()
      Returns the project dist build directory. Defaults to "dist" relative to buildDirectory().
      Since:
      1.5
    • buildJavadocDirectory

      public File buildJavadocDirectory()
      Returns the project javadoc build directory. Defaults to "javadoc" relative to buildDirectory().
      Since:
      1.5.10
    • buildMainDirectory

      public File buildMainDirectory()
      Returns the project main build directory. Defaults to "main" relative to buildDirectory().
      Since:
      1.5
    • buildTemplatesDirectory

      public File buildTemplatesDirectory()
      Returns the project templates build directory. Defaults to buildMainDirectory().
      Since:
      1.5
    • buildTestDirectory

      public File buildTestDirectory()
      Returns the project test build directory. Defaults to "test" relative to buildDirectory().
      Since:
      1.5
    • createProjectStructure

      public void createProjectStructure()
      Creates the project structure based on the directories that are specified in the other methods.
      Since:
      1.5
    • createBuildStructure

      public void createBuildStructure()
      Creates the project build structure based on the directories that are specified in the other methods.
      Since:
      1.5
    • pkg

      public String pkg()
      Returns the project's package.
      Since:
      1.5
    • name

      public String name()
      Returns the project's name.
      Since:
      1.5
    • version

      public VersionNumber version()
      Returns the project's version.
      Since:
      1.5
    • mainClass

      public String mainClass()
      Returns the project's main class.
      Since:
      1.5
    • repositories

      public List<Repository> repositories()
      Returns the list of repositories for this project.

      This list can be modified to change the repositories that the project uses.

      Since:
      1.5
    • repositories

      public void repositories(Repository... repositories)
      Adds repositories to this project.
      Parameters:
      repositories - the repositories to add
      Since:
      1.5.6
    • dependencies

      public DependencyScopes dependencies()
      Returns the project's dependencies.

      This collection can be modified to change the dependencies that the project uses.

      Since:
      1.5
    • javaRelease

      public Integer javaRelease()
      Returns the java release targets for this project.
      Since:
      1.5.18
    • javaTool

      public String javaTool()
      Returns the tool that is used for running the java main class.
      Since:
      1.5
    • archiveBaseName

      public String archiveBaseName()
      Returns the base name that is used for creating archives. By default, this returns the lower-cased project name.
      Since:
      1.5
    • jarFileName

      public String jarFileName()
      Returns the filename to use for the main jar archive creation. By default, appends the version and the jar extension to the archiveBaseName().
      Since:
      1.5
    • sourcesJarFileName

      public String sourcesJarFileName()
      Returns the filename to use for the sources jar archive creation. By default, appends the version, "sources" and the jar extension to the archiveBaseName().
      Since:
      1.5.10
    • javadocJarFileName

      public String javadocJarFileName()
      Returns the filename to use for the javadoc jar archive creation. By default, appends the version, "javadoc" and the jar extension to the archiveBaseName().
      Since:
      1.5.10
    • uberJarFileName

      public String uberJarFileName()
      Returns the filename to use for the uber jar archive creation. By default, appends the version, the "-uber" suffix and the jar extension to the archiveBaseName().
      Since:
      1.5
    • uberJarMainClass

      public String uberJarMainClass()
      Returns main class to run the UberJar with. By default, returns the same as mainClass().
      Since:
      1.5
    • autoDownloadPurge

      public boolean autoDownloadPurge()
      Indicates whether dependencies should be automatically downloaded and purged when changes are detected. By default, returns false.
      Since:
      1.5.6
    • downloadSources

      public boolean downloadSources()
      Returns whether sources should be downloaded for the dependencies. By default, returns false.
      Since:
      1.5.6
    • downloadJavadoc

      public boolean downloadJavadoc()
      Returns whether javadocs should be downloaded for the dependencies. By default, returns false.
      Since:
      1.5.6
    • mainSourceFiles

      public List<File> mainSourceFiles()
      Returns all a list with all the main Java source files.
      Since:
      1.5
    • testSourceFiles

      public List<File> testSourceFiles()
      Returns all a list with all the test Java source files.
      Since:
      1.5
    • compileClasspathJars

      public List<File> compileClasspathJars()
      Returns all the jar files that are in the compile scope classpath.

      By default, this collects all the jar files in the libCompileDirectory() and adds all the jar files from the compile scope local dependencies.

      Since:
      1.5
    • providedClasspathJars

      public List<File> providedClasspathJars()
      Returns all the jar files that are in the provided scope classpath.

      By default, this collects all the jar files in the libProvidedDirectory() and adds all the jar files from the provided scope local dependencies.

      Since:
      1.8
    • runtimeClasspathJars

      public List<File> runtimeClasspathJars()
      Returns all the jar files that are in the runtime scope classpath.

      By default, this collects all the jar files in the libRuntimeDirectory() and adds all the jar files from the runtime scope local dependencies.

      Since:
      1.5
    • standaloneClasspathJars

      public List<File> standaloneClasspathJars()
      Returns all the jar files that are in the standalone scope classpath.

      By default, this collects all the jar files in the libStandaloneDirectory() and adds all the jar files from the standalone scope local dependencies.

      Since:
      1.5
    • testClasspathJars

      public List<File> testClasspathJars()
      Returns all the jar files that are in the test scope classpath.

      By default, this collects all the jar files in the libTestDirectory() and adds all the jar files from the test scope local dependencies.

      Since:
      1.5
    • compileMainClasspath

      public List<String> compileMainClasspath()
      Returns all the classpath entries for compiling the main sources.

      By default, this converts the files from compileClasspathJars() to absolute paths.

      Since:
      1.5
    • compileTestClasspath

      public List<String> compileTestClasspath()
      Returns all the classpath entries for compiling the test sources.

      By default, this converts the files from compileClasspathJars() and testClasspathJars() to absolute paths, as well as the buildMainDirectory()

      Since:
      1.5
    • runClasspath

      public List<String> runClasspath()
      Returns all the classpath entries for running the application.

      By default, this converts the files from compileClasspathJars(), runtimeClasspathJars() and standaloneClasspathJars() to absolute paths, as well as the srcMainResourcesDirectory() and buildMainDirectory()

      Since:
      1.5
    • testClasspath

      public List<String> testClasspath()
      Returns all the classpath entries for testing the application.

      By default, this converts the files from compileClasspathJars(), runtimeClasspathJars() and testClasspathJars() to absolute paths, as well as the srcMainResourcesDirectory(), buildMainDirectory() and buildTestDirectory()

      Since:
      1.5
    • executeAutoDownloadPurge

      public void executeAutoDownloadPurge() throws Exception
      Executes download and purge commands automatically when the autoDownloadPurge flag is set and changes have been detected.
      Throws:
      Exception - when an exception occurs during the auto download purge operation
      Since:
      1.6.0
    • execute

      public int execute(String[] arguments)
      Description copied from class: BuildExecutor
      Execute the build commands from the provided arguments.

      While the build is executing, the arguments can be retrieved using BuildExecutor.arguments().

      Overrides:
      execute in class BuildExecutor
      Parameters:
      arguments - the arguments to execute the build with
      Returns:
      the exist status