Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Production code now compiled with AspectJ compiler.

  • Loading branch information...
commit 2cb0532510ad9daf5cf45b041608e11dfbe85d52 1 parent 78bb953
@iansrobinson iansrobinson authored
Showing with 14 additions and 6 deletions.
  1. +13 −6 build.xml
  2. +1 −0  settings/ivy.xml
View
19 build.xml
@@ -5,20 +5,18 @@
<import file="${settings.dir}/path.xml" />
<import file="${settings.dir}/test.xml" />
-
<import file="${settings.dir}/install-ivy.xml" />
<import file="${settings.dir}/path.xml" />
<import file="${settings.dir}/test.xml" />
- <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" />
- <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="tools/ant/ant-contrib-0.6.jar" />
+ <taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties" classpath="${lib.dir}/aspectjtools.jar"/>
<target name="lib.retrieve" depends="install-ivy">
<mkdir dir="${lib.dir}" />
<ivy:settings file="${settings.dir}/ivysettings.xml" />
<ivy:resolve file="${settings.dir}/ivy.xml" />
- <ivy:retrieve type="jar" pattern="${lib.dir}/[artifact]-[revision](-[classifier]).[ext]" changing="true"/>
- <ivy:retrieve type="bundle" pattern="${lib.dir}/[artifact]-[revision](-[classifier]).[ext]" changing="true"/>
+ <ivy:retrieve type="jar" pattern="${lib.dir}/[artifact].[ext]" changing="true"/>
+ <ivy:retrieve type="bundle" pattern="${lib.dir}/[artifact].[ext]" changing="true"/>
</target>
<target name="lib.clean">
@@ -32,7 +30,16 @@
<target name="compile" description="Compile production classes" depends="lib.retrieve">
<mkdir dir="${main.target}" />
- <javac srcdir="${main.src}" destdir="${main.target}" classpathref="path.libs" target="1.6" debug="true" includeAntRuntime="false" />
+
+ <iajc sourceroots="${main.src}" destDir="${main.target}" classpathref="path.libs" source="1.6">
+ <aspectpath>
+ <pathelement location="${lib.dir}/spring-aspects.jar"/>
+ </aspectpath>
+ <aspectpath>
+ <pathelement location="${lib.dir}/spring-data-neo4j.jar"/>
+ </aspectpath>
+ </iajc>
+
<property environment="cruise" />
<tstamp>
<format property="build.timestamp" pattern="yyyy-MM-dd HH:mm:ss" />
View
1  settings/ivy.xml
@@ -7,6 +7,7 @@
<exclude module="jmxri"/>
</dependency>
<dependency org="org.aspectj" name="aspectjrt" rev="1.6.11.RELEASE"/>
+ <dependency org="org.aspectj" name="aspectjtools" rev="1.6.11.RELEASE"/>
<dependency org="org.neo4j" name="neo4j-community" rev="1.3"/>
<dependency org="org.codehaus.jackson" name="jackson-core-asl" rev="1.7.5"/>
<dependency org="org.codehaus.jackson" name="jackson-mapper-asl" rev="1.7.5"/>
Please sign in to comment.
Something went wrong with that request. Please try again.