Greg Callaghan wrote: > > Hi, > > We're starting up with ANT here. Part of the build process is to -: > > (1) create TEMP directory (will be deleted with CLEAN) > (2) compile IDL from IDL to TEMP/SRC (using "idlj") > (3) copy other source from SRC to TEMP/SRC > (4) compile all source in TEMP to BUILD
see my article on using Ant with JAXB's code generator. Though it uses that and not idlj, the basic concept is the same. http://www.onjava.com/pub/a/onjava/2002/03/06/jaxant1.html it still calls jaxb's generator from a java task, but you could use the exec task to do that part. beyond that, its a matter of having two separate source directories, one that has your own code, the other that has the generated code, and compiling the two at the same time. the javac task can take multiple source paths. <javac destdir="build" includes="**/*.java" includeAntRuntime="false"> <src path="src"/> <src path="gensrc"/> <classpath refid="build.class.path"/> > We of course we like to make the process cover not performing step 2 unless > idl files have changed, ideally on a per IDL file basis. > > Q1 - Does anyone know of a custom task for "idlj" that may be just > around the corner? > > Q2 - If the answer to Q1 is no, what is the suggested ANT method of > implementing this? In part two, I discuss a means of doing that one-to-many dependency for jaxb. It does basically require a means of determining which files the idl compiler would generate, meaning it would have to parse the idl file to a limited degree. mine has a java file that determines what .java files would be generated by jaxb. note that this is still "in progress" of being published. its not quite done yet online. http://www.onjava.com/pub/a/onjava/2002/03/13/jaxbant2.html Joe -- ---------------------------------------------------------------------- Joseph Shelby mailto:[EMAIL PROTECTED] 5809 Chase Commons Ct. #201 http://www.io.com/~acroyear Burke, VA 22015 (703) 323-7121 | 247-7868 Software Engineer, ISX Corporation, Arlington, VA "The people of England will permit anything...except cruelty to horses and a rise in the price of beer." -- Return of the Musketteers (1989) ---------------------------------------------------------------------- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
