Groovy Documentation

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

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

class DojoBuilderConvention

Convention specifying defaults for the DojoBuilder plugin.

Authors:
Craig Swing
See Also:
DojoBuilderPlugin
Since:
0.1.0


Property Summary
boolean buildWithNode

Tells the DojoBuilder plugin to use Node or Java to perform the build.

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.Object profile

Configuration for the build profile

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
DojoBuilderConvention(Project project)

Default constructor.

 
Method Summary
java.lang.Object dojo(groovy.lang.Closure closure)

Allow for properties to be defined in a build script using a closure.

java.lang.String getDojoSourcePath()

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

 
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
Tells the DojoBuilder plugin to use Node or Java to perform the build. Defaults to false, which means Java will be used.


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.


profile

java.lang.Object profile
Configuration for the build profile


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

DojoBuilderConvention

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


 
Method Detail

dojo

java.lang.Object dojo(groovy.lang.Closure closure)
Allow for properties to be defined in a build script using a closure. Usage: dojo { dojoVersion='1.8.3' }
Parameters:
closure
Returns:


getDojoSourcePath

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


 

Groovy Documentation