I use subversion for source control and svn:externals to manage libraries. Since you're using Mercurial, you might have a look at using subrepositories.
Subrepositories is a feature that allows you to treat a collection of repositories as a group. This will allow you to clone, commit to, push, and pull projects and their associated libraries as a group.
You never want to have multiple copes if your source code.
Simple way -> Have subprojects compile down to a .jar. Include the .jar in your main project. When you change a subproject, make a new .jar and copy it down.
Better way -> Use something like Maven to manage it for you
发布评论
评论(2)
我使用 subversion 进行源代码控制,使用 svn:externals 来管理库。由于您使用的是 Mercurial,因此您可能会考虑使用子存储库。
祝你好运!
I use subversion for source control and svn:externals to manage libraries. Since you're using Mercurial, you might have a look at using subrepositories.
Good luck!
如果您的源代码是您永远不想拥有多个副本的。
简单的方法->将子项目编译为 .jar。将 .jar 包含在您的主项目中。当你改变一个子项目时,创建一个新的.jar并将其复制下来。
更好的方法->使用 Maven 之类的东西来为你管理它
You never want to have multiple copes if your source code.
Simple way -> Have subprojects compile down to a .jar. Include the .jar in your main project. When you change a subproject, make a new .jar and copy it down.
Better way -> Use something like Maven to manage it for you