- Fixed removal of java/lang/Object
- Better naming of variables git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114537 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7b1850dacb
commit
274e993527
@ -197,19 +197,19 @@
|
||||
|
||||
<!-- Parse all known source directories -->
|
||||
<j:forEach var="srcDir" items="${srcDirs}">
|
||||
<aw:aspectc src="${srcDir}" dest="${maven.build.dest}"/>
|
||||
<aw:aspectc javaSrc="${srcDir}" classSrc="${maven.build.dest}"/>
|
||||
</j:forEach>
|
||||
|
||||
<!-- Parse non-production aspects if source directory has been defined -->
|
||||
<j:if test="${context.getVariable('maven.aspectwerkz.src.dir') != null}">
|
||||
<aw:aspectc src="${maven.aspectwerkz.src.dir}"
|
||||
dest="${maven.aspectwerkz.build.dest}"/>
|
||||
<aw:aspectc javaSrc="${maven.aspectwerkz.src.dir}"
|
||||
classSrc="${maven.aspectwerkz.build.dest}"/>
|
||||
</j:if>
|
||||
|
||||
<!-- AspectC currently has a bug in that it creates a java.lang.Object class file in the output directory. Until
|
||||
this is fixed, we need to remove that files. Otherwise, AspectWerkc will try to instrument it, which will
|
||||
lead to an error... -->
|
||||
<ant:delete file="${maven.build.dest}/java/lang/Object.class"/>
|
||||
<ant:delete file="${maven.aspectwerkz.weave.build.dir}/java/lang/Object.class"/>
|
||||
|
||||
</j:if>
|
||||
|
||||
@ -275,12 +275,12 @@
|
||||
<define:taglib uri="aspectwerkz">
|
||||
|
||||
<!--
|
||||
@param src source directory that will be parsed
|
||||
@param dest path where compiled sources are located
|
||||
@param javaSrc source directory that will be parsed
|
||||
@param classSrc path where compiled sources are located
|
||||
-->
|
||||
<define:tag name="aspectc">
|
||||
|
||||
<ant:echo>Parsing [${src}] using [${dest}] ...</ant:echo>
|
||||
<ant:echo>Parsing [${javaSrc}] using [${classSrc}] ...</ant:echo>
|
||||
|
||||
<ant:java dir="${maven.build.dir}" failonerror="true" fork="true"
|
||||
classname="org.codehaus.aspectwerkz.attribdef.definition.AspectC">
|
||||
@ -290,10 +290,10 @@
|
||||
</j:if>
|
||||
|
||||
<!-- Path to source dir -->
|
||||
<ant:arg file="${src}"/>
|
||||
<ant:arg file="${javaSrc}"/>
|
||||
|
||||
<!-- Path to classes dir -->
|
||||
<ant:arg file="${dest}"/>
|
||||
<ant:arg file="${classSrc}"/>
|
||||
|
||||
<!-- (optional) Path to where weaved classes will be generated -->
|
||||
<ant:arg file="${maven.aspectwerkz.weave.build.dir}"/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user