ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject XSLT (was Re: Immutable Properties in 1.1?)
Date Fri, 21 Jul 2000 23:53:38 GMT

I still think that using XSLT as a sort of "preprocessor" is the best way
to handle these kind of situations. You could define the structure of your
project in an XML file, using as simple a syntax as possible, then use XSL
to generate your Ant file. This keeps the Ant syntax small and clean, while
leveraging an already defined standard to automate the repetitive stuff...

Matt Foemmel
ThoughtWorks, Inc.

                    Jesse Glick                                                          
                    <Jesse.Glick@net        To:        
          >              cc:                                       
                    Sent by:                Subject:     Re: Immutable Properties in 1.1?
                    07/20/2000 03:49                                                     
                    Please respond                                                       
                    to ant-dev                                                           

Ken Liu wrote:
> BTW, the problem I see with using templated targets ala Jesse's patch is

"patch" -> "proposed patch" :-)

> that it would be difficult to define different "depends" for each
> target, no?

Well, I was assuming that you would be able to parametrize depends lists
as well:

<target pattern="prepare-dir-(.*)">
  <somehowCleanIt path="sources/$[1]"/>
<target pattern="build-dir-(.*)-with-libs-from-(.*)"
  <compileIt path="sources/$[1]"

Something like that. Now run targets like
"build-dir-foo/bar-with-libs-from-miscutils". If you have different
*kinds* of dependencies for the different targets, you would need one
template per kind of dependency, I guess.


Jesse Glick   <>
NetBeans, Open APIs  <>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR

View raw message