命名 ant 目标的最佳实践是什么?
例如,您希望目标“测试”运行什么?所有单元测试?所有功能测试?两个都?
用于运行不同类型测试(单元/功能/全部)的标准名称是什么?在 J2SE 中部署软件的目标名称是否有标准?在J2EE 中?
我的项目将 ant 用于包含 junit、Swing 应用程序和 J2EE 应用程序的 java 项目。
See the 《命名约定》 section http://wiki.apache.org/ant/TheElementsOfAntStyle#Naming_conventions在本页 :蚂蚁风格的要素 http://wiki.apache.org/ant/TheElementsOfAntStyle
以下目标对于许多构建都是通用的。始终避免改变
众所周知的目标名称的行为。您不需要实施
所有这些都在一个项目中。
all Build and test everything; create a distribution, optionally install.
clean Delete all generated files and directories.
deploy Deploy the code, usually to a remote server.
dist Produce the distributables.
distclean Clean up the distribution files only.
docs Generate all documentation.
init Initialize the build: create directories, call <tstamp> and other common actions.
install Perform a local installation.
javadocs Generate the Javadoc pages.
printerdocs Generate printable documents.
test Run the unit tests.
uninstall Remove a local installation.
此页面还提供了其他很好的指南。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)