root用户登陆,用vi编辑器修改root目录下的".bash_profile"属性文件,假设Ant安装在/user/local/ant目录下,要在文件的最后加上"exportANT_HOME=/user/local/ant"和"export
PATH=$PATH:$ANT_HOME/bin"
如果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条)