« Return to Thread: アプリケーションの画面にSubversionのrevisionを取り込むには?

Re: アプリケーションの画面にSubversionのrevisionを取り込むには?

by Spiky-2 :: Rate this Message:

Reply to Author | View in Thread

原田様、Ashizawa様

苑田です。

お礼が遅くなり申し訳ありません。
最終的にAshizawa様に教えていただいたsvn infoコマンドを使うことにより、
NetBeansのbuild.xmlに以下を追記して、配布用プログラムの配置される
distディレクトリに結果をリダイレクトしたファイルを作っておいて、

    <target name="-post-jar" description="ビルドナンバーを取得してファイルに出力します。">
        <!-- Empty placeholder for easier customization. -->
        <!-- You can override this target in the ../build.xml file. -->
        <exec dir="${basedir}" executable="svn.exe" os="Windows XP"
output="${dist.dir}\build-number.xml">
            <arg line="info --xml .\"/>
        </exec>
    </target>

プログラムよりこのファイルを実行時に読み込んで、アプリケーションの
(たとえばabout画面)に表示することが出来ました。

どうもありがとうございました。

---------------------------------------------------------------------
To unsubscribe, e-mail: nbdiscuss_ja-unsubscribe@...
For additional commands, e-mail: nbdiscuss_ja-help@...

 « Return to Thread: アプリケーションの画面にSubversionのrevisionを取り込むには?

LightInTheBox - Buy quality products at wholesale price