File: bootstrap.xml

package info (click to toggle)
aspectj 1.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 43,412 kB
  • sloc: java: 558,715; xml: 26,625; sh: 540; makefile: 43
file content (62 lines) | stat: -rw-r--r-- 2,373 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!-- Bootstraps AspectJ build parts                                -->
<!-- Written by Thomas Girard <thomas.g.girard@free.fr>            -->
<!-- and Damien Raude-Morvan <drazzib@drazzib.com> for Debian      -->
<project name="bootstrap" default="all" basedir="..">

  <taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties" classpath="/usr/share/java/aspectjtools.jar"/>

  <target name="clean">
    <delete dir="bcel-builder/bin"/>
    <delete file="lib/bcel/*.jar"/>
    <delete dir="org.eclipse.jdt.core/classes"/>
    <delete file="org.eclipse.jdt.core/*.jar"/>
  </target>

  <target name="all">
    <!-- Build lib/bcel/bcel.jar and lib/bcel/bcel-verifier.jar -->
    <ant antfile="build.xml" dir="bcel-builder"/>

    <!-- Build org.eclipse.jdt.core/jdtcore-for-aspectj.jar -->
    <property name="module.dir" value="org.eclipse.jdt.core"/>
    <mkdir dir="${module.dir}/classes"/>
    <iajc sourceroots="${module.dir}/src"
          source="1.8"
          target="1.8"
          destDir="${module.dir}/classes">
      <classpath>
        <path id="classpath.jdtcore">
          <fileset dir="/usr/share/java/">
            <include name="aspectjrt.jar"/>
            <include name="ant.jar"/>
            <include name="eclipse-osgi.jar"/>
            <include name="eclipse-core-filesystem.jar"/>
            <include name="eclipse-core-jobs.jar"/>
            <include name="eclipse-core-contenttype.jar"/>
            <include name="eclipse-core-resources.jar"/>
            <include name="eclipse-core-runtime.jar"/>
            <include name="eclipse-text.jar"/>
            <include name="equinox-app.jar"/>
            <include name="equinox-common.jar"/>
            <include name="equinox-preferences.jar"/>
            <include name="equinox-registry.jar"/>
          </fileset>
        </path>
      </classpath>
    </iajc>

    <jar jarfile="${module.dir}/jdtcore-for-aspectj.jar">
    <fileset dir="${module.dir}/classes"/>
    <fileset dir="${module.dir}/src">
      <include name="**/*.properties"/>
      <include name="**/*.rsc"/>
      <include name="**/*.props"/>
    </fileset>
    </jar>

    <!-- Rebuild and overwrite lib/build/build.jar from build/**/*.java -->
    <ant antfile="build.xml" dir="build" target="build"/>
    <copy file="aj-build/jars/build.jar" tofile="lib/build/build.jar"/>

  </target>

</project>