[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Trying to build with iajc with Ant outside eclipse 3.2 with Ajdt 1.5
|
Hi Ed,
It's slightly different if you're writing ant within ajdt and want to use
the aspectj which comes with ajdt. The following build script works for me
in eclipse 3.2 with a dev build of AJDT installed:
<?xml version="1.0" encoding="UTF-8"?>
<project name="xxx" default="spacewar" basedir=".">
<!-- using the jars within the AJDT installation -->
<target name="init" depends="init.variables,init.taskdefs" />
<target name="init.variables" description="init variables">
<!-- required directories -->
<property name="plugins.dir" location=
"${basedir}../../../../../eclipse32/plugins" />
<!-- required libraries -->
<property name="aspectjrt.jar" location=
"${plugins.dir}/org.aspectj.runtime_1.5.3.200608290814/aspectjrt.jar" />
<property name="ajde.jar" location=
"${plugins.dir}/org.aspectj.ajde_1.5.3.200608290814/ajde.jar" />
<property name="weaver.jar" location=
"${plugins.dir}/org.aspectj.weaver_1.5.3.200608290814/aspectjweaver.jar" />
<!-- checking required libraries -->
<available file="${ajde.jar}" property="ajde.jar.available" />
<available file="${aspectjrt.jar}" property=
"aspectjrt.jar.available" />
<available file="${weaver.jar}" property="weaver.jar.available"
/>
<!-- other libraries required on the classpath -->
<property name="boot.jar" location=
"${plugins.dir}/org.eclipse.core.boot_3.1.100.v20060603.jar" />
<property name="resources.jar" location=
"${plugins.dir}/org.eclipse.core.resources_3.2.0.v20060603.jar" />
<property name="runtime.jar" location=
"${plugins.dir}/org.eclipse.core.runtime_3.2.100.v20060905.jar" />
<property name="compatibility.jar" location=
"${plugins.dir}/org.eclipse.core.resources.compatibility_3.2.0.v20060603.jar"
/>
<property name="ant.jar" location=
"${plugins.dir}/org.apache.ant_1.6.5/lib/ant.jar"/>
<property name="equinox.jar" location=
"${plugins.dir}/org.eclipse.equinox.common_3.2.0.v20060603.jar"/>
</target>
<target name="ajde.jar.available" depends="init.variables" unless=
"ajde.jar.available">
<fail message="expecting ajde.jar at ${ajde.jar}" />
</target>
<target name="aspectjrt.jar.available" depends="init.variables"
unless="aspectjrt.jar.available">
<fail message="expecting aspectjrt.jar at ${aspectjrt.jar}" />
</target>
<target name="weaver.jar.available" depends="init.variables" unless=
"weaver.jar.available">
<fail message="expecting weaver.jar at ${weaver.jar}" />
</target>
<target name="init.taskdefs" depends="init.variables,
ajde.jar.available, aspectjrt.jar.available, weaver.jar.available" unless=
"taskdefs.init">
<taskdef resource=
"org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
<classpath>
<pathelement path=
"${ajde.jar};${weaver.jar};${equinox.jar};${aspectjrt.jar}" />
</classpath>
</taskdef>
<property name="taskdefs.init" value="true" />
</target>
<target name="spacewar" depends="init">
<iajc
sourceroots = "src/"
classpath=
"${aspectjrt.jar};${boot.jar};${resources.jar};${runtime.jar};${compatibility.jar};${ant.jar};${ajde.jar};${equinox.jar}"
verbose="true"
showWeaveInfo="true"
/>
</target>
</project>
Hope this helps, Helen
"Ed Lauder"
<elauder@ereinsur
e.com> To
Sent by: <aspectj-users@xxxxxxxxxxx>
aspectj-users-bou cc
nces@xxxxxxxxxxx
Subject
[aspectj-users] Trying to build
28/09/2006 23:13 with iajc with Ant outside eclipse
3.2 with Ajdt 1.5
Please respond to
aspectj-users@ecl
ipse.org
I am trying to build with iajc version org.eclipse.ajde_1.5.2
For whatever reason the task I defined won’t get picked up. Ant is
returning: Could not create task or type of type: iajc.
Any ideas? All of the samples I have found deal with older version of the
ajde. With the newer version I don’t see the aspectjtools.jar.
Thanks
Ed_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users