<!-- -*- Mode: SGML; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- -->
<!-- ========================================================================= -->
<!-- Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC). -->
+<!-- Copyright (c) 2003 Contributors. -->
<!-- All rights reserved. -->
<!-- This program and the accompanying materials are made available -->
<!-- under the terms of the Common Public License v1.0 -->
<!-- http://www.eclipse.org/legal/cpl-v10.html -->
<!-- -->
<!-- Contributors: -->
-<!-- Xerox/PARC initial implementation -->
+<!-- Xerox/PARC initial implementation -->
+<!-- A Colyer / G Harley eclipse plugin dirs -->
<!-- ========================================================================= -->
<!-- include as common entity for module build scripts -->
they should be (e.g.,) 1.1b3 or 1.1beta3
- Changing version here causes org/aspectj/bridge/Version.java to be updated
- also change org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/messages.properties
+ - build.version.eclipse.plugins should be set to "9.9.9" for "DEVELOPMENT", and
+ - the same as build.version.long (in major.minor.service form) for releases.
-->
<property name="build.version" value="DEVELOPMENT"/>
<property name="build.version.base" value="1.1"/>
<property name="build.version.long" value="DEVELOPMENT"/>
<property name="build.version.short" value="DEVELOPMENT"/>
+ <property name="build.version.eclipse.plugins" value="9.9.9"/>
<!-- formats comply with SimpleDateFormat -->
<property name="build.time.format" value="MM/dd/yy 'at' hh:mm:ss z"/>
location="${aj.build.dir}/dist"/>
<property name="aj.webDeploy.dir"
location="${aj.build.dir}/webDeploy"/>
+ <property name="aj.plugin.org.aspectj.ajde.dir"
+ location="${aj.dist.dir}/ide/eclipse/org.aspectj.ajde"/>
+ <property name="aj.plugin.org.aspectj.ajde.source.dir"
+ location="${aj.dist.dir}/ide/eclipse/org.aspectj.ajde.source"/>
+ <property name="aj.plugin.org.aspectj.ajde.doc.dir"
+ location="${aj.dist.dir}/ide/eclipse/org.aspectj.ajde.doc"/>
<!-- aspectj... names are sources, not to be mutated -->
<property name="aspectj.modules.lib.dir"
<mkdir dir="${aj.temp.dir}" />
<mkdir dir="${aj.jar.dir}" />
<mkdir dir="${aj.dist.dir}" />
+ <mkdir dir="${aj.plugin.org.aspectj.ajde.dir}" />
+ <mkdir dir="${aj.plugin.org.aspectj.ajde.source.dir}" />
+ <mkdir dir="${aj.plugin.org.aspectj.ajde.doc.dir}" />
<property name="init-directories.done" value="done"/>
</target>
<!-- -*- Mode: SGML; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- -->
<!-- ========================================================================= -->
-<!-- Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC). -->
+<!-- Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC), -->
+<!-- 2003 Contributors -->
<!-- All rights reserved. -->
<!-- This program and the accompanying materials are made available -->
<!-- under the terms of the Common Public License v1.0 -->
<!-- -->
<!-- Contributors: -->
<!-- Xerox/PARC initial implementation -->
+<!-- Adrian Colyer / George Harley eclipse plugin targets -->
<!-- ========================================================================= -->
<!DOCTYPE project [
]>
<project name="build" default="all" basedir=".">
- <target name="all" depends="aspectj"/>
+ <target name="all" depends="aspectj,eclipse.plugins"/>
<target name="rebuild" depends="clean,all"/>
<target name="clean" depends="clean-directories"/>
</antcall>
</target>
+ <!-- ===================================================================== -->
+ <!-- eclipse plugins -->
+ <!-- ===================================================================== -->
+
+ <target name="eclipse.plugins" depends="org.aspectj.ajde.source,
+ org.aspectj.ajde.doc,
+ org.aspectj.ajde"
+ description="create the Eclipse distribution plugins"/>
+
+ <target name="org.aspectj.ajde.source" depends="init"
+ description="build the AspectJ source distribution plugin">
+ <copy todir="${aj.plugin.org.aspectj.ajde.source.dir}">
+ <fileset dir="${aspectj.modules.dir}/eclipse.plugins/org.aspectj.ajde.source"/>
+ </copy>
+ <replace file="${aj.plugin.org.aspectj.ajde.source.dir}/plugin.xml"
+ token="build.version.eclipse.plugins"
+ value="${build.version.eclipse.plugins}"/>
+ <copy file="${aspectj.modules.dir}/org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip"
+ todir="${aj.plugin.org.aspectj.ajde.source.dir}/src"/>
+ <zip destfile="${aj.plugin.org.aspectj.ajde.source.dir}/src/aspectjsrc.zip">
+ <fileset dir="${aspectj.modules.dir}/ajbrowser/src" includes="**"/>
+ <fileset dir="${aspectj.modules.dir}/ajde/src" includes="**"/>
+ <fileset dir="${aspectj.modules.dir}/asm/src" includes="**"/>
+ <fileset dir="${aspectj.modules.dir}/bridge/src" includes="**"/>
+ <fileset dir="${aspectj.modules.dir}/org.aspectj.ajdt.core/src" includes="**"/>
+ <fileset dir="${aspectj.modules.dir}/runtime/src" includes="**"/>
+ <fileset dir="${aspectj.modules.dir}/taskdefs/src" includes="**"/>
+ <fileset dir="${aspectj.modules.dir}/util/src" includes="**"/>
+ <fileset dir="${aspectj.modules.dir}/weaver/src" includes="**"/>
+ </zip>
+ <jar destfile="${aj.plugin.org.aspectj.ajde.source.dir}/../org.aspectj.ajde.source_${build.version.eclipse.plugins}.jar">
+ <fileset dir="${aj.plugin.org.aspectj.ajde.source.dir}" includes="**"/>
+ </jar>
+ </target>
+
+ <target name="org.aspectj.ajde.doc" depends="init,docs-dist"
+ description="build the AspectJ documentation plugin for Eclipse">
+ <copy todir="${aj.plugin.org.aspectj.ajde.doc.dir}">
+ <fileset dir="${aspectj.modules.dir}/eclipse.plugins/org.aspectj.ajde.doc"/>
+ </copy>
+ <copy todir="${aj.plugin.org.aspectj.ajde.doc.dir}/doc">
+ <fileset dir="${aj.dist.dir}/docs/doc" includes="**"/>
+ </copy>
+ <replace file="${aj.plugin.org.aspectj.ajde.doc.dir}/plugin.xml"
+ token="build.version.eclipse.plugins"
+ value="${build.version.eclipse.plugins}"/>
+ <jar destfile="${aj.plugin.org.aspectj.ajde.doc.dir}/../org.aspectj.ajde.doc_${build.version.eclipse.plugins}.jar">
+ <fileset dir="${aj.plugin.org.aspectj.ajde.doc.dir}" includes="**"/>
+ </jar>
+ </target>
+
+ <target name="org.aspectj.ajde" depends="init,aspectj"
+ description="build the AspectJ library plugin for Eclipse">
+ <copy todir="${aj.plugin.org.aspectj.ajde.dir}">
+ <fileset dir="${aspectj.modules.dir}/eclipse.plugins/org.aspectj.ajde"/>
+ </copy>
+ <replace file="${aj.plugin.org.aspectj.ajde.dir}/plugin.xml"
+ token="build.version.eclipse.plugins"
+ value="${build.version.eclipse.plugins}"/>
+ <copy file="${aj.dist.dir}/tools/lib/aspectjrt.jar"
+ todir="${aj.plugin.org.aspectj.ajde.dir}"/>
+ <copy file="${aj.dist.dir}/tools/lib/aspectjtools.jar"
+ todir="${aj.plugin.org.aspectj.ajde.dir}"/>
+ <jar destfile="${aj.plugin.org.aspectj.ajde.dir}/ajde.jar">
+ <zipfileset src="${aj.dist.dir}/tools/lib/aspectjtools.jar"
+ includes="org/aspectj/**"/>
+ </jar>
+ <jar destfile="${aj.plugin.org.aspectj.ajde.dir}/../org.aspectj.ajde_${build.version.eclipse.plugins}.jar">
+ <fileset dir="${aj.plugin.org.aspectj.ajde.dir}" includes="**"/>
+ </jar>
+ </target>
+
</project>