[
https://issues.apache.org/jira/browse/SCM-331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17961078#comment-17961078
]
ASF GitHub Bot commented on SCM-331:
------------------------------------
jira-importer opened a new issue, #552:
URL: https://github.com/apache/maven-scm/issues/552
**[Jan
Edelbroek](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=jedelbroek)**
opened
**[SCM-331](https://issues.apache.org/jira/browse/SCM-331?redirect=false)** and
commented
After a succesfull update the StarteamUpdateCommand fires a delete-local
command.
The command string that is created for the stcmd is wrong when a (view)label
is used.
stcmd delete-local -x -nologo -stop -p
"username@host:port/Project/View/path" -fp path-to-working-directory -is "-cfgl
" alpha-1-1 -filter N
As you can see, the -cfgl option is between quotes and there is also an
additional space character.
The problem is in the StarteamUpdateCommand class file (also in the trunk
version).
The following line in the createDeleteLocalCommand method
args.add( "-cfgl " );
should be replaced with
args.add( "-cfgl" );
thus leaving out the additional space character.
I can provide a patch when necessary.
See also SCM-309 in which i indicate that i have a patch ready to be able to
use promotion states instead of view labels
---
**Affects:** 1.0-beta-3
> bug found in StarteamUpdateCommand when doing a delete-local when a
> (view)label is used
> ---------------------------------------------------------------------------------------
>
> Key: SCM-331
> URL: https://issues.apache.org/jira/browse/SCM-331
> Project: Maven SCM (Moved to GitHub Issues)
> Issue Type: Bug
> Components: maven-scm-provider-starteam
> Affects Versions: 1.0-beta-3
> Reporter: Jan Edelbroek
> Assignee: Emmanuel Venisse
> Priority: Major
> Fix For: 1.1
>
>
> After a succesfull update the StarteamUpdateCommand fires a delete-local
> command.
> The command string that is created for the stcmd is wrong when a (view)label
> is used.
> stcmd delete-local -x -nologo -stop -p "username@host:port/Project/View/path"
> -fp path-to-working-directory -is "-cfgl " alpha-1-1 -filter N
> As you can see, the -cfgl option is between quotes and there is also an
> additional space character.
> The problem is in the StarteamUpdateCommand class file (also in the trunk
> version).
> The following line in the createDeleteLocalCommand method
> args.add( "-cfgl " );
> should be replaced with
> args.add( "-cfgl" );
> thus leaving out the additional space character.
> I can provide a patch when necessary.
> See also SCM-309 in which i indicate that i have a patch ready to be able to
> use promotion states instead of view labels
--
This message was sent by Atlassian Jira
(v8.20.10#820010)