我最近发现有几个有用的模板(在 Eclipse 中)可以添加到脚本中。其中包括“公共目标”和“私人目标”。这里是模板:
公共目标
<!-- =================================
target: name
================================= -->
<target name="name" depends="depends" description="description">
</target>
私人目标
<!-- - - - - - - - - - - - - - - - - -
target: name
- - - - - - - - - - - - - - - - - -->
<target name="name">
</target>
我不明白。主要区别是什么?私人目标是什么意思?它是 ant 脚本中的某些特定功能还是只是代码美化?
只是有趣。