Groovy Documentation

com.evinceframework.gradle.dojoBuilder
[Groovy] Class BuildDefinition

java.lang.Object
  com.evinceframework.gradle.dojoBuilder.BuildDefinition

class BuildDefinition

Authors:
Craig Swing
See Also:
DojoBuilderPlugin
DojoBuilderConvention
Since:
0.1.0


Property Summary
boolean buildWithNode

Configuration for the build profile

java.lang.String dojoVersion

The source repository may contain multiple versions of the Dojo Toolkit.

java.lang.String outputPath

The directory where the output of the build should be placed.

java.lang.String source

The name of the directory in the project that contains the source.

java.lang.String sourceDestination

The name of the directory where the DojoBuilderConvention#source#source is copied to.

java.lang.String sourceRepository

The DojoBuilder plugin relies on a repository of javascript source code to build from.

 
Constructor Summary
BuildDefinition(Project project)

Default constructor.

 
Method Summary
java.lang.String getDojoSourcePath()

The relative path to the Dojo Toolkit SDK in the repository.

java.lang.Object pkg(java.lang.Object obj)

Adds a package to the build profile.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

buildWithNode

boolean buildWithNode
Configuration for the build profile


dojoVersion

java.lang.String dojoVersion
The source repository may contain multiple versions of the Dojo Toolkit. This field identifies the version of the Dojo Toolkit to use. Within the source repository, the Dojo Toolkit SDK must exist in the
/dojo-release-${dojoVersion}-src
directory , where
${dojoVersion}
is the value specified by this property.
dojo-release-XXX-src
is the directory that is packaged in the Dojo Toolkit SDK and can be downloaded from http://dojotoolkit.org/download/


outputPath

java.lang.String outputPath
The directory where the output of the build should be placed. The default is the
/build/release
in the project directory.


source

java.lang.String source
The name of the directory in the project that contains the source. The content in this directory will be copied to the DojoBuilderConvention#sourceDestination#sourceDestination directory. The default value is the
src/js
directory within the project.


sourceDestination

java.lang.String sourceDestination
The name of the directory where the DojoBuilderConvention#source#source is copied to. The DojoBuilderPlugin will build using the DojoBuilderConvention#profile#profile and source javascript from this directory. The default value is
${project.name}-${project.version}
directory within the DojoBuilderConvention#sourceRepository#sourceRepository, where
${project.name}
is the project's name and
${project.version}
is the current project version.


sourceRepository

java.lang.String sourceRepository
The DojoBuilder plugin relies on a repository of javascript source code to build from. This field identifies location of the source repository.


 
Constructor Detail

BuildDefinition

BuildDefinition(Project project)
Default constructor. Project is required to set default values.
Parameters:
project - The Gradle project.


 
Method Detail

getDojoSourcePath

java.lang.String getDojoSourcePath()
The relative path to the Dojo Toolkit SDK in the repository. See DojoBuilderConvention#dojoVersion#dojoVersion for more details.


pkg

java.lang.Object pkg(java.lang.Object obj)
Adds a package to the build profile.
Parameters:
obj


 

Groovy Documentation