简体   繁体   中英

unable to perform headless PDE build using AJDT in eclipse 3.6

i have several simple plugin projects being developed in eclipse 3.6 as part of an rcp application. i also have a very simple aspect. i have read Andrew Eisenberg's article (http://contraptionsforprogramming.blogspot.com/2010/03/ajdt-pde-builds-redux.html) on phasing out ajdt-pde build approach starting in eclipse 3.6, and that allowed me to make the my application work directly in eclipse. however, our official build is headless using Ant, and the following block is how it is compiled:

<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>

because build.properties is not involved in Ant-based PDE headless build, i am not clear as to where the following entries should be placed:

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

please help me. thank you for your time!!!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM