[
http://jira.codehaus.org/browse/SCM-563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Espen Tjønneland updated SCM-563:
---------------------------------
Attachment: ClearCaseStatusConsumer.patch
Updated the diff in order to handle recursion into subdirs correctly. Output
from scm:status can now be used in the scm:checkin -Dfileset"xxx,yyy,zzz"
command
> scm:status returns erroneous value on Windows XP
> ------------------------------------------------
>
> Key: SCM-563
> URL: http://jira.codehaus.org/browse/SCM-563
> Project: Maven SCM
> Issue Type: Bug
> Components: maven-scm-provider-clearcase
> Affects Versions: 1.3
> Environment: Windows XP version 2002 SP3
> Config in pom.xml :
> <scm>
> <connection>scm:clearcase:load
> \\Pc-688315.statoil.net/CCSTORAGE/SIS_Stream5/CVOB_SIS_ST</connection>
> <developerConnection>scm:clearcase:load
> \\Pc-688315.statoil.net/CCSTORAGE/SIS_Stream5/CVOB_SIS_ST</developerConnection>
> </scm>
> Reporter: Espen Tjønneland
> Attachments: ClearCaseStatusConsumer.patch,
> ClearCaseStatusConsumer.patch, status.patch
>
>
> I have one checkout in my current dir (pom.xml):
> From my CMD shell:
> =========
> C:\CCSTORAGE\SIS_Stream5\CVOB_SIS_ST\COMP_SIS\Import\S3src\Sis3Reporting>dir
> Volume in drive C has no label.
> Volume Serial Number is 9628-F5FE
> Directory of
> C:\CCSTORAGE\SIS_Stream5\CVOB_SIS_ST\COMP_SIS\Import\S3src\Sis3Reporting
> 12.07.2010 09:46 <DIR> .
> 12.07.2010 09:46 <DIR> ..
> 09.07.2010 15:44 <DIR> Model
> 12.07.2010 10:07 4 624 pom.xml
> 09.07.2010 15:44 <DIR> Services
> 09.07.2010 15:10 <DIR> src
> 09.07.2010 15:34 <DIR> target
> 1 File(s) 4 624 bytes
> 6 Dir(s) 112 731 258 880 bytes free
> =========
> C:\CCSTORAGE\SIS_Stream5\CVOB_SIS_ST\COMP_SIS\Import\S3src\Sis3Reporting>cleartool
> lscheckout -cview -r -fmt %n\n
> pom.xml
> C:\CCSTORAGE\SIS_Stream5\CVOB_SIS_ST\COMP_SIS\Import\S3src\Sis3Reporting>
> =========
> Running mvn scm:status
> =========
> C:\CCSTORAGE\SIS_Stream5\CVOB_SIS_ST\COMP_SIS\Import\S3src\Sis3Reporting>mvn
> scm:status
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO] Sis3Reporting
> [INFO] Model
> [INFO] Services
> [INFO] Searching repository for plugin with prefix: 'scm'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Sis3Reporting
> [INFO] task-segment: [scm:status] (aggregator-style)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [scm:status {execution: default-cli}]
> [INFO] checked-out status for m.xml
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Mon Jul 12 11:44:05 CEST 2010
> [INFO] Final Memory: 7M/16M
> [INFO]
> ------------------------------------------------------------------------
> C:\CCSTORAGE\SIS_Stream5\CVOB_SIS_ST\COMP_SIS\Import\S3src\Sis3Reporting>
> ========
> The
> org.apache.maven.scm.provider.clearcase.command.status.ClearCaseStatusConsumer
> line: 64
> checkedOutFiles.add(
> new ScmFile( workingDirectory.getAbsolutePath() + line.substring(
> 1 ), ScmFileStatus.CHECKED_OUT ) );
> Seems like the line.substring(1) removes the two first characters (po) from
> pom.xml.
> I am assuming this is looking for a unix style ./ notation in front of the
> current dir. In windows this is not working.
> I tried:
> checkedOutFiles.add(
> new ScmFile( workingDirectory.getAbsolutePath() + File.separator + line,
> ScmFileStatus.CHECKED_OUT )
> And edited the test case to omit ./ from the status text content. And it is
> woring in my environment.
> The above fix will not work outside Windows environments.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira