You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Markus Kohler <ko...@cms.tecmath.de> on 2000/08/08 15:21:19 UTC

Ant and IDL compilers ?

Hi,
Does anyone working with Ant and an (Corba)IDL compiler ?
What is your approach to call the idl compiler ?


Regards,
Markus

 


Re: Ant and IDL compilers ?

Posted by Ola Sambergs <ol...@wineasy.se>.
Hi,


Our project simply use the exec action to call our idl compiler, see the
following example target;

<target name="build_idl" if="idlavailable">
     <deltree dir="${src}/se/test/" />

     <exec dir="." command="bin/idltojava -I${idldir} -p se.test
${idldir}/Test.idl" output="/dev/tty" failonerror="true" />
     <exec dir="." command="bin/idltojava -I${idldir} -p se.test
${idldir}/Test2.idl" output="/dev/tty" failonerror="true" />

</target>

Not the most elegant solution, but it works.

Regards,

Ola Sambergs


----- Original Message -----
From: "Markus Kohler" <ko...@cms.tecmath.de>
To: <an...@jakarta.apache.org>
Sent: Tuesday, August 08, 2000 3:21 PM
Subject: Ant and IDL compilers ?


Hi,
Does anyone working with Ant and an (Corba)IDL compiler ?
What is your approach to call the idl compiler ?


Regards,
Markus





Re: Ant and IDL compilers ?

Posted by Michael Haertjens <mh...@modusoperandi.com>.

Markus Kohler wrote:
> 
> Hi,
> Does anyone working with Ant and an (Corba)IDL compiler ?
> What is your approach to call the idl compiler ?
> 
> Regards,
> Markus
> 
> 

Using an exec command:

<target name="idl2java" depends="init, generate_idl">
  <exec
    dir=${basedir}"
    command="idl2java -root_dir ${catalyst.home} -no_tie -no_examples
-package=com.modusoperandi.catalyst.server.Person ${basedir}/*.idl"
    output="${basedir}/idl2java.out"
  />
</target>

Hope this helps  
 
-- 
Michael Haertjens               
Dreamer, Shaper, Singer, Maker.

Systems Engineer
www.modusoperandi.com
mhaertjens@modusoperandi.com