[
https://issues.apache.org/jira/browse/SCM-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17961900#comment-17961900
]
ASF GitHub Bot commented on SCM-523:
------------------------------------
jira-importer opened a new issue, #737:
URL: https://github.com/apache/maven-scm/issues/737
**[Bill
Chen](https://issues.apache.org/jira/secure/[email protected])**
opened
**[SCM-523](https://issues.apache.org/jira/browse/SCM-523?redirect=false)** and
commented
While i use the api(scmManager.checkOut(scmRepository, new
ScmFileSet(workingDirectory), version)).
The return result(CheckOutScmResult)'s checkedOutFiles is an empty List.
I debug the code source, and find the problem exist in the
method(getCheckedOutFiles) in class SvnCheckOutConsumer. This method invoke the
super
class(org.apache.maven.scm.provider.svn.svnexe.command.AbstractFileCheckingConsumer)'s
method(getFiles()).
if ( !file.getStatus().equals( ScmFileStatus.DELETED )
&& !new File( workingDirectory, file.getPath() ).isFile() ){
it.remove();
}
use this method added status files ,updated status files are removed!
---
**Issue Links:**
- [SCM-480](https://issues.apache.org/jira/browse/SCM-480) "mvn scm:status"
doesn't show modified file
(_**"duplicates"**_)
> SVN checkout files is empty
> ---------------------------
>
> Key: SCM-523
> URL: https://issues.apache.org/jira/browse/SCM-523
> Project: Maven SCM (Moved to GitHub Issues)
> Issue Type: Bug
> Components: maven-scm-provider-svn
> Reporter: Bill Chen
> Assignee: Olivier Lamy
> Priority: Major
>
> While i use the api(scmManager.checkOut(scmRepository, new
> ScmFileSet(workingDirectory), version)).
> The return result(CheckOutScmResult)'s checkedOutFiles is an empty List.
> I debug the code source, and find the problem exist in the
> method(getCheckedOutFiles) in class SvnCheckOutConsumer. This method invoke
> the super
> class(org.apache.maven.scm.provider.svn.svnexe.command.AbstractFileCheckingConsumer)'s
> method(getFiles()).
> if ( !file.getStatus().equals( ScmFileStatus.DELETED )
> && !new File( workingDirectory, file.getPath() ).isFile() ){
> it.remove();
> }
> use this method added status files ,updated status files are removed!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)