This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: example of using ant to drive a gcj build


Adam Megacz writes:
 > 
 > - The whole tab-vs-space thing, but everybody hates this, so it's not
 >   really worth talking about much, and emacs manages to kludge around
 >   this pretty well.

This tab thing is just a bug that was never fixed because there were
about twenty users of make already and it might have broken their
makefiles...

What baffles me about Ant is the choice of XML as a syntax.  Even the
most enthusiastic proponents of XML (see "XML is not S-Expressions"
http://www.prescod.net/xml/sexprs.html) admit that it's not a good
syntax for writing programs in.  And make is an applicative
programming language; it's not agreat one, but it does OK.  I suppose
the pro case is that XML parsers are already there, but that doesn't
sound like a very strong reason unless you just want something
quickly.

Andrew.

<define name="factorial" arg="n" />
  <if> <equal> "$n" "1" </equal>
    <times> "$n" 
      <call target="factorial">
        <minus> "$n" "1" </minus>
      </call>
    </times>
  </if>
</define>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]