2011-11-24 13 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でちょっと新人です。 Visual Studioでは、ファイルを参照で追加することでこれを行うことができます。私はEclipseでこれに似た何かを見つけることができませんでした。

答えて

2

プロジェクトの参照はできますが、これはあなたが探しているものとまったく同じだとは思いません。ここに簡単な説明があります: あなたは現在のワークスペースにCustomer 1 ProjectTemplate Projectを持っていなければなりません。次に、Package ExplorerCustomer 1 Projectを右クリックし、Build Path -> Configure Build Path...を選択します。Projectsタブに行き、Add...を選択します。ここでTemplate projectを選択します。

からTemplate ProjectまでのB.javaが同じパッケージ(おそらくこれに該当する)にある場合、この解決策で問題が発生する可能性があります。したがって、そのクラスの別の名前を選択する必要があります。

+0

この方法は私のニーズに合っていません。とにかくありがとう。 – Christian

関連する問題