GCJ, Ant and packages?
Martin Egholm Nielsen
martin@egholm-nielsen.dk
Wed May 26 13:52:00 GMT 2004
Hi Tom,
> Martin> In short, I have the single working source-file
> Martin> "src/some/pkg/TestClass.java" which I want to compile into the
> Martin> destination directory "out".
> Martin> My build.xml file is given below.
> Martin> It's "bound" to fail since the package-directory does not
> Martin> exist. However, I don't quite see how in the world Adam's script could
> Martin> ever work?!
> I took a quick look at his build.xml. It uses gcjh, which to me
> implies that he is building the .class files first. This would
> create the output directories as a side effect.
Right! I've missed that point, thanks! I should do that, as well.
However, I cannot compile the .o files from .class files, right?!
> I suggest just uncommenting the extra mkdir from your build.xml.
In this simple example, yes, but having many many different packages
this is not a good solution. :-)
But I'll just create the class-files.
Regards,
Martin
More information about the Java
mailing list