How to add all the files in a folder to source control via cleartool command?

谁说我不能喝 提交于 2019-12-02 02:10:14
VonC

As mentioned in "How can I use ClearCase to “add to source control …” recursively?", clearfsimport is the way to go.

However, clearfsimport will take a source an import it in your view, so:

  • it is best to keep the source outside your view (to avoid confusion when ClearCase tries to add the source file in the destination which is the same directory)
  • you must "clean out" the source directories first (because the clearfsimport command will import... all the files under the root directory you mention)

See "Creating a new subdirectory structure in ClearCase?" as an example: you can preview the result of an import first.

Please user clearfsimport or if you are working with eclipse or Intellij then there are plugins from sourceforge (eclipse) which has a options to share entire project at once to CLearcase , Below are the plugin details. https://sourceforge.net/projects/eclipse-ccase/ Note : Clearcase has a limitation that if there is a text file with more than 8000 characters in single line , There is error at run time using clearfimport utility, This can be solved by writing your own bash script to do recursive checkin by handling the exception case . Hope it helps .

I saw another comment from a similar clearcase question that suggested typing in '*' in the topmost directory required, select all, rc->cc->add to source control.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!