NAnt常用Target:clean
2006-03-26 22:46
381 查看
此Target用于清除NAnt生成的文件。
首先,需要添加一个property:
<
property
name
="bin_dir"
value
="bin"
/>
用于定义需要删除的目录。
然后,添加一个Target:
<target name="clean">
<delete dir="${bin_dir}" />
</target>
这个Target仅仅删除了生成的bin目录,项目中可能还会生成doc等目录。若需要删除这些目录,只需要再定义property和delete指令即可。
首先,需要添加一个property:
<
property
name
="bin_dir"
value
="bin"
/>
用于定义需要删除的目录。
然后,添加一个Target:
<target name="clean">
<delete dir="${bin_dir}" />
</target>
这个Target仅仅删除了生成的bin目录,项目中可能还会生成doc等目录。若需要删除这些目录,只需要再定义property和delete指令即可。
相关文章推荐
- “make clean” results in “No rule to make target `clean'”
- linux下各类常用make命令解释(make/make clean/make distclean)
- 实战 CruiseControl.NET+NAnt(三)- NAnt及NAntContrib常用任务
- css压缩工具clean-css -- nodejs常用模块(5)
- 学习ubuntu--常用命令(二)autoremove, remove, clean
- ThinkDev.Logging-Target常用属性解释
- 我常用的自定义函数之clean php自动过滤功能
- jQuery之常用且重要方法梳理(target,arguments,slice,substring,data,trigger,Attr)-(一)
- 新安装CCS 后编译出现问题:gmake:No rule to make target clean
- 关于make: *** No rule to make target `clean'. Stop.的解决
- gulp常用插件-gulp-clean-css
- 编译u-boot的时候出现的错误ERROR: Source object lib_generic/libgeneric.a(crc16.o) has EABI version 0, but target u-boot has EABI version 4 记住make distclean
- CSS3常用的结构性伪类选择器①:root not empty target
- make TARGET_PRODUCT=am335xevm OMAPES=4.x rowboat_clean 出现sgx相关的错误
- 实战 CruiseControl.NET+NAnt(三)- NAnt及NAntContrib常用任务
- ISCSI Target 的常用配置和常用操作(备忘)
- Maven 常用参数之:Java 源文件编码、-source 和 -target 参数
- 55.Oracle杂记——Oracle常用动态视图v$PGA_TARGET_ADVICE
- make: *** No rule to make target `clean'(archive). Stop.
- CocoaPods详解之----Podfile.lock文件 Podfile文件 Podfile和target CocoaPods常用命令