Flash builder 4 - 使用外部 build-config.xml(不是 Ant)更改输出文件名

发布于 2024-08-31 04:32:41 字数 884 浏览 0 评论 0原文

我正在尝试使用通过编译器选项 -load-config 加载的配置文件来更改输出文件名。在我的编译器参数中看起来像这样:

-load-config+=build-config.xml.

我尝试了以下方法:

<flex-config>
    <o>absolute/path/to/filename</o>
</flex-config>

and

<flex-config>
    <output>absolute/path/to/filename</output>
</flex-config>

<flex-config>
    <compiler>
        <o>absolute/path/to/filename</o>
    </compiler>
</flex-config>

and

<flex-config>
    <compiler>
        <output>absolute/path/to/filename</output>
    </compiler>
</flex-config>

但没有一个起作用。我在 PC 上使用 Flash Builder 4。还有其他人这样做过吗?另外,理想情况下,我想使用相对路径而不是绝对路径。我也无法让它工作,即使我在项目配置的“附加编译器参数”字段中这样做。

提前致谢!

I'm trying to change the output filename with a config file loaded via the compiler option -load-config. It looks like this in my compiler arguments:

-load-config+=build-config.xml.

I've tried the following:

<flex-config>
    <o>absolute/path/to/filename</o>
</flex-config>

and

<flex-config>
    <output>absolute/path/to/filename</output>
</flex-config>

and

<flex-config>
    <compiler>
        <o>absolute/path/to/filename</o>
    </compiler>
</flex-config>

and

<flex-config>
    <compiler>
        <output>absolute/path/to/filename</output>
    </compiler>
</flex-config>

but none have worked. I'm on a PC using Flash Builder 4. Has anyone else done this? Also, ideally, I want to use a relative path instead of absolute. I can't get this to work either, even if I do so in the "additional compiler arguments" field of the Project configuration.

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

对你再特殊 2024-09-07 04:32:41

你很接近:)

<?xml version="1.0"?>
<flex-config>
    <compiler>
        ...
    </compiler>
    <!-- Needs to be outside of compiler tag -->
    <output>bin/swf/MyApp.swf</output>
</flex-config>

You were close :)

<?xml version="1.0"?>
<flex-config>
    <compiler>
        ...
    </compiler>
    <!-- Needs to be outside of compiler tag -->
    <output>bin/swf/MyApp.swf</output>
</flex-config>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文