我正在使用
Eclipse(Helios 3.6.2)和
Android SDK.
有没有办法在不使用符号链接的情况下完成此操作?
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中,我可以通过引用添加文件来完成此操作.我在Eclipse中找不到类似的东西.
最佳答案 你可以做一个项目参考,但我不认为这正是你想要的.所以这里有一个简短的解释:
您必须在当前工作空间中拥有Customer 1 Project和Template Project.然后在Package Explorer中右键单击Customer 1 Project并选择Build Path – >配置构建路径…在此处转到项目选项卡并选择添加….在此处选择您的模板项目.
如果来自Customer 1 Project和Template Project的B.java位于同一个包(可能是它)中,则此解决方案可能会导致问题.所以你必须为该类选择另一个名称.