Re: [Jastadd] [Q] Using JastAddJ in Ant script

From: Jesper Mattsson <>
Date: Thu, 29 Nov 2012 15:25:29 +0000


For that matter, you can connect an arbitrary java compiler to the javac task - see


Software Developer & IT Administrator

Phone direct: +46 73 324 5909

[Description: Description: Modelon_2011_Gradient_RGB_400]
Modelon AB
Ideon Science Park
SE-223 70 Lund, Sweden

Phone: +46 46 286 2200
Fax: +46 46 286 2201


From: [] On Behalf Of Jesper qvist
Sent: den 29 november 2012 15:57
Subject: Re: [Jastadd] [Q] Using JastAddJ in Ant script

Hi Hyunik,

I usually use a java task ( and run JastAddJ similar to how it would be run on the command line:

<java classname="org.jastadd.jastaddj.JavaCompiler">
    <pathelement path="${jastaddj.path}"/>

Of course it would be possible to create an Ant task for JastAddJ. It's possible someone else has already done this.


On 11/29/2012 09:45 AM, Na, Hyunik wrote:
Hello JastAddJ users,

I need to build several benchmark programs using JastAddJ (actually, using my extension of JastAddJ).
As a first attempt, I'm trying to build jfreechart (
As usual for java programs, jfreechart's build script is an ant script, and I need to modify the build.xml
so that the build procedure use JastAddJ instead of javac.

Perhaps, I have to replace javac tasks with something else like java or exec tasks.
(Yes, I'm not so familiar with ant.)
What is your usual way of using JastAddJ in ant scripts? Using a custom task for JastAddJ ? (if any)
or just using built-in tasks such as java or exec ?

- Hyunik


JastAdd mailing list<>

This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received this email in error, (i) you should not read, disclose, or copy it, (ii) please notify sender of your receipt by reply email and delete this email and all attachments, (iii) Modelon does not accept or assume any liability or responsibility for any use of or reliance on this email.

(image/png attachment: image001.png)

Received on Thu Nov 29 2012 - 16:56:48 CET

This archive was generated by hypermail 2.3.0 : Wed Apr 16 2014 - 17:19:06 CEST