summaryrefslogtreecommitdiff
blob: 273bb22e727208b61d3ab7c8717dec8a9b6034df (plain)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
--- build.xml.orig	2005-01-05 22:09:52.421137168 +0100
+++ build.xml	2005-01-05 22:17:04.298481832 +0100
@@ -42,8 +42,6 @@
     <!--    <property name="aspectwerkz.classpath" refid="aspectwerkz.classpath" />-->
 
     <!--    define the jarjar task we use to remap ASM -->
-    <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="${basedir}/lib/jarjar-0.3.jar"/>
-
     <target name="cleandist" depends="clean, dist"/>
 
     <!-- =================================================== -->
@@ -121,7 +119,7 @@
     <!-- ============================================================== -->
     <!-- compiles the distribution  -->
     <!-- ============================================================== -->
-    <target name="compile" depends="init">
+    <target name="compile" depends="clean">
         <mkdir dir="${build.dir}"/>
         <mkdir dir="${main.classes}"/>
         <javac destdir="${jdk14.classes}" debug="on" source="1.3" target="1.3">
@@ -153,12 +151,6 @@
                 <path refid="project.class.path"/>
             </classpath>
         </javac>
-        <!-- remap ASM since it is used directly in the tests for some -->
-        <jarjar destfile="${test.classes}.jar">
-            <fileset dir="${test.classes}" includes="**/*"/>
-            <rule pattern="org.objectweb.asm.**" result="org.codehaus.aspectwerkz.@0"/>
-        </jarjar>
-        <unjar src="${test.classes}.jar" dest="${test.classes}" overwrite="true"/>
     </target>
 
     <!-- ============================================================== -->
@@ -250,42 +242,31 @@
     <!-- ============================================================== -->
     <!-- create distribution -->
     <!-- ============================================================== -->
-    <target name="dist" depends="compile, compile:jdk15, compile:test, compile:extensions"><!-- not samples since Java 1.4 -->
+    <target name="dist" depends="compile, compile:jdk15"><!-- not samples since Java 1.4 -->
         <copy file="${src.dir}/main/aspectwerkz2.dtd" todir="${main.classes}"/>
 
         <!-- we embed jarjar version of ASM in it as well in case the aspectwerkz-core jar is not used -->
-        <jarjar destfile="${build.dir}/aspectwerkz-${version}.jar" manifest="${lib.dir}/manifest.mf">
+        <jar destfile="${build.dir}/aspectwerkz.jar" manifest="${lib.dir}/manifest.mf">
             <fileset dir="${main.classes}">
                 <exclude name="**/aspectwerkz/hook/**/*"/>
             </fileset>
-            <zipfileset src="${basedir}/lib/asm-1.5.2.jar"/>
-            <zipfileset src="${basedir}/lib/asm-attrs-1.5.2.jar"/>
-            <rule pattern="org.objectweb.asm.**" result="org.codehaus.aspectwerkz.@0"/>
-        </jarjar>
-        <copy tofile="${lib.dir}/aspectwerkz-${version}.jar" file="${build.dir}/aspectwerkz-${version}.jar" overwrite="true"/>
+        </jar>
+        <copy tofile="${lib.dir}/aspectwerkz.jar" file="${build.dir}/aspectwerkz.jar" overwrite="true"/>
 
         <!-- JDK 1.4 annotations only -->
-        <jar destfile="${build.dir}/aspectwerkz-jdk14-${version}.jar">
+        <jar destfile="${build.dir}/aspectwerkz-jdk14.jar">
             <fileset dir="${jdk14.classes}"/>
         </jar>
-        <copy tofile="${lib.dir}/aspectwerkz-jdk14-${version}.jar" file="${build.dir}/aspectwerkz-jdk14-${version}.jar" overwrite="true"/>
+        <copy tofile="${lib.dir}/aspectwerkz-jdk14.jar" file="${build.dir}/aspectwerkz-jdk14.jar" overwrite="true"/>
 
         <!-- core contains the hook part -->
         <!-- we embed jarjar version of ASM in it as well so that it will be in the bootclasspath for the asm hook -->
-        <jarjar destfile="${build.dir}/aspectwerkz-core-${version}.jar">
+        <jar destfile="${build.dir}/aspectwerkz-core.jar">
             <fileset dir="${main.classes}">
                 <include name="**/aspectwerkz/hook/**/*"/>
             </fileset>
-            <zipfileset src="${basedir}/lib/asm-1.5.2.jar"/>
-            <zipfileset src="${basedir}/lib/asm-attrs-1.5.2.jar"/>
-            <rule pattern="org.objectweb.asm.**" result="org.codehaus.aspectwerkz.@0"/>
-        </jarjar>
-        <copy tofile="${lib.dir}/aspectwerkz-core-${version}.jar" file="${build.dir}/aspectwerkz-core-${version}.jar" overwrite="true"/>
-
-        <jarjar jarfile="${build.dir}/aspectwerkz-extensions-${version}.jar" basedir="${extensions.classes}">
-            <rule pattern="org.objectweb.asm.**" result="org.codehaus.aspectwerkz.@0"/>
-        </jarjar>
-        <copy tofile="${lib.dir}/aspectwerkz-extensions-${version}.jar" file="${build.dir}/aspectwerkz-extensions-${version}.jar" overwrite="true"/>
+        </jar>
+        <copy tofile="${lib.dir}/aspectwerkz-core.jar" file="${build.dir}/aspectwerkz-core.jar" overwrite="true"/>
 
         <antcall target="dist:jdk15"/>
     </target>