OpenCCM - Production Module Ant Tasks | |
Production Module Ant TasksOpenCCM 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_feedThis 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).
ir3_idl3The 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_idl2The 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.
<ir3_idl2 scope="sample" destfile="gen/sample.idl" /> <include name="toto" /> <userinclude name="titi" /> </ir3_idl2> psdlThe 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" /> cidlThe 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_javaThe 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 |