ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Rosenberg" <>
Subject Re: uptodate and more general dependencies
Date Thu, 28 Dec 2000 11:41:23 GMT
An even more basic case of the one to many mapping
is the case of a .java file which has local private classes
declared.  This will produce multiple .class files.   Does
the current <javac> task handle that properly?

  ----- Original Message ----- 
  From: Marvin Greenberg 
  To: '' 
  Sent: Wednesday, December 27, 2000 7:29 PM
  Subject: uptodate and more general dependencies

  Ant 1.3 provides for a mapper that allows the definition of mapping between a 
  fileset and derived files for testing "uptodate", including a "merge" mapping
  that goes from a set of giles to a single file (such as a .jar or .zip).

  Several kinds of build activities go from a single file to many files.  The one I
  am encountering all the time is code generation for CORBA, where a single
  .idl file is converted into many .java files.  I'd probably handle this as

  <uptodate property="idlgen.uptodate">
     <srcfiles dir="${idl.dir}" name="some.idl" />
     <targetfiles dir="${java.out.dir}/some" />

  Then srcfiles AND targetfiles are FileSets and only if all targets are
  more recent than all sources is the target up to date.  In some cases
  it is common to idlgenerate a set of idl files into many java files in one operation,
  so often srcfiles will actually be in the form "*.idl" or some more general FileSet.

  This also suggests that mapping might be an element of a fileset, somehow.
  <fileset id=obj.files>
     <mapping type="glob" from="*.c" to="*.o" />
     <fileset refid=c.files />

  sorry for the long append...
  Marvin Greenberg 
  Eidea Labs, Inc 

View raw message