geant PreviousNext

Description

Sometimes when projects get large it is useful to make build scripts more modular. It would be useful for example to call subtargets in a procedural manner and it would be useful to use more than one build script since the build script usually grows with the size of the project. With the geant task you can accomplish this.

Parameters

file
Description: Name of build file to invoke

Domain: Name of existing file

Default: -

target
Description: Name of target to invoke in current build file respectively in buildfile specified through attribute file if provided.

Domain: existing target

Default: -

reuse_variables
Description: Should variables defined in current build file be available in invoked build file? Note: This attribute is only evaluated if attribute file if provided.

Domain: true|false

Default: false

RNG Specification

<define name="geant">
  <element name="geant">
    <ref name="dir_if_unless"/>
    <choice>
      <attribute name="target"/>
      <group>
        <attribute name="file"/>
          <optional>
            <attribute name="reuse_variables">
              <!-- runtime evaluation
              <choice>
                <value>true</value>
                <value>false</value>
              </choice>
              -->
            </attribute>
          </optional>
          <optional>
            <ref name="fileset"/>
          </optional>
        </group>
        <group>
          <attribute name="file"/>
          <attribute name="target"/>
          <optional>
            <attribute name="reuse_variables">
              <!-- runtime evaluation
              <choice>
                <value>true</value>
                <value>false</value>
              </choice>
              -->
            </attribute>
          </optional>
          <optional>
            <ref name="fileset"/>
          </optional>
        </group>
      <ref name="fileset"/>
      </choice>
  </element>
</define>

		

Examples

  <geant file="build2.eant"/>
  
  <geant file="build2.eant" target="compile"/>
  
  <geant file="build2.eant" target="compile" reuse_variables="true"/>
  
  <geant target="compile"/>

		



http://www.gobosoft.com
HomeTocPreviousNext