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: GCJ, Ant and packages?


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



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