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

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

Hi

For that matter, you can connect an arbitrary java compiler to the javac task - see http://api.dpml.net/ant/1.6.4/org/apache/tools/ant/taskdefs/compilers/CompilerAdapter.html

Jesper

Jesper MATTSSON, MSc
Software Developer & IT Administrator

Phone direct: +46 73 324 5909
Email: jesper.mattsson_at_modelon.com<mailto:jesper.mattsson_at_modelon.com>

[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


Web: http://www.modelon.com<http://www.modelon.com/>



From: jastadd-bounces_at_cs.lth.se [mailto:jastadd-bounces_at_cs.lth.se] On Behalf Of Jesper Öqvist
Sent: den 29 november 2012 15:57
To: jastadd_at_cs.lth.se
Subject: Re: [Jastadd] [Q] Using JastAddJ in Ant script

Hi Hyunik,

I usually use a java task (http://ant.apache.org/manual/Tasks/java.html) and run JastAddJ similar to how it would be run on the command line:

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

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

/Jesper

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 (http://www.jfree.org/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 ?

Cheers,
- Hyunik




_______________________________________________

JastAdd mailing list

JastAdd_at_cs.lth.se<mailto:JastAdd_at_cs.lth.se>

https://mail1.cs.lth.se/cgi-bin/mailman/listinfo/jastadd

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.




image001.png
(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