Problem with compiling build.xml using ant and producing JFr

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Kamal

Problem with compiling build.xml using ant and producing JFr

Post by Kamal » Thu Feb 20, 2003 10:17 pm

Hi,

I was wondering if anyone could help with the following problem with compiling the build.xml file using ‘ant’. I am trying to use the JFreeChart package, using J-Builder. However, J-Builder needs ‘.class’ files for it to run, as well as the ‘.java’ ones already provided with the JFreeChart package. Therefore, I am hoping by re-compiling the source, i.e. using ant to compile the ‘build.xml’ file, I can produce the .class files for J-Builder to use. I am not sure that these .class files will get produced re-compiling the source- firstly does anyone know if they do? If not, how do I get these .class files that I need?

However, I am using ‘make’ in J-Builder, which I think does the same job as ant (ant is recommended in the installation guide), to compile the build.xml file. However, I am getting an error, which is copied below:

"build.xml": C:\jfreechart-0.9.5\ant\build.xml:129:
The <javadoc2> task doesn't support the nested "packageset" element.

Which occurs at line 129 and Line 29 of the build.xml is found below:

Line 129 : <packageset dir="${basedir}/src" defaultexcludes="yes">

I would be most grateful if anyone knows how to sort this problem out.

Thanks.

Kamal.

David Gilbert

Re: Problem with compiling build.xml using ant and producing

Post by David Gilbert » Fri Feb 21, 2003 12:27 pm

The ant script compiles all the .java files into .class files in a temporary directory, then adds them all to a single jar file and deletes the temporary directory.

If you are using JBuilder, you can create a project and let JBuilder take care of compiling everything for you.

I don't know what is causing the error you report - perhaps it is the Ant version you are using, the script was developed with Ant 1.5.1.

Regards,

Dave Gilbert

Locked