<fuego : configuration>

Description

Handles export/import of configuration resources.

Examples:

  <target name="export-resources" description="Export Configuration Resources">

    <!-- Open a session to the Fuego directory -->
    <fuego:session
            passportref="fuego.passport"
            haltonerror="true" >

       <fuego:configuration action="export"
                        file="resources.exp" />

    </fuego:session>

  </target>
 
  <target name="import-resources" description="Import Configuration Resources">

    <!-- Open a session to the Fuego directory -->
    <fuego:session
            passportref="fuego.passport"
            haltonerror="true" >

       <fuego:configuration action="import"
                        force="true"
                        file="resources.exp" />

    </fuego:session>

  </target>
 

  <target name="clean-resources" description="Clean All Configuration Resources">

    <!-- Open a session to the Fuego directory -->
    <fuego:session
            passportref="fuego.passport"
            haltonerror="true" >

       <!-- Clean all the configurations-->
       <fuego:configuration action="clean-all" />

    </fuego:session>

  </target>
 

Parameters

Attribute Description Type Required?
file The file to export/import File Yes
force Whether the import action will overwrite existing configurations. boolean No by default, it will refuse to import a configuration if it already exists in the directory.
action Defines the operation to execute on the configuration.
  • import: create the objects in the file in the directory
  • export: save the objects in the directory in the file
String ["import", "export", "clean-all"] Yes
haltonerror Stop the Ant build process if an error occurs. boolean No Default is true.

Parameters accepted as nested elements