OpenCCM - Production Module Ant Tasks

Production Module Ant Tasks

OpenCCM provides Ant Tasks for production commands. You can use it by including the provided ant file as following :

<property environment="env"/>
<import file="${env.OpenCCM_HOMEDIR}/ant/openccm.xml"/>

<openccm>

...
</openccm>
      

The OpenCCM core task can be divided in several subtasks :

ir3_feed

This subtask allows you to feed IDL, PSDL, or CIDL files. Here is an example showing how to feed a single file :

<ir3_feed file="sample.idl3" />
        

If you want to feed several files you can use the nested element 'file' :

<ir3_feed>
  <file name="sample1.idl3"/>

  <file name="sample2.idl3"/>
  <file name="sample3.idl3"/>
</ir3_feed>
        

Compiler options

All compiler subtasks support the following nested element :

<cpp lineinfo="true" >
  <define name="NAME" value="You" />

  <define name="OMG_IDL3" />
  <undefine name="NAME"  />
  <includepath name="DIR" />
</cpp>
        

If lineinfo is set to "true", Line information will be generated by the preprocessor (-P flag).
Each subelement 'define' is used to define a macro (-D option). The value property is optional.
The 'undefine' macro removes a macro definition (-U option).
The 'includepath' element puts DIR in the include file search path (-I option).

ir3_idl3

The ir3_idl3 subtask allows you to generate the OMG IDL 3.0 definition associated to an OpenCCM Interface Repository object and its children objects, e.g.:

<ir3_idl3 scope="sample"
          destfile="gen/sample.idl3" />
        

ir3_idl2

The ir3_idl2 subtask allows you to generate the equivalent OMG IDL 2.4 CCM mapping associated to an OpenCCM Interface Repository object and its children objects, e.g.:

<ir3_idl2 scope="sample"
          destfile="gen/sample.idl" />
        

You can specify includes declaration to add to generated file.
'include' element adds a #include <file> statement whereas 'userinclude' element adds a #include "file" statement.

<ir3_idl2 scope="sample"
          destfile="gen/sample.idl" />
  <include name="toto" />
  <userinclude name="titi" />

</ir3_idl2>
        

psdl

The psdl subtask allows you to compile a specification file and regenerate the OMG PSDL part only, e.g.:

<psdl file="sample.psdl"
      destfile="gen/sample.psdl" />
        

cidl

The cidl subtask allows you to compile a specification file and regenerate the OMG CIDL part only, e.g.:

<cidl file="sample.cidl"
      destfile="gen/sample.cidl" />
        

ir3_java

The ir3_java subtask allows you to generate the Java container code associated to an OpenCCM Interface Repository object and its children objects, e.g.:

<ir3_java scope="sample"
          destdir="gen" />
        
Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster | Last modified at 2005-07-07 02:04 PM