我们正在尝试使用ant4eclipse构建一个RCP应用程序。我们的构建服务器运行Red Hat Linux。构建本身看起来正在工作,但结果是linux的application/x可执行文件。奇怪的是,我也不能让它在我的Ubuntu18.04笔记本电脑上运行,但我想这可能与发行版不兼容。无论哪种方式,构建似乎都是为运行构建脚本的平台构建产品,但我们需要一个适用于windows的.exe文件。在脚本中,我们有以下属性:
<ant4eclipse:platformConfiguration id="win32.win32.x86"
windowingSystem="win32"
operatingSystem="win32"
architecture="x86" />在构建产品时,我们使用以下参数:
<buildProduct
workspaceDirectory="${workspaceDirectory}"
productfile="${productFile}"
targetPlatformId="target.platform"
destination="${targetDirectory}"
clearDestination="true"
os="win32"
debug="true"/> 是否遗漏了什么东西来告诉ant4eclipse为windows构建,或者这里的某些参数是否有任何错误?
提前谢谢。
发布于 2019-05-14 16:06:26
解决方案实际上相当简单。奇怪的是,te buildProduct makro似乎没有识别出我设置platformConfigurationId的设置。我检查了ant4eclipse宏文件,发现buildProduct宏也接受"platformConfigurationId“参数,该参数缺省为空字符串--即构建产品的平台。通过传递
platformConfigurationId="win32.win32.x86"为了buildProduct,我设法得到了一个适合Windows的产品。
https://stackoverflow.com/questions/56061695
复制相似问题