At 01:34  21/7/00 +0200, you wrote:
>>>>>> "PD" == Peter Donald <[EMAIL PROTECTED]> writes:
>
> PD> Well strickly speaking I don't think we need it once we have
> PD> scripting.
>
>We have. 

which was exactly what I was saying :P. And yes I already use it :P

> PD> However I figure that would be shouted down because it *could* be
> PD> complex.
>
>Hmm, this is not my main problem, but also that I don't think we need
>a fifth way to achieve that. 

Well I am going to go out ona limb and say yes - you can do all those
things you say - I personally use the scripting way in my projects. However
it is very non-intuitive. Fairly complex and takes a lot to grok - very
un-Ant like.

><target name="template_blah">
>  <java id="template_blah_javac"
>        classpath="${propertyname-with-no-value-in-project}" />
></target>

><target name="blah">
>  <ant target="template_blah" antfile="${ant.file}">
>    <property name="propertyname-with-no-value-in-project"
value="myJar.jar" />
>  </ant>
></target>

Non-intuitive and doesn't reduce size of buildfiles.

><target name="blah">
>  <ant-call target="template_blah">
>    <param name="propertyname-with-no-value-in-project" value="myJar.jar" />
>  </ant-call>
></target>

More intuitive but still farily verbose.

><target name="blah">
>  <script><![CDATA[
>    template_blah_javac.setClasspath("myJar.jar");
>    template_blah.execute();
>  ]]></script>
></target>
>
>doesn't necessary use more resources as it runs in the same project
>and doesn't use a sub build. It might be less readable and be saved
>for more difficult cases, as well as

err - it loads the whole set of bf and js jars. - May be insignificant in
long run but an extra second to do something that IMHO should be done in
ant is annoying. It also means build files can get complex to read as
everyone usues own fav scripting language (I use python and javascript -
someone else may use tcl and xslt - neither of us can easily understand
each others build files. We have also added dependancies to build process
and opened a whole kettle of fish that can lead you down the road to make -
"the road to make is littered with good intentions" :)

><taskdef name="call_blah_template" classname="CallBlah" />
><target name="blah">
>  <call_blah_template classpath="myJar.jar" />
></target>

My god are you serious ? I really hope not ...

Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*

Reply via email to