2011-11-24 3 views
4

Eclipse (Helios 3.6.2) 및 Android SDK를 사용하고 있습니다.모범 사례 : Eclipse에서 프로젝트간에 파일 공유

심볼릭 링크를 사용하지 않고이를 수행 할 수있는 방법이 있습니까?

Template Project: this is the "Main" Project. All other projects will derive from this. 
- src 
    - A.java 
    - B.java 
- layout 
    - j.xml 
    - l.xml 
- drawable 
    - x.png 
    - y.png 


Customer 1 Project: 
- src 
    - A.java (from template) 
    - B.java (not from template. custom file used only in this project) 
- layout 
    - j.xml (from template) 
    - l.xml (not from template. custom file used only in this project) 
- drawable 
    - x.png (from template) 
    - y.png (not from template. custom file used only in this project) 


Customer 2 Project: 
- src 
    - A.java (from template) 
    - B.java (from template) 
- layout 
    - j.xml (from template) 
    - l.xml (from template) 
- drawable 
    - x.png (not from template. custom file used only in this project) 
    - y.png (not from template. custom file used only in this project) 


Customer "N" Project: 
    and so on with many combinations of using/not using from template... 
    (This is for illustration only. My real projects have hundreds of files of course) 

저는 Eclipse에서 다소 신참입니다. VisualStudio에서 파일을 참조로 추가하여이를 수행 할 수 있습니다. 이클립스에서 이와 비슷한 것을 찾을 수 없었다.

답변

2

프로젝트를 참조 할 수는 있지만 정확히 찾고있는 것 같지 않습니다. 여기에 간단한 설명이 있습니다 : 현재 작업 공간에 Customer 1 ProjectTemplate Project이 있어야합니다. 그런 다음 Package Explorer에서 Customer 1 Project을 마우스 오른쪽 단추로 클릭하고 Build Path -> Configure Build Path...을 선택하십시오. Projects 탭으로 이동하여 Add...을 선택하십시오. 여기에서 Template project을 선택하십시오.

B.javaCustomer 1 ProjectTemplate Project이 같은 패키지에있는 경우 (아마도 그럴 수 있음)이 솔루션을 사용하면 문제가 발생할 수 있습니다. 따라서 해당 클래스에 다른 이름을 선택해야합니다.

+0

그런 식으로 내 요구에 맞지 않습니다. 어쨌든 고마워. – Christian