如何从svn编译代码到jar文件? [英] how to compile code from svn into jar file?

查看:157
本文介绍了如何从svn编译代码到jar文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现HTMLUnit对我有用,但文件太旧了。
所以我使用 svn co <​​a href=\"https://htmlunit.svn.sourceforge.net/svnroot/htmlunit\" rel=\"nofollow\"> https://htmlunit.svn。 sourceforge.net/svnroot/htmlunit htmlunit 来检查代码,但我不知道如何使用它们。



有没有人可以告诉我如何编译它们?

解决方案

我看到你对Subversion知之甚少。

我可以链接到许多冗长的文档,但让我们快速和容易:您下载的是整个存储库,包含大量冗余代码,主要是三个标准目录 branches 标签 c $ c>。



为了获取可用的代码,您可以下载一个稳定版本(标签)或不稳定版本(中继)。



尝试获取以下URL: https://htmlunit.svn.sourceforge.net/svnroot/htmlunit/tags/HtmlUnit-2.8/ ,然后你可以尝试 ant 来构建(我不是Java专家,包是否有一个ant脚本?)


I found HTMLUnit is useful for me,but the files are too old. So I use svn co https://htmlunit.svn.sourceforge.net/svnroot/htmlunit htmlunit to check the code,But I don't know how to use them.

Is there somebody can tell me how to compile them?

解决方案

I see you have very little knowledge of Subversion.

I could link you to lots of verbose documentation, but let's make it quick and easy: what you downloaded is the whole repository, containing lots of redundant code, majorly the three canonical directories branches tags trunk.

In order to obtain usable code, you either download a stable (tag) version or unstable version (trunk). Advantage of trunk over tag is that it mostly contains new features, but tags are generally stable.

Try to get the following URL: https://htmlunit.svn.sourceforge.net/svnroot/htmlunit/tags/HtmlUnit-2.8/, then you could try ant to build (I'm no Java expert, does the package have an ant script?)

这篇关于如何从svn编译代码到jar文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆