命名蚂蚁目标的最佳做法是什么?

Ale*_*x B 7 java ant naming-conventions

命名蚂蚁目标的最佳做法是什么?

例如,您希望目标"测试"运行什么?所有单元测试?所有功能测试?都?

用于运行不同类型测试的标准名称(单位/功能/全部)是什么?是否有目标名称标准在J2SE中部署软件?在J2EE?

我的项目使用ant作为带有junit,Swing应用程序和J2EE应用程序的java项目.

dav*_*vid 13

请参阅本页的"命名约定"部分:Ant样式的元素

以下目标对于许多构建是通用的.始终避免更改已知目标名称的行为.您不需要在单个项目中实现所有这些.

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. 
Run Code Online (Sandbox Code Playgroud)

此页面还提供了其他良好的指导.


Lud*_*erl 6

对于我的java项目,我使用maven默认生命周期中定义的名称作为基础.对于其他项目,我也使用了GNU autoconf标准目标.