On Fri, Aug 25, 2000 at 06:55:45PM -0500, Brandon wrote:
>
> > OK. If no one else takes it, I volunteer to look into that over the
> > weekend. I'm not a good candidate, though, since the software base
> > here at work is so huge that our build tools are rather specialized.
> > I've never had to mess with them, so I never learned how to do it.
>
> Don't worry, ant is really easy to use. I'm very much looking forward to
> an ant-based build system. A helpful trick that I've found is that you can
> use jikes to determine dependencies between Java files.
>
Here's a 'Hello World' build.xml file for ant.
<project name="freenet" default="test" basedir=".">
<target name="test">
<javac srcdir="Freenet" destdir="Test"/>
</target>
</project>
It walks throught the Freenet project, and attempts to compile everything
and put the class files in Test. It bombs thusly -- :-)
Buildfile: build.xml
test:
[javac] Compiling 283 source files to /home/david/freenet-0.3/Test
[javac] /home/david/freenet-0.3/Freenet/client/gui/URIExpert.java:10:
Class Freenet.client.BClient not found in import.
[javac] import Freenet.client.BClient;
[javac] ^
[javac] /home/david/freenet-0.3/Freenet/sim/gui/Edge.java:4:
Class org.gamora.CoreController not found in import.
[javac] import org.gamora.CoreController;
[javac] ^
But, excludes can be put into the build file.
Targets can be dependent on other targets, and will build accordingly.
All in all, it's pretty nice, I like it.
D Schutt
_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev