-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
186 lines (166 loc) · 12.8 KB
/
build.xml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<project>
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="libs/ant-contrib-1.0b3.jar"/>
</classpath>
</taskdef>
<property name="ajdt_ver" value="1.8.6.20150608154244"/>
<property name="aspectjrt" value="org.aspectj/aj-build/dist/tools/lib/aspectjrt.jar"/>
<property name="aspectjtools" value="org.aspectj/aj-build/dist/tools/lib/aspectjtools.jar"/>
<property name="aspectjweaver" value="org.aspectj/aj-build/dist/tools/lib/aspectjweaver.jar"/>
<target name="runtime">
<mkdir dir="test"/>
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
<copy file="${aspectjrt}" tofile="dist/awesomert.jar"/>
<if>
<isset property="mechanisms"/>
<then>
<for list="${mechanisms}" param="mechanism">
<sequential>
<jar destfile="dist/awesomert.jar" update="yes">
<zipfileset src="@{mechanism}" includes="**/runtime/**"/>
</jar>
</sequential>
</for>
</then>
</if>
<jar destfile="dist/awesomert.jar" update="yes">
<manifest>
<attribute name="Manifest-Version" value="1.0"/>
<attribute name="Bundle-Vendor" value="Eclipse AspectJ Development Tools"/>
<attribute name="Ant-Version" value="Apache Ant 1.9.4" />
<attribute name="Bundle-ClassPath" value="."/>
<attribute name="Bundle-Version" value="${ajdt_ver}"/>
<attribute name="Eclipse-BundleShape" value="jar"/>
<attribute name="Bundle-Name" value="AspectJ Runtime"/>
<attribute name="Bundle-ManifestVersion" value="2"/>
<attribute name="Created-By" value="1.7.0_21-b11 (Oracle Corporation)"/>
<attribute name="Bundle-SymbolicName" value="org.aspectj.runtime"/>
<attribute name="Bundle-RequiredExecutionEnvironment" value="J2SE-1.5"/>
<attribute name="Export-Package" value='org.aspectj.internal.lang.annotation;version="1.8.3",org.aspectj.internal.lang.reflect;version="1.8.3",org.aspectj.lang;version="1.8.3",org.aspectj.lang.annotation;version="1.8.3",org.aspectj.lang.internal.lang;version="1.8.3",org.aspectj.lang.reflect;version="1.8.3",org.aspectj.runtime;version="1.8.3",org.aspectj.runtime.internal;version="1.8.3",org.aspectj.runtime.internal.cflowstack;version="1.8.3",org.aspectj.runtime.reflect;version="1.8.3"'/>
</manifest>
</jar>
<copy file="dist/awesomert.jar" tofile="dist/org.aspectj.runtime_${ajdt_ver}.jar"/>
</target>
<target name="weaver">
<mkdir dir="dist"/>
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
<var name="inpath" value="platform/target/platform-1.0-SNAPSHOT.jar"/>
<if>
<isset property="mechanisms"/>
<then>
<for list="${mechanisms}" param="mechanism">
<sequential>
<var name="inpath" value="${inpath}${path.separator}@{mechanism}"/>
</sequential>
</for>
</then>
</if>
<java fork="true" classname="org.aspectj.tools.ajc.Main">
<classpath>
<pathelement path="${aspectjrt}"/>
<pathelement path="${aspectjtools}"/>
<fileset dir="libs">
<include name="*.jar"/>
</fileset>
</classpath>
<arg line="-Xlint:ignore"/>
<arg line="-inpath ${inpath}"/>
<arg line="-outjar dist/awesomeweaver.jar"/>
</java>
<if>
<isset property="deps"/>
<then>
<for list="${deps}" param="dep">
<sequential>
<jar destfile="dist/awesomeweaver.jar" update="yes">
<zipfileset src="@{dep}"/>
</jar>
</sequential>
</for>
</then>
</if>
<jar destfile="dist/awesomeweaver.jar" update="yes">
<manifest>
<attribute name="Manifest-Version" value="1.0"/>
<attribute name="Bundle-ClassPath" value="."/>
<attribute name="Implementation-Version" value="1.7.2"/>
<attribute name="Eclipse-BundleShape" value="jar"/>
<attribute name="Bundle-Name" value="AspectJ Weaver"/>
<attribute name="Created-By" value="1.7.0_21-b11 (Oracle Corporation)"/>
<attribute name="Premain-Class" value="org.aspectj.weaver.loadtime.Agent"/>
<attribute name="Bundle-RequiredExecutionEnvironment" value="J2SE-1.5"/>
<attribute name="Require-Bundle" value='org.aspectj.runtime;bundle-version="1.8.3";visibility:=reexport'/>
<attribute name="Bundle-Vendor" value="Eclipse AspectJ Development Tools"/>
<attribute name="Ant-Version" value="Apache Ant 1.9.4"/>
<attribute name="Implementation-Vendor" value="aspectj.org"/>
<attribute name="Bundle-Version" value="${ajdt_ver}"/>
<attribute name="Bundle-ManifestVersion" value="2"/>
<attribute name="Bundle-SymbolicName" value="org.aspectj.weaver"/>
<attribute name="Can-Redefine-Classes" value="true"/>
<attribute name="Export-Package" value='Export-Package: org.aspectj.apache.bcel;version="1.8.3",org.aspectj.apache.bcel.classfile;version="1.8.3",org.aspectj.apache.bcel.classfile.annotation;version="1.8.3",org.aspectj.apache.bcel.generic;version="1.8.3",org.aspectj.apache.bcel.util;version="1.8.3",org.aspectj.asm;version="1.8.3",org.aspectj.asm.internal;version="1.8.3",org.aspectj.bridge;version="1.8.3",org.aspectj.bridge.context;version="1.8.3",org.aspectj.util;version="1.8.3",org.aspectj.weaver;version="1.8.3",org.aspectj.weaver.ast;version="1.8.3",org.aspectj.weaver.bcel;version="1.8.3",org.aspectj.weaver.internal.tools;version="1.8.3",org.aspectj.weaver.loadtime;version="1.8.3",org.aspectj.weaver.loadtime.definition;version="1.8.3",org.aspectj.weaver.model;version="1.8.3",org.aspectj.weaver.patterns;version="1.8.3",org.aspectj.weaver.reflect;version="1.8.3",org.aspectj.weaver.tools;version="1.8.3"'/>
</manifest>
</jar>
<copy file="dist/awesomeweaver.jar" tofile="dist/org.aspectj.weaver_${ajdt_ver}.jar"/>
</target>
<target name="tools">
<mkdir dir="dist"/>
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
<var name="classpath" value=""/>
<if>
<isset property="deps"/>
<then>
<for list="${deps}" param="dep">
<sequential>
<var name="classpath" value="${classpath}${path.separator}@{dep}"/>
</sequential>
</for>
</then>
</if>
<var name="inpath" value="frontend/target/frontend-1.0-SNAPSHOT.jar"/>
<if>
<isset property="frontends"/>
<then>
<for list="${frontends}" param="frontend">
<sequential>
<var name="inpath" value="${inpath}${path.separator}@{frontend}"/>
</sequential>
</for>
</then>
</if>
<java fork="true" classname="org.aspectj.tools.ajc.Main">
<classpath>
<pathelement path="${aspectjrt}"/>
<pathelement path="${aspectjtools}"/>
<pathelement path="${classpath}"/>
</classpath>
<arg line="-Xlint:ignore"/>
<arg line="-inpath ${inpath}"/>
<arg line="-outjar dist/awesometools.jar"/>
</java>
<jar destfile="dist/awesometools.jar" update="yes">
<zipfileset src="libs/strategoxt.jar" includes="org/**"/>
<zipfileset src="libs/org.objectweb.asm_3.3.1.v201105211655.jar" includes="org/**"/>
<zipfileset src="libs/commons-io-2.4.jar" includes="org/**"/>
<manifest>
<attribute name="Bundle-ActivationPolicy" value="lazy"/>
<attribute name="Bundle-ClassPath" value="."/>
<attribute name="Eclipse-BundleShape" value="jar"/>
<attribute name="Bundle-Name" value="AspectJ"/>
<attribute name="Created-By" value="1.7.0_21-b11 (Oracle Corporation)"/>
<attribute name="Require-Bundle" value='org.apache.ant,org.eclipse.core.resources,org.eclipse.core.runtime,org.eclipse.core.runtime.compatibility,org.eclipse.text,org.aspectj.weaver;bundle-version="1.8.3";visibility :=reexport'/>
<attribute name="Ant-Version" value="Apache Ant 1.9.4"/>
<attribute name="Bundle-Vendor" value="Eclipse AspectJ Development Tools"/>
<attribute name="Bundle-Version" value="${ajdt_ver}"/>
<attribute name="Bundle-ManifestVersion" value="2"/>
<attribute name="Bundle-Activator" value="org.eclipse.core.internal.compatibility.PluginActivator"/>
<attribute name="Bundle-SymbolicName" value="org.aspectj.ajde; singleton:=true"/>
<attribute name="Export-Package" value="org.aspectj.ajde.core,org.aspectj.ajde.core.internal,org.aspectj.ajdt.ajc,org.aspectj.ajdt.compiler,org.aspectj.ajdt.core,org.aspectj.ajdt.core.dom,org.aspectj.ajdt.internal.compiler,org.aspectj.ajdt.internal.compiler.ast,org.aspectj.ajdt.internal.compiler.lookup,org.aspectj.ajdt.internal.compiler.parser,org.aspectj.ajdt.internal.compiler.problem,org.aspectj.ajdt.internal.core.builder,org.aspectj.org.eclipse.jdt.core,org.aspectj.org.eclipse.jdt.core.compiler,org.aspectj.org.eclipse.jdt.core.dom,org.aspectj.org.eclipse.jdt.core.dom.rewrite,org.aspectj.org.eclipse.jdt.core.eval,org.aspectj.org.eclipse.jdt.core.formatter,org.aspectj.org.eclipse.jdt.core.jdom,org.aspectj.org.eclipse.jdt.core.search,org.aspectj.org.eclipse.jdt.core.util,org.aspectj.org.eclipse.jdt.internal.codeassist,org.aspectj.org.eclipse.jdt.internal.codeassist.complete,org.aspectj.org.eclipse.jdt.internal.codeassist.impl,org.aspectj.org.eclipse.jdt.internal.codeassist.select,org.aspectj.org.eclipse.jdt.internal.compiler,org.aspectj.org.eclipse.jdt.internal.compiler.ast,org.aspectj.org.eclipse.jdt.internal.compiler.batch,org.aspectj.org.eclipse.jdt.internal.compiler.classfmt,org.aspectj.org.eclipse.jdt.internal.compiler.codegen,org.aspectj.org.eclipse.jdt.internal.compiler.env,org.aspectj.org.eclipse.jdt.internal.compiler.flow,org.aspectj.org.eclipse.jdt.internal.compiler.impl,org.aspectj.org.eclipse.jdt.internal.compiler.lookup,org.aspectj.org.eclipse.jdt.internal.compiler.parser,org.aspectj.org.eclipse.jdt.internal.compiler.parser.diagnose,org.aspectj.org.eclipse.jdt.internal.compiler.problem,org.aspectj.org.eclipse.jdt.internal.compiler.util,org.aspectj.org.eclipse.jdt.internal.core,org.aspectj.org.eclipse.jdt.internal.core.builder,org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite,org.aspectj.org.eclipse.jdt.internal.core.eval,org.aspectj.org.eclipse.jdt.internal.core.hierarchy,org.aspectj.org.eclipse.jdt.internal.core.index,org.aspectj.org.eclipse.jdt.internal.core.jdom,org.aspectj.org.eclipse.jdt.internal.core.search,org.aspectj.org.eclipse.jdt.internal.core.search.indexing,org.aspectj.org.eclipse.jdt.internal.core.search.matching,org.aspectj.org.eclipse.jdt.internal.core.search.processing,org.aspectj.org.eclipse.jdt.internal.core.util,org.aspectj.org.eclipse.jdt.internal.eval,org.aspectj.org.eclipse.jdt.internal.formatter,org.aspectj.org.eclipse.jdt.internal.formatter.old,org.aspectj.tools.ajc,org.aspectj.tools.ajdoc,org.aspectj.tools.ant.taskdefs,org.aspectj.tools.ant.taskdefs.compilers"/>
</manifest>
</jar>
<copy file="dist/awesometools.jar" tofile="dist/org.aspectj.ajde_${ajdt_ver}.jar"/>
</target>
<target name="clean">
<delete dir="dist"/>
</target>
</project>