我正在尝试创建一个Web视图,加载配置规范并将对象拉入视图,在我的本地系统中使用rcleartool。 尝试使用setcs命令
从文件加载配置规范时出错我正在使用的命令是
cmd> echo ServerURL | rcleartool mkview -tag Temp_View Temp_View
cmd> copy Temp_View.txt Temp_View
cmd> cd Temp_View
cmd> echo ServerURL | rcleartool setcs -ove Temp_View.txt
我得到的错误是
Exception in thread "pool-1-thread-1" java.lang.IllegalArgumentException: Invalid uri 'ServerURL /cltxt/9c6f8f42621e43f8b4a6d10027aed9e2/ac39de36ffdf4a4fb38ffed40f9bc33e/unix': escaped absolute path not valid
at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:219)
at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:88)
at com.ibm.rational.clearcase.remote_core.rpc.GetRequestGenerator.<init>(GetRequestGenerator.java:44)
at com.ibm.rational.clearcase.remote_core.rpc.Session.createRequestGenerator(Session.java:255)
at com.ibm.rational.clearcase.remote_core.rpc.AbstractRpc.sendRequest(AbstractRpc.java:672)
at com.ibm.rational.clearcase.remote_core.rpc.AbstractRpc.requestHelper(AbstractRpc.java:340)
at com.ibm.rational.clearcase.remote_core.rpc.AbstractRpc.sendGet(AbstractRpc.java:432)
at com.ibm.rational.clearcase.remote_core.copyarea.GetClearText$GetCltxtRpc.sendAndProcessGetRequest(GetClearText.java:281)
at com.ibm.rational.clearcase.remote_core.copyarea.GetClearText.fetchClearTextViaGET(GetClearText.java:193)
at com.ibm.rational.clearcase.remote_core.copyarea.GetClearText.run(GetClearText.java:80)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:761)
然而,当我打开一个cleartool会话然后按照相同的步骤
时,同样的工作正常cmd> rcleartool
rcleartool> mkview -tag Temp_View Temp_View
rcleartool> exit
cmd> copy Temp_View.txt Temp_View
cmd> cd Temp_View
cmd> rcleartool
rcleartool> setcs -ove Temp_View.txt
如何避免“转义绝对路径无效”错误,因为我无法删除rcleartool生成的uri中的空格?