Exception with tool svnimporter CC to SVN

daniele.teora
Posts: 2
Joined: Tue Nov 10, 2015 11:24 am

Exception with tool svnimporter CC to SVN

Postby daniele.teora » Tue Nov 10, 2015 11:53 am

Hi all,
I want migrate from ClearCase to SVN in Windows environment.
I've configured this config.properties with follows parameters:
#################################################################################
########################## CLEAR CASE PROVIDER CONFIGURATION ####################
#################################################################################
cc.class=org.polarion.svnimporter.ccprovider.CCProvider
cc.executable=C:/Program\ Files\ \(x86\)/Rational/ClearCase/bin/cleartool.exe
cc.projectpath=C:/CCView/dteora_Smit2_CSI_prj/Smit2_vob
cc.log.dateformat=yyyyMMdd.HHmmss
cc.log.encoding=Cp1251
cc.tempdir=c:/temp/local
cc.verbose_exec=yes

But I obtain always the same error:
12:49:07,283 [main] INFO MainConfig:84 - ****************************************************************************
12:49:07,285 [main] INFO MainConfig:84 - *** Global options ***
12:49:07,285 [main] INFO MainConfig:84 - Mode = list files
12:49:07,285 [main] INFO MainConfig:84 - Import dump into svn = "true"
12:49:07,286 [main] INFO MainConfig:84 - Import dump only if svn repository exist = "false"
12:49:07,286 [main] INFO MainConfig:84 - Full dump path = "full_dump_%date%.txt"
12:49:07,286 [main] INFO MainConfig:84 - Incremental dump path = "incr_dump_%date%.txt"
12:49:07,286 [main] INFO MainConfig:84 - Incremental history path = "incr_history.txt"
12:49:07,286 [main] INFO MainConfig:84 - Save files list to = "files_20151110_124907.txt"
12:49:07,286 [main] INFO MainConfig:84 - Source provider's class = "org.polarion.svnimporter.ccprovider.CCProvider"
12:49:07,287 [main] INFO MainConfig:84 - Size limit for dump files (in MB): 1000
12:49:07,287 [main] INFO CCConfig:84 - *** ClearCase provider configuration ***
12:49:07,287 [main] INFO CCConfig:84 - executable = "C:/Program Files (x86)/Rational/ClearCase/bin/cleartool.exe"
12:49:07,287 [main] INFO CCConfig:84 - projectPath = "C:\CCView\dteora_Smit2_CSI_prj\Smit2_vob"
12:49:07,287 [main] INFO CCConfig:84 - temp dir = "c:\temp\local\cc.tempdir"
12:49:07,288 [main] INFO CCConfig:84 - log date format = "yyyyMMdd.HHmmss"
12:49:07,288 [main] INFO CCConfig:84 - verbose exec = "true"
12:49:07,288 [main] INFO ProviderConfig:84 - svnimporter_user_name = "dteora"
12:49:07,289 [main] INFO ProviderConfig:84 - only_trunk = "true"
12:49:07,289 [main] INFO ProviderConfig:84 - trunk_path = "trunk"
12:49:07,289 [main] INFO ProviderConfig:84 - branches_path = "branches"
12:49:07,289 [main] INFO ProviderConfig:84 - tags_path = "tags"
12:49:07,290 [main] INFO ProviderConfig:84 - use_only_last_revision_content = "false"
12:49:07,290 [main] INFO ProviderConfig:84 - file_description_property_key = "description"
12:49:07,290 [main] INFO ProviderConfig:84 - use_file_copy = "false"
12:49:07,291 [main] INFO MainConfig:84 - ****************************************************************************
12:49:07,291 [main] INFO historyLogger:84 - **********************************************************************
12:49:07,291 [main] INFO historyLogger:84 - date: 10-nov-2015 12.49.07
12:49:07,292 [main] INFO historyLogger:84 - mode: list files
12:49:07,292 [main] INFO historyLogger:84 - src provider: class org.polarion.svnimporter.ccprovider.CCProvider
12:49:07,293 [main] INFO Main:84 - List files to files_20151110_124907.txt
12:49:07,302 [main] INFO Exec:84 - exec C:/Program Files (x86)/Rational/ClearCase/bin/cleartool.exe lshistory -recurse -fmt %Nd@@@%En@@@%Vn@@@%o@@@!%l@@@!%a@@@%m@@@%u@@@%Nc@@@\n
12:49:07,303 [main] ERROR Main:96 - EXCEPTION CAUGHT: org.polarion.svnimporter.ccprovider.CCException: error during execution command C:/Program Files (x86)/Rational/ClearCase/bin/cleartool.exe lshistory -recurse -fmt %Nd@@@%En@@@%Vn@@@%o@@@!%l@@@!%a@@@%m@@@%u@@@%Nc@@@\n, exception caught
at org.polarion.svnimporter.ccprovider.CCProvider.executeCommand(CCProvider.java:244)
at org.polarion.svnimporter.ccprovider.CCProvider.buildCCModel(CCProvider.java:171)
at org.polarion.svnimporter.ccprovider.CCProvider.listFiles(CCProvider.java:116)
at org.polarion.svnimporter.main.Main.listFiles(Main.java:169)
at org.polarion.svnimporter.main.Main.run(Main.java:86)
at org.polarion.svnimporter.main.Main.main(Main.java:51)
Caused by: java.io.IOException: Cannot run program "C:/Program Files (x86)/Rational/ClearCase/bin/cleartool.exe" (in directory "C:\CCView\dteora_Smit2_CSI_prj\Smit2_vob"): CreateProcess error=267, Nome di directory non valido
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at org.polarion.svnimporter.common.Exec.exec(Exec.java:218)
at org.polarion.svnimporter.ccprovider.CCProvider.executeCommand(CCProvider.java:240)
at org.polarion.svnimporter.ccprovider.CCProvider.buildCCModel(CCProvider.java:171)
at org.polarion.svnimporter.ccprovider.CCProvider.listFiles(CCProvider.java:116)
at org.polarion.svnimporter.main.Main.listFiles(Main.java:169)
at org.polarion.svnimporter.main.Main.run(Main.java:86)
at org.polarion.svnimporter.main.Main.main(Main.java:51)
Caused by: java.io.IOException: CreateProcess error=267, Nome di directory non valido
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:620)
at org.polarion.svnimporter.common.Exec.exec(Exec.java:218)
at org.polarion.svnimporter.ccprovider.CCProvider.executeCommand(CCProvider.java:240)
at org.polarion.svnimporter.ccprovider.CCProvider.buildCCModel(CCProvider.java:171)
at org.polarion.svnimporter.ccprovider.CCProvider.listFiles(CCProvider.java:116)
at org.polarion.svnimporter.main.Main.listFiles(Main.java:169)
at org.polarion.svnimporter.main.Main.run(Main.java:86)
at org.polarion.svnimporter.main.Main.main(Main.java:51)

12:49:07,304 [main] DEBUG CCProvider:80 - cleanup
12:49:07,305 [main] INFO historyLogger:84 - duration: 0 seconds

Could you please help me?
Thanks
Daniele

daniele.teora
Posts: 2
Joined: Tue Nov 10, 2015 11:24 am

Re: Exception with tool svnimporter CC to SVN

Postby daniele.teora » Thu Nov 19, 2015 7:52 am

Resolved: the path was wrong.


Return to “Polarion SVN Importer (Repository Converter)”

Who is online

Users browsing this forum: No registered users and 2 guests