0

我在 Eclipse 3.6 中开发了几个简单的插件项目,作为 rcp 应用程序的一部分。我也有一个非常简单的方面。我已阅读 Andrew Eisenberg 的文章 (http://contraptionsforprogramming.blogspot.com/2010/03/ajdt-pde-builds-redux.html) 关于从 eclipse 3.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 无头构建,所以我不清楚以下条目应该放在哪里:

compilerAdapter=org.eclipse.ajdt.core.ant.AJDT_AjcCompilerAdapter
sourceFileExtensions=*.java, *.aj

请帮我。感谢您的时间!!!

4

1 回答 1

1

您需要将上述属性添加到build.properties您正在编译的每个需要 AspectJ 的插件的文件中。

于 2012-05-04T19:03:13.647 回答