Skip to content

Instantly share code, notes, and snippets.

@tosik
Last active December 22, 2015 15:09
Show Gist options
  • Select an option

  • Save tosik/6490405 to your computer and use it in GitHub Desktop.

Select an option

Save tosik/6490405 to your computer and use it in GitHub Desktop.

Ant ビルドファイルのリファクタリング

ThoughtWorks アンソロジーの 10章 Ant ビルドファイルのリファクタリング p154 の項目抜き出し

  • macrodef の抽出
  • ターゲットの抽出
  • 宣言の導入
  • 依存による call の置き換え
  • filtersfile の導入
  • プロパティファイルの導入
  • ターゲットのラッパービルドファイルへの移動
  • description によるコメントの置き換え
  • デプロイ用コードの import 先への分離
  • 要素の antlib への移動
  • fileset による多数のライブラリ定義の置き換え
  • 実行時プロパティの移動
  • ID を用いた要素の再利用
  • プロパティターゲット外部への移動
  • location による value 属性の置き換え
  • build.xml 内へのラッパースクリプトの取り込み
  • taskname 属性の追加
  • 内部ターゲットの強制
  • 出力ディレクトリの親ディレクトリへの移動
  • apply による exec の置き換え
  • CI Publisher の利用
  • 明確なターゲット名の導入
  • ターゲット名の名詞への変更

続きは本で!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment