r1 - 09 Apr 2007 - 07:40:10 - TanDunlinYou are here: TWiki >  Main Web  >  ElixirReport > ElixirReportCookbook > AntTaskGenerateDataRuntime

Generate Data via Ant Task (Runtime Engine)

Write a build.xml, defining the parameters for generating. This will require the Runtime Engine.

Code Snippet

<?xml version="1.0"?>

<project name="Ensemble" default="generate">

  <!-- you need to run this with ant -lib XXX 
       where XXX is the path to your Repertoire\lib directory -->
      
   <!-- Directory of <lib> folder for Elixir Ensemble-->
   <property name="ensemble-dir" value="C:\Program Files\Elixir Repertoire\lib"/>
   
   <taskdef name="ensemble" classname="com.elixirtech.ensemble.EnsembleTask"/>

   <target name="generate">
      <!-- Composite Databse Name and DataStore Name -->
      <ensemble datasource="/GenerateData/Composite.ds" datastore="CSVDataStore">
         <!-- Path of FileSystem -->
         <filesystem path="C:\GenerateData"/>
         <!-- parameter defined in the .ds file for the location of the output file -->
         <parameter name="output-file" value="file:/C:/GenerateData/output.csv"/>
      </ensemble>
   </target>  
</project>

Sample available at the following link :-
GenerateData

To try out, simply unzip GenerateData.zip to C:\GenerateData, run a command prompt and type in :-

ant -lib "C:\Program Files\Elixir Repertoire\lib" generate

'ant' is for the building the build.xml file, 'C:\Program Files\Elixir Repertoire\lib' is the directory of the library files required and 'generate' is the key word for the target.
Make modification to the directory if required

-- TanDunlin - 09 Apr 2007

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback