如何在IntelliJ Idea中克隆整个项目? [英] How can I clone a whole project in IntelliJ Idea?

查看:1369
本文介绍了如何在IntelliJ Idea中克隆整个项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的项目中运行一些测试,但我不想影响
原始代码,我想克隆项目以便我可以在那里运行测试

I want to run some tests in my project but I do not want to affect the original code, and I wanto to clone the project so I can run tests there

有没有人知道如何在IntelliJ Idea 11上克隆项目?

Does anyone know how to clone a project on IntelliJ Idea 11?

推荐答案

使用操作系统文件资源管理器工具,只需将整个项目目录复制并粘贴到新的地方。默认情况下,所有配置都应使用相对路径。

Using your operating system File Explorer tool, just copy and paste the entire project directory somewhere new. All of the configuration should use relative paths by default.

如果你的IDEA项目是基于.ipr的,那么在打开项目之前删除新的.iws文件。
如果您的IDEA项目是基于.idea目录,则在打开项目之前删除workspace.xml文件。

If your IDEA project is .ipr based, then delete the new .iws file before opening the project. If your IDEA project is .idea directory based, then delete the workspace.xml file before opening the project.

这篇关于如何在IntelliJ Idea中克隆整个项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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