2010-11-05 27 views
0

我正在尝试从源代码构建BIRT 2.5.2来修复一些错误(我知道BIRT 2.6,但并非我们所有的客户都在BIRT 2.6中)。建设BIRT与PDE

我下载了BIRT 2.5.2源ZIP文件,并在那里找到了几个产品文件。我解压缩源代码,将功能和插件复制到构建目录。现在我运行这个build.xml文件:

<target name="pde-build"> 
    <java classname="org.eclipse.equinox.launcher.Main" fork="true" failonerror="true"> 
     <arg value="-application" /> 
     <arg value="org.eclipse.ant.core.antRunner" /> 
     <arg value="-buildfile" /> 
     <arg value="${eclipseLocation}/plugins/org.eclipse.pde.build_${pdeBuildPluginVersion}/scripts/productBuild/productBuild.xml" /> 
     <arg value="-Dtimestamp=${timestamp}" /> 
     <arg value="-verbose" /> 
     <classpath> 
      <pathelement location="${eclipseLocation}/plugins/org.eclipse.equinox.launcher_${equinoxLauncherPluginVersion}.jar" /> 
     </classpath> 
    </java> 
</target> 

但我得到这个错误:

eclipse-3.5.2/plugins/org.eclipse.pde.build_3.5.2.R35x_20100114/scripts/productBuild/productBuild.xml:64: 
Unable to find element: /org.eclipse.birt.report.engine/ReportEngineSDK.product 

在我的build.properties,我说:

product=/org.eclipse.birt.report.engine/ReportEngineSDK.product 

,有一个文件build/plugins/org.eclipse.birt.report.engine/ReportEngineSDK.product

我的猜测是Eclipse有某种类型的搜索路径来查找产品文件。

我必须在build.xml/.properties中指定什么来使productBuild.xml选取产品文件?

回答

0

看来我需要属性中.product文件的完整路径。

另外,ReportEngineSDK.product已过时。改为使用.../features/org.eclipse.pde.build.container.feature/product/BIRT.product