简体   繁体   English

我是否将ProjectA或ProjectA / src提交给SVN?

[英]Do I commit ProjectA or ProjectA/src to SVN?

In Java , I've been recommended not to commit the bin folder (with .class files), the lib folder (for external Jar files) or the .project or .classpath files. Java ,我建议不要提交bin文件夹(带.class文件), lib文件夹(用于外部Jar文件)或.project.classpath文件。

This would leave src (source code) and test (unit tests). 这将留下src (源代码)和test (单元测试)。

Given this, is it best practice to instantiate on the SVN repository separately ProjectA/src and ProjectB/test , thus creating two .svn folders in these two folders? 鉴于此,最好的做法是在SVN存储库上单独实例化ProjectA/srcProjectB/test ,从而在这两个文件夹中创建两个.svn文件夹? Or would I still only ever instantiate the entire ProjectA first off? 或者我是否仍然只会首先实例化整个ProjectA

Tests are an integral part of the ProjectA project, and you definitely want them in the same repository as the sources that they test. 测试是ProjectA项目不可或缺的一部分,您肯定希望它们与它们测试的源位于同一个存储库中。

And you probably have (or will have) other directories in your project (documentation, build file, scripts, etc.). 而且您可能已经(或将拥有)项目中的其他目录(文档,构建文件,脚本等)。 So put the project root directory under SVN, and make sure to ignore the bin directory. 所以将项目根目录放在SVN下,并确保忽略bin目录。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 gradle - ProjectB 缺少 ProjectA 依赖项 - gradle - ProjectB missing ProjectA dependencies 在projectB编译之前,如何将projectA的源代码复制到projectB中? - How can I copy the source code of projectA into projectB before projectB compiles? 如何在Maven的ProjectB中使用ProjectA的依赖关系? - How to use dependency of ProjectA in ProjectB in maven? 如何让java注释处理器从projectA读取和处理注释,并为projectB生成java源文件 - How to have a java annotation processor read and process annotations from projectA and generate java source files for projectB 在我的项目的模块 1 中有多个类。 那些多个类使用不同版本的 projectA - In Module 1 of my project has multiple classes. Those multiple classes are using different versions of projectA 项目“ProjectA”中的源文件夹“folder1”无法输出到 Eclipse 中的不同源文件夹“folder2” - Source Folder 'folder1' in project 'ProjectA' cannot output to distinct source folder 'folder2' in Eclipse 在Intellij-IDEA中执行svn提交之前,如何运行命令? - How do I run a command before I do an svn commit in Intellij-IDEA? Eclipse:为什么即使未将library-jar标记为已导出,ProjectA的library-jar仍可以访问ProjectB的library-jar? - Eclipse: Why can a library-jar of ProjectA access a library-jar of ProjectB even though the library-jar isn't marked as exported? 为什么Eclipse会尝试将我的.svn文件夹从src复制到bin,如何让它停止? - Why is Eclipse trying to copy my .svn folders from src to bin, and how can I make it stop? 在SVN提交期间运行作业 - Run a job during a SVN commit
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM