我希望所有工作区设置都以clearcase格式存储,并且能够使用cp命令创建新的工作区。我尝试从工作工作区中仅复制.metadata / .plugins / org.eclipse.core.runtime / .settings和.metadata / .plugins / org.eclipse.core.resources / .projects - 但在新工作区项目资源管理器中没有显示任何项目/工作集。 我在Linux上使用eclipse Juno(4.2)。
==将旧工作区复制到新
的脚本#!/bin/csh -f
set old = old_workspace
set new = workspace2
rm -rf $new
mkdir -p $new
cd $new
mkdir -p .metadata/.plugins/org.eclipse.core.resources/.projects .metadata/.plugins/org.eclipse.core.runtime
cp -r $old/.metadata/.plugins/org.eclipse.core.runtime/.settings/ .metadata/.plugins/org.eclipse.core.runtime/
cp -r $old/.metadata/.plugins/org.eclipse.core.resources/.projects/* .metadata/.plugins/org.eclipse.core.resources/.projects/
chmod -R +w .
=== 这是woking工作区的.metadata / .plugins /的完整列表:
com.ibm.rational.clearcase.ccrefresh org.eclipse.debug.core org.eclipse.linuxtools.cdt.libhover org.eclipse.team.core net.sourceforge.eclipseccase org.eclipse.debug.ui org.eclipse.ltk.core.refactoring org.eclipse.team.cvs.core org.eclipse.birt.chart.engine org.eclipse.dltk.core org.eclipse.ltk.ui.refactoring org.eclipse.ui.editors org.eclipse.cdt.core org.eclipse.e4.workbench org.eclipse.mylyn.bugzilla.core org.eclipse.ui.ide org.eclipse.cdt.make.core org.eclipse.epp.usagedata.recording org.eclipse.mylyn.context.core org.eclipse.ui.workbench org.eclipse.cdt.make.ui org.eclipse.equinox.p2.ui.sdk org.eclipse.mylyn.tasks.ui org.eclipse.ui.workbench.texteditor org.eclipse.cdt.managedbuilder.core org.eclipse.jdt.core org.eclipse.pde.core org.eclipse.wst.jsdt.core org.eclipse.cdt.ui org.eclipse.jdt.launching org.eclipse.rse.core org.eclipse.wst.jsdt.ui org.eclipse.core.resources org.eclipse.jdt.ui org.eclipse.rse.ui org.eclipse.wst.xml.core org.eclipse.core.runtime org.eclipse.jst.jsp.core org.eclipse.search
答案 0 :(得分:0)
您的脚本会复制工作区的设置($ old / .metadata / ...),但您缺少工作区内容本身($ old / filesAndDirectories)。