【问题标题】:Build product with ant4eclipse for windows on a linux machine在 linux 机器上使用 ant4eclipse 为 windows 构建产品
【发布时间】:2019-05-09 14:28:45
【问题描述】:

我们正在尝试使用 ant4eclipse 构建一个 RCP 应用程序。我们的构建服务器运行 Red Hat Linux。建筑物本身似乎正在运行,但结果是适用于 linux 的 application/x-executable。奇怪的是,我也无法让它在我的 Ubuntu 18.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 构建是否缺少任何东西,或者这里的某些参数可能有任何错误?

提前致谢。

【问题讨论】:

    标签: build cross-platform ant4eclipse


    【解决方案1】:

    解决方案实际上很简单。奇怪的是,te buildProduct makro 似乎无法识别我设置 platformConfigurationId 的设置。我检查了 ant4eclipse 宏文件,发现 buildProduct 宏还接受一个“platformConfigurationId”参数,该参数默认为空字符串 - 因此构建产品的平台。 路过

    platformConfigurationId="win32.win32.x86"
    

    为了构建产品,我设法获得了适合 Windows 的产品。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-12-11
      • 2014-06-21
      • 2012-12-19
      • 2016-08-18
      • 2022-12-18
      • 1970-01-01
      • 1970-01-01
      • 2019-06-29
      相关资源
      最近更新 更多