Class Build

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BuildOverlay

public class Build extends BuildBase implements Serializable
The <build> element contains informations required to build the project.
Version:
$Revision$ $Date$
See Also:
  • Field Details

    • sourceDirectory

      private String sourceDirectory
      This element specifies a directory containing the source of the project. The generated build system will compile the source in this directory when the project is built. The path given is relative to the project descriptor.
    • scriptSourceDirectory

      private String scriptSourceDirectory
      This element specifies a directory containing the script sources of the project. This directory is meant to be different from the sourceDirectory, in that its contents will be copied to the output directory in most cases (since scripts are interpreted rather than compiled).
    • testSourceDirectory

      private String testSourceDirectory
      This element specifies a directory containing the unit test source of the project. The generated build system will compile these directories when the project is being tested. The path given is relative to the project descriptor.
    • outputDirectory

      private String outputDirectory
      The directory where compiled application classes are placed.
    • testOutputDirectory

      private String testOutputDirectory
      The directory where compiled test classes are placed.
    • extensions

      private List<Extension> extensions
      Field extensions.
  • Constructor Details

    • Build

      public Build()
  • Method Details

    • addExtension

      public void addExtension(Extension extension)
      Method addExtension.
      Parameters:
      extension - a extension object.
    • getExtensions

      public List<Extension> getExtensions()
      Method getExtensions.
      Returns:
      List
    • getOutputDirectory

      public String getOutputDirectory()
      Get the directory where compiled application classes are placed.
      Returns:
      String
    • getScriptSourceDirectory

      public String getScriptSourceDirectory()
      Get this element specifies a directory containing the script sources of the project. This directory is meant to be different from the sourceDirectory, in that its contents will be copied to the output directory in most cases (since scripts are interpreted rather than compiled).
      Returns:
      String
    • getSourceDirectory

      public String getSourceDirectory()
      Get this element specifies a directory containing the source of the project. The generated build system will compile the source in this directory when the project is built. The path given is relative to the project descriptor.
      Returns:
      String
    • getTestOutputDirectory

      public String getTestOutputDirectory()
      Get the directory where compiled test classes are placed.
      Returns:
      String
    • getTestSourceDirectory

      public String getTestSourceDirectory()
      Get this element specifies a directory containing the unit test source of the project. The generated build system will compile these directories when the project is being tested. The path given is relative to the project descriptor.
      Returns:
      String
    • removeExtension

      public void removeExtension(Extension extension)
      Method removeExtension.
      Parameters:
      extension - a extension object.
    • setExtensions

      public void setExtensions(List<Extension> extensions)
      Set a set of build extensions to use from this project.
      Parameters:
      extensions - a extensions object.
    • setOutputDirectory

      public void setOutputDirectory(String outputDirectory)
      Set the directory where compiled application classes are placed.
      Parameters:
      outputDirectory - a outputDirectory object.
    • setScriptSourceDirectory

      public void setScriptSourceDirectory(String scriptSourceDirectory)
      Set this element specifies a directory containing the script sources of the project. This directory is meant to be different from the sourceDirectory, in that its contents will be copied to the output directory in most cases (since scripts are interpreted rather than compiled).
      Parameters:
      scriptSourceDirectory - a scriptSourceDirectory object.
    • setSourceDirectory

      public void setSourceDirectory(String sourceDirectory)
      Set this element specifies a directory containing the source of the project. The generated build system will compile the source in this directory when the project is built. The path given is relative to the project descriptor.
      Parameters:
      sourceDirectory - a sourceDirectory object.
    • setTestOutputDirectory

      public void setTestOutputDirectory(String testOutputDirectory)
      Set the directory where compiled test classes are placed.
      Parameters:
      testOutputDirectory - a testOutputDirectory object.
    • setTestSourceDirectory

      public void setTestSourceDirectory(String testSourceDirectory)
      Set this element specifies a directory containing the unit test source of the project. The generated build system will compile these directories when the project is being tested. The path given is relative to the project descriptor.
      Parameters:
      testSourceDirectory - a testSourceDirectory object.