我有几个简单的插件项目是作为rcp应用程序的一部分在eclipse 3.6中开发的。我也有一个非常简单的方面。我读过Andrew Eisenberg的文章(http://contraptionsforprogramming.blogspot.com/2010/03/ajdt-pde-builds-redux.html)关于从eclipse3.6开始逐步淘汰ajdt-pde构建方法,这让我的应用程序可以直接在eclipse中工作。然而,我们的官方构建使用Ant是无头的,下面的代码块是如何编译的:
<target name="compile">
<java classname="org.eclipse.equinox.launcher.Main" fork="true" failonerror="true" dir="some-dir">
<arg value="-application" />
<arg value="org.eclipse.ant.core.antRunner" />
<arg value="-buildfile" />
<arg value="${eclipse.location}/plugins/org.eclipse.pde.build_${some-version}/scripts/productBuild/productBuild.xml" />
<arg value="-Dtimestamp=${timestamp}" />
<arg value="-propertyfile" />
<arg value="${some-dir}/ant.properties" />
<classpath>
<pathelement
location="${eclipse.location}/plugins/org.eclipse.equinox.launcher_${some-version}.jar" />
</classpath>
</java>
</target>因为build.properties不参与基于Ant的PDE headless构建,所以我不清楚以下条目应该放在哪里:
compilerAdapter=org.eclipse.ajdt.core.ant.AJDT_AjcCompilerAdapter
sourceFileExtensions=*.java, *.aj请帮帮我。感谢您的宝贵时间!
发布于 2012-05-05 03:03:14
您需要将上述属性添加到您正在编译的每个需要AspectJ的插件的build.properties文件中。
https://stackoverflow.com/questions/10452355
复制相似问题