【问题】
折腾:
期间,出现找不到ant的问题。
【解决过程】
1. 参考:
E:\Dev_Root\docbook\tools\ant\apache-ant-1.8.4\INSTALL
中的说明,找到:
http://ant.apache.org/manual/index.html
中的:
Only the bin and lib directories are required to run Ant. To install Ant, choose a directory and copy the distribution files there. This directory will be known as ANT_HOME.SetupBefore you can run Ant there is some additional set up you will need to do unless you are installing the RPM version from jpackage.org:
Windows Note: The ant.bat script makes use of three environment variables – ANT_HOME, CLASSPATH and JAVA_HOME. Ensure that ANT_HOME and JAVA_HOME variables are set, and that they do not have quotes (either ‘ or ") and they do not end with \ or with /. CLASSPATH should be unset or empty. |
2.所以去:
(1)设置ANT_HOME
ANT_HOME=E:\Dev_Root\docbook\tools\ant\apache-ant-1.8.4 |
(2)把bin目录加到path中
path中加上:
%ANT_HOME%\bin; |
然后cygwin中,就可以找到ant了:
rm -rf ../output/html/multi/* clean: BUILD SUCCESSFUL E:\Dev_Root\docbook\dev\books> |
【总结】
修复ant环境,相对比较简单,只是加上ANT_HOME,以及%ANT_HOME%\bin加到path中,基本就行了。