2014-05-15 1 views
0

CVS 저장소에서 파일을 체크 아웃하고 Java 프로그램을 실행하여 파일을 업데이트 한 다음 리포지토리에 다시 커밋하는 bat 파일이 있습니다. 내 커밋 명령으로 몇 가지 문제가 있습니다. 아무도 도와 줄 수 있습니까?cvs 커밋 시도 중 - 해당 파일이나 디렉토리가 없습니다.

path=%path%;c:/cvsnt 


cvs -d :ssh:nsbuild:[email protected]:/cvs login 

cvs -d :ssh:nsbuild:[email protected]:/cvs checkout BGNMigration/JNLP/config/dev/com/xxxx/jnlp/file/xxxx.jnlp 


javac UpdateVersions.java 
java UpdateVersions 


cvs -d /BGNMigration/JNLP/config/dev/com/xxxx/jnlp/file commit -m "Latest build" xxxx.jnlp 

출력 :

나는 CVS가를 저지를 들어, 공통 -d 옵션이없는 생각
C:\Users\JADOYLE\Desktop\Docs\updateBat>cvs -d /BGNMigration/JNLP/config/dev/com/xxxx/jnlp/file commit -m "Latest build" xxxx.jnlp 
cvs [commit aborted]: /BGNMigration/JNLP/config/dev/com/xxxx/jnlp/file/CVSROOT: No such file or directory 
+0

귀하의 슬래시는 첫 번째 줄에 잘못된 방향으로 가고있다. Windows에서는'/'이 아니라 경로에서'\'를 사용합니다. 첫 번째 줄은'path = % path %; c : \ cvsnt'이어야합니다. – unclemeat

+0

첫 번째 행을 path = % path %; c : \ cvsnt'로 변경했지만 여전히 동일한 출력을 수신했습니다. 왜 내 커밋 경로의 끝에서/CVSROOT를 던집니까? – jdoyle0116

답변

0

.

가 업데이트 된 파일을 커밋하려면이 시도 할 수 있습니다 :

cd BGNMigration\JNLP\config\dev\com\xxxx\jnlp\file 
cvs commit -m "Latest build" xxxx.jnlp 
관련 문제