root用户登陆,用vi编辑器修改root目录下的".bash_profile"属性文件,假设Ant安装在/user/local/ant目录下,要在文件的最后加上"exportANT_HOME=/user/local/ant"和"export
PATH=$PATH:$ANT_HOME/bin"
1.下载安装包:wget
apache-ant-1.8.1-bin.tar.gz
(具体地址,自己搜索)
2.解压缩:
tar
-xzvf
apache-ant-1.8.1-bin.tar.gz
3.切换到解压目录:
cd
apache-ant-1.8.1
4.复制:
cp
-arp
*
/usr/local/ant
5.PATH
设置:
echo
'export
PATH=$PATH:/usr/local/ant/bin'>>/etc/profile
6.ANT_HOME
设置:
echo
'export
ANT_HOME=/usr/local/ant'>>/etc/profile
7.本次登陆
PATH
设置:
export
PATH=$PATH:/usr/local/ant/bin
8.本次登陆
ANT_HOME
设置:
export
ANT_HOME=/usr/local/ant
如果linux上已经装有了svn命令行工具的话,那么就可以直接按照把svnant里面的相关的jar放到ant的lib目录下使用就可以了。其内容如下:
Making SvnAnt use JavaSVN
Step-by-step instructions:
Remove existing javahl.jar and svnClientAdapter.jar (libraries distirbuted with the svnant) from your Ant classpath (ANT_HOME/lib/ directory).
Download latest version of JavaSVN library. You will need javasvn.jar and javasvn-javahl.jar files from the library distribution.
Get patched version of svnClientAdapter.jar (version 0.9.32).
Put javasvn.jar, javasvn-javahl.jar and svnClientAdapter-0.9.32.jar files on your Ant classpath (ANT_HOME/lib/ directory).
After performing the steps above svnant will use JavaSVN instead of JavaHL bindings.
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)