Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 506 Bytes

ig170121.src.md

File metadata and controls

15 lines (12 loc) · 506 Bytes

[Ant] 正規表現 [regex] を Ant の中で利用する方法

以下のような記述にて [[Apache]] [[Ant]] 中で [[regex]] を実行することが可能になります。

		<replaceregexp encoding="UTF-8" byline="true">
			<regexp pattern="pat" />
			<substitution expression="replace" />
			<fileset dir=".">
				<include name="**/*.txt" />
			</fileset>
		</replaceregexp>

定型的に文字列を置き換える手順がある場合に、この機能はとても便利です。