Ant での Pre/Post 処理のカスタマイズ
NetBeans のビルドスクリプトの猿真似ですが :-D.
$ ant compile Buildfile: build.xml -pre-compile: -do-compile: [echo] compile -post-compile: [echo] overrided post-compile compile: BUILD SUCCESSFUL Total time: 0 seconds $ cat build.xml <?xml version="1.0" encoding="utf-8"?> <project name="test"> <import file="build-impl.xml"/> <target name="-post-compile"> <echo message="overrided post-compile"/> </target> </project> $ cat build-impl.xml <?xml version="1.0" encoding="utf-8"?> <project name="build-impl"> <target name="compile" depends="-pre-compile, -do-compile, -post-compile"/> <target name="-do-compile"> <echo message="compile"/> </target> <target name="-pre-compile"/> <target name="-post-compile"/> </project>