This discussion cracks me up!
@see <http://jakarta.apache.org/struts/struts-logic.html>
Personally, I'm all for something better than the current <uptodate>
checking methodology because frankly it just plain sucks.
As an example, here is a build.xml file that is overly complex as a result
of this <uptodate> stuff...
<http://scarab.tigris.org/source/browse/scarab/build/build.xml?rev=1.33&cont
ent-type=text/x-cvsweb-markup>
Note the whole area around the check-for-turbine targets.
Suggestions for improvement are welcome.
-jon
on 5/15/01 1:24 PM, "Roger Vaughn" <[EMAIL PROTECTED]> wrote:
> --- Jesse Tilly <[EMAIL PROTECTED]> wrote:
>> Am I the only person that thinks conditional flow
>> control using XML is just
>> a Bad Thing(tm)? Flow control == processing and we
>> already have excellent
>> processing languages.
>
> Build scripting is all ABOUT conditional processing -
> i.e. "if source file A is newer than object file B,
> compile source file A."
>
> This low-level conditional checking is built into Ant
> (and make) so that you don't have to see it - and that
> is the primary advantage of build tools over scripting
> tools - it simplifies the required instruction set.
>
> This does not, however, eliminate the need for
> conditionals at a higher level of abstraction. Also,
> I have several times had to use the uptodate task
> paired with the if/unless conditions to achieve checks
> that are *not* built into Ant - and this is
> conceptually at the *same* level of abstraction of the
> .java/.class checks.
>
> So you don't need conditional checks in your scripts.
> How does that make them bad for everyone? You have
> not adequately justified your position. Just because
> you do not need the feature is no reason to cut the
> rest of us off at the knees. There are many cases
> where this feature is indeed necessary - including the
> script that builds Ant itself.
>
> Live and let live.
>
> Roger Vaughn
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>