기억의 습작

프로젝트 카피 후 네임변경시 eclipse에 비정상 로드되는 경우 본문

Software

프로젝트 카피 후 네임변경시 eclipse에 비정상 로드되는 경우

뿌사리다 2022. 3. 24. 20:41


수정 목록 파일 3개


변경할 프로젝트 명이 sbadmin 일경우 아래 예시 처럼 해당위치 단어를 수정후 reload 하면 된다.


1 .project  파일안에  변경할 프로젝트명 으로 수정 (2군데)  

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>sbadmin</name>
    <comment>Project sbadmin created by Buildship.</comment>
    <projects>
    </projects>
    <buildSpec>
이하생략...


2 settings.gradle 파일안에 변경할 프로젝트명 으로 수정 (1군데)  
rootProject.name = 'sbadmin'


3 .settings/org.eclipse.wst.common.component 파일안에  변경할 프로젝트명 으로 수정 (2군데)
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
    <wb-module deploy-name="sbadmin">
        <property name="context-root" value="sbadmin"/>
        <wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/resources"/>
        <wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/java"/>
    </wb-module>
</project-modules>

 

추가로 git 저장소 변경시

.git/config  파일안에 변경할 git 저장소를 바꿔준다.

[core]
repositoryformatversion = 0
filemode = true
logallrefupdates = true
[remote "origin"]
url = http://localhost/ppusarida/sbadmin.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
rebase = false

 

 

728x90
반응형
LIST