1

コンパイラ オプション -load-config を介してロードされた構成ファイルで出力ファイル名を変更しようとしています。コンパイラの引数では次のようになります。

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

私は次のことを試しました:

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

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

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

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

しかし、どれも機能していません。私は Flash Builder 4 を使用している PC を使用しています。他の誰かがこれを実行しましたか? また、理想的には、絶対パスではなく相対パスを使用したいと考えています。プロジェクト構成の「追加のコンパイラ引数」フィールドで行っても、これを機能させることはできません。

前もって感謝します!

4

1 に答える 1

0

あなたは近かった:)

<?xml version="1.0"?>
<flex-config>
    <compiler>
        ...
    </compiler>
    <!-- Needs to be outside of compiler tag -->
    <output>bin/swf/MyApp.swf</output>
</flex-config>
于 2013-01-18T13:36:23.443 に答える