Programing

Eclipse에서 다른 폴더로 프로젝트 이동

lottogame 2020. 6. 16. 21:29
반응형

Eclipse에서 다른 폴더로 프로젝트 이동


일반적으로 작업중인 프로젝트가 데스크탑의 폴더에 있습니다. 그들이 완료되면 난 그냥로 이동합니다 c:\dev\. 문제는 다소 오래된 방식으로하고 있다는 것입니다.

1. move project files
2. delete project on Eclipse
3. create new project on Eclipse on the new location

너희들은 어떻게 프로젝트를 움직 일까?

파일-> 속성-> 리소스-> 위치 경로를 변경할 수 있으면 간단합니다.

이동 예 :

c:\user\desktop\project_123
c:\dev\project_123

패키지 탐색기에서 Eclipse 프로젝트를 마우스 오른쪽 단추로 클릭하고 리 팩터를 선택한 후 이동 ...을 선택하십시오. 대화 상자가 나타나면 새 위치를 입력하거나 탐색 한 후 확인을 클릭하십시오. 이것은 또한 CVS 또는 다른 SCM 메타 데이터를 보존하지만 모든 수정 사항도 가져 오며, 작업 세트, 실행 구성 또는 Eclipse가 프로젝트와 연관시키는 기타 항목의 멤버십을 잃지 않습니다.


Eclipse의 Move 메뉴 항목 사용

네비게이터보기를 열고 프로젝트를 마우스 오른쪽 단추로 클릭 한 후 이동을 클릭하십시오. 그런 다음 대상 디렉토리를 선택하십시오.

Navigator View > Right Click > Move

패키지 탐색기에서는 작동하지 않는 것 같습니다 (적어도 네온에서는 작동하지 않음). 패키지 탐색기의 이동 대화 상자가 다르므로 탐색기 창을 사용하십시오.

여기에 이미지 설명을 입력하십시오

여기에 이미지 설명을 입력하십시오


이 게시물의 날짜 이후 이클립스가 수정을했는지 여부를 모르겠습니다 ... 제 경우에는 프로젝트 폴더를 수동으로 옮기고 Eclipse 가이 새로운 위치에서 프로젝트를 열기를 원했습니다. 이것이 내가 한 일입니다 (그리고 작동하는 것 같습니다).

  • (이클립스 "helios"v 3.6.2를 사용하고 있습니다)

  • 파일 메뉴 | 가져 오기 ...

  • 일반 | 작업 공간으로의 기존 프로젝트

  • 새 위치에서 루트 디렉토리 = 프로젝트의 최상위 디렉토리를 선택하십시오.


Eclipse에서 소스 제어가 아닌 프로젝트는 거의 없으므로 새 위치에서 프로젝트를 확인하기 만하면됩니다.

소스 제어가없는 경우 Eclipse는 기본적으로 CVS와 함께 작동하며 서버없이 로컬에서 실행되도록 CVS를 설정하는 것은 매우 간단합니다. http://www.tortoisecvs.org/faq.html#cvsinit


다른 모든 것이 실패 할 때 :

한 디렉토리에서 Eclipse 프로젝트를 old_dir이라고하고 다른 디렉토리로 복사합니다 (new_dir이라고 함).

  1. Eclipse를 열고 new_dir에 복사 된 작업 디렉토리를 지정하십시오.

  2. Once it opens the project in the this new_dir, the projects listed under Project Explorer Tab might still be the ones contained in the old_dir (you can check it by right clicking each and following through: "Resource -> Linked Resource" to see the Path Variables values). Thus, they have to be removed from this work space. Delete the Nios 2 Application Project and the BSP Project from the Project Explorer Tab by right clicking on it and selecting Delete option which will pop a new window. In the pop-up window, make sure that the Delete project contents on disk check box is UNCHECKED before clicking OK to delete the Projects. Otherwise, it will delete it from the old_dir where you copied the project from.

  3. Right click in the Project Explorer Tab Area → Import → General → Existing Projects into Workspace and add the copied Nios2 Application Project and the BSP Project from the new_dir.

  4. Right click in the Project Explorer Tab Area → Index → Rebuild, otherwise the Nios2 Application Project will not be able to use the includes provided by the BSP Project.

  5. Click on Project → Clean → OK to clean and rebuild the whole project.

  6. When using console to talk to the NIOS, make sure elf's path is updated to the new project directory as well!


I copied the whole project to a new directory. After setting Eclipse to the new workspace it recognises the project instantly. Thus it was nothing further to do. I use Eclipse IDE for C/C++ Developers, Version Luna Service Release 2 (4.4.2).


For Eclipse Oxygen, to move a Java project, djb's accepted answer works well (in my experience just now), except having read comment by Basic May 14 '12 at 9:27, I tried to add my project XMLDiff to C:...\SVN\trunk\Internal Projects, and I got a failure with the rather cryptic message:

Problems encountered while moving resources.

Resource already exists on disk.

I had to move the project to C:...\SVN\trunk\Internal Projects\XMLDiff by creating a new folder, XMLDiff, in the browse dialog, and the result was C:...\SVN\trunk\Internal Projects\XMLDiff, not C:...\SVN\trunk\Internal Projects\XMLDiff\XMLDiff.

So this must have changed between Basic's experience in 2012 and Eclipse.3.


For Eclipse Oxygen

Project Properties -> Resource -> Linked Resources -> Linked Resources (Tab)

참고 URL : https://stackoverflow.com/questions/3479466/moving-project-to-another-folder-in-eclipse

반응형