This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: kawa 1.6.92 released
- To: Per Bothner <per at bothner dot com>
- Subject: Re: kawa 1.6.92 released
- From: Jim White <jim at pagesmiths dot com>
- Date: Mon, 11 Jun 2001 14:51:33 -0700
- Cc: kawa at sources dot redhat dot com
At 01:52 PM 6/11/2001 -0700, Per Bothner wrote:
>It's not that easy. '@if CHAR is bytefoo@ does not do token substitution;
>if does a cpp-style conditional, similar to #if CHAR_is_byte. Thus
>all the lines from the @if to the next @endif may need to be removed.
OIC. Well, I'll come with something. It is a little ugly, but I've done
similar sorts of Ant text processing using JavaScript and the standard Java
classes for file I/O. Tasks can also be implemented in Java and added to
Ant as a jar.
> > Note also that Ant has scripting capability (I use Rhino for
> > JavaScript right now which can use any Java class directly) and of
> > course Ant can call any system command desired, so there is no
> > practical limitation on what it can do.
>
>But can we assume that a random Windows-9x box will have the necessary
>system commands? We can presumably run different system commands on
>Unix, Ms-Windows, and Mac, but this is certainly to be avoided!
The idea is to not depend on any system commands other than the Java VM and
the compilers (javac, jikes, gcj - actually Ant can invoke javac's main
class directly so it isn't technically a system command). Ant already has
tasks for cvs, ftp, jar, tar, zip, chmod, copy, move, mkdir, etc,
implemented in Java.
I haven't looked at the details yet, but I pretty much assume building and
deploying Kawa has no need of any system commands (as the sed processing
can be done elsewise, of course sed in Java would be a cool tool and be a
handy Ant task too).
jim