see inline. - Jimmy
----- Original Message ----- From: "Steve Loughran" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Tuesday, May 21, 2002 2:18 PM Subject: Re: Can ant do this? > > ----- Original Message ----- > From: "Jimmy Han" <[EMAIL PROTECTED]> > To: "Ant Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, May 21, 2002 1:52 PM > Subject: Re: Can ant do this? > > > I expect ant to be better than make and will replace make. > > > However I found a few features that ant is missing. > > > > <foreach> is one. > > <property name="distdir" value="common/classes common/lib ... lib" /> > > > > <foreach list="${distdir}" param="dir"> > > <mkdir dir="${catalina.dist}/${dir}"/> > > <copy todir="${catalina.dist}/${dir}"> > > <fileset dir="${catalina.build}/${dir}"/> > > </copy> > > </foreach> > > > > Consensus is that we need some kind of list operators, but it probably wont > be a foreach. SQL doesnt use foreach to work on stuff, ant shouldnt need it > either if it has the right datatypes and operations. > I don't care it should be <foreach> or something else. What I care is that my job has become more tedious without that. > > > Another is the ability of recursive property resolution. For example > > > > ${${project}.build} > > > > IMHO, for a large dev project with many loosely coupled sub-projects, > > these features are really necessary. > > no, that is ugly ugly. Would you do it in java? Or would you use arrays > instead? > > The standard tactic today is to load in a properties file based on the sub > projects name, that sets the properties inside > I don't understand why that is ugly. Of cause we can live without that. But our life will be easier with that. It is very common that we have many sub-projects that have the same build tasks except that they use different directories that are related to the base directory. If ant can do ${${project}.name}, then they can use the same build.xml. The only change is the project name. Isn't that a nice thing? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>