You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by su...@wipro.com on 2009/12/18 05:01:57 UTC
FW: [Maven-SCM] Quotes in CommandLine is causing failure to scm:update
Note: I posted to users list and did not get a reply. So incase
developers know something. This is stopping me from submitting a patch
for SCM-261 as i cannot test it in linux environment. Will somebody be
able to give some clues.
Hi,
Platform OS: RHEL 5
Java: 1.6.0_17
Maven: 2.1.0
Maven SCM: 1.3-SNAPSHOT
SCM: CM/Synergy 7.0
Above are the details of my setup.
While executing scm:update command in 'Linux', there is a single quote
which appears in the start and end of the argument. This causes the
already existing arguments to have wrong syntax.
mvn scm:update -Dusername=user -Dpassword=pass -X shows the following
output:
[DEBUG] STDERR :
[DEBUG] Synergy : Entering getWorkingProject method
[DEBUG] Executing: /bin/sh -c ccm query -u -f %objectname --> additonal
start single quote '"owner='subirs' and status='working' and
type='project' and has_predecessor('bsm-3.3:project:inhytest#1')"' -->
Additional end single quote
[DEBUG] Exit code :1
[DEBUG] STDOUT : unavailable
[DEBUG] STDERR :Warning: Syntax error in query request: "owner=subirs
and status=working and type=project and
has_predecessor(bsm-3.3:project:inhytest#1)" --> Note that now the
single quotes after interpretation by the shell are removed.
This works fine in 'Windows' platform.
Correct output should be: /bin/sh -c ccm query -u -f %objectname
"owner='subirs' and status='working' and type='project' and
has_predecessor('bsm-3.3:project:inhytest#1')" -->No single quotes, but
double quotes and inner single quotes not modified then.
How to get this working? I have seens some changes to plexus-utils on
these quotes, but could not understand how to workaround this. Please
help.
Regards
Subir
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
RE: FW: [Maven-SCM] Quotes in CommandLine is causing failure to scm:update
Posted by su...@wipro.com.
Ok, I updated plexus-utils to 1.5.15.
Now it puts arguments with spaces and single quotes surrounded with a
single quotes. However for synergy irrespective of the target shell the
argument for query should be surrounded with double quotes.
Now if programatically I try to put double quotes. Still plexus replaces
them with single quotes. Weird behaviour.
Any work arounds known?
-----Original Message-----
From: Benjamin Bentmann [mailto:benjamin.bentmann@udo.edu]
Sent: Friday, December 18, 2009 4:08 PM
To: Maven Developers List
Subject: Re: FW: [Maven-SCM] Quotes in CommandLine is causing failure to
scm:update
Subir wrote:
> While executing scm:update command in 'Linux', there is a single quote
> which appears in the start and end of the argument. This causes the
> already existing arguments to have wrong syntax.
You filled this issue against plexus-utils:1.5.6 which had already a
bunch of newer releases. So I suggest to try some of the newer versions.
It might also be a problem in the SCM codebase itself, i.e. trying to do
quoting on its own instead of leaving this completely to plexus-utils.
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional
commands, e-mail: dev-help@maven.apache.org
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: FW: [Maven-SCM] Quotes in CommandLine is causing failure to scm:update
Posted by Benjamin Bentmann <be...@udo.edu>.
Subir wrote:
> While executing scm:update command in 'Linux', there is a single quote
> which appears in the start and end of the argument. This causes the
> already existing arguments to have wrong syntax.
You filled this issue against plexus-utils:1.5.6 which had already a
bunch of newer releases. So I suggest to try some of the newer versions.
It might also be a problem in the SCM codebase itself, i.e. trying to do
quoting on its own instead of leaving this completely to plexus-utils.
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org