You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-users@incubator.apache.org by Vladislav Rudkovsky <vl...@firstlinesoftware.com> on 2010/11/08 08:45:31 UTC
double quotes prevent cmd.exe execution
Hi,
I am having troubles compiling simple quick start project in VS 2008. On
Windows 7 I have the error like this
[ERROR] Failed to execute goal
npanday.plugin:maven-compile-plugin:1.2.1:compile (default-compile) on
project ClassLibrary2: NPANDAY-900-006: Unable to Compile: Language =
C_SHARP, Vendor = null, ArtifactType = library, Source Directory =
C:\Users\Vrudkovsky\TFS\ClassLibrary2\ClassLibrary2: NPANDAY-040-001: Could
not execute: Command = cmd.exe /X /C ""csc
@C:\Users\Vrudkovsky\TFS\ClassLibrary2\ClassLibrary2\target\811300\responcefile.rsp"",
Result = 1 -> [Help 1]
I noticed doubled quotes here cmd.exe /X /C ""csc… that does not seem to be
valid syntax. If I run the command directly in command shell deleting extra
quotes it ends successfully.
Can someone help me?
Thanks.
Vlad
Re: double quotes prevent cmd.exe execution
Posted by Brett Porter <br...@apache.org>.
It looks like the issue is being worked on in NPANDAY-341
On 16/11/2010, at 6:28 PM, Vladislav Rudkovsky wrote:
> Brett,
> I commented this 'else if' to fix it
> npanday-project-1.2.1\components\dotnet-executable\src\main\java\npanday\e
> xecutable\CommandExecutor.java
> 333 //else if(param.indexOf(" ") > 0)
> 334 // {
> 335 // str = "\"" + param + "\"";
> 336 //}
>
> Sorry, now it is not possible to roll changes back to see what happens on
> 2.2.1.
>
> Thanks, Vlad.
>
> -----Original Message-----
> From: Brett Porter [mailto:brett@porterclan.net] On Behalf Of Brett Porter
> Sent: Tuesday, November 16, 2010 8:22 AM
> To: npanday-users@incubator.apache.org
> Subject: Re: double quotes prevent cmd.exe execution
>
> Hard to tell immediately. I've tested it and found it working on Windows 7
> with Maven 2.2.1.
>
> While I believe Maven 3 is supported, can you try it with Maven 2.2.1 and
> see if that helps?
>
> If you run with debug logs (-X) is there more information surrounding that
> that is helpful?
>
> - Brett
>
> On 08/11/2010, at 7:45 PM, Vladislav Rudkovsky wrote:
>
>> Hi,
>>
>>
>>
>> I am having troubles compiling simple quick start project in VS 2008. On
>> Windows 7 I have the error like this
>>
>>
>>
>> [ERROR] Failed to execute goal
>> npanday.plugin:maven-compile-plugin:1.2.1:compile (default-compile) on
>> project ClassLibrary2: NPANDAY-900-006: Unable to Compile: Language =
>> C_SHARP, Vendor = null, ArtifactType = library, Source Directory =
>> C:\Users\Vrudkovsky\TFS\ClassLibrary2\ClassLibrary2: NPANDAY-040-001:
> Could
>> not execute: Command = cmd.exe /X /C ""csc
>>
> @C:\Users\Vrudkovsky\TFS\ClassLibrary2\ClassLibrary2\target\811300\responc
> efile.rsp"",
>> Result = 1 -> [Help 1]
>>
>>
>>
>> I noticed doubled quotes here cmd.exe /X /C ""csc. that does not seem to
> be
>> valid syntax. If I run the command directly in command shell deleting
> extra
>> quotes it ends successfully.
>>
>>
>>
>> Can someone help me?
>>
>>
>>
>> Thanks.
>>
>> Vlad
>
> --
> Brett Porter
> brett@apache.org
> http://brettporter.wordpress.com/
--
Brett Porter
brett@apache.org
http://brettporter.wordpress.com/
RE: double quotes prevent cmd.exe execution
Posted by Vladislav Rudkovsky <vl...@firstlinesoftware.com>.
Brett,
I commented this 'else if' to fix it
npanday-project-1.2.1\components\dotnet-executable\src\main\java\npanday\e
xecutable\CommandExecutor.java
333 //else if(param.indexOf(" ") > 0)
334 // {
335 // str = "\"" + param + "\"";
336 //}
Sorry, now it is not possible to roll changes back to see what happens on
2.2.1.
Thanks, Vlad.
-----Original Message-----
From: Brett Porter [mailto:brett@porterclan.net] On Behalf Of Brett Porter
Sent: Tuesday, November 16, 2010 8:22 AM
To: npanday-users@incubator.apache.org
Subject: Re: double quotes prevent cmd.exe execution
Hard to tell immediately. I've tested it and found it working on Windows 7
with Maven 2.2.1.
While I believe Maven 3 is supported, can you try it with Maven 2.2.1 and
see if that helps?
If you run with debug logs (-X) is there more information surrounding that
that is helpful?
- Brett
On 08/11/2010, at 7:45 PM, Vladislav Rudkovsky wrote:
> Hi,
>
>
>
> I am having troubles compiling simple quick start project in VS 2008. On
> Windows 7 I have the error like this
>
>
>
> [ERROR] Failed to execute goal
> npanday.plugin:maven-compile-plugin:1.2.1:compile (default-compile) on
> project ClassLibrary2: NPANDAY-900-006: Unable to Compile: Language =
> C_SHARP, Vendor = null, ArtifactType = library, Source Directory =
> C:\Users\Vrudkovsky\TFS\ClassLibrary2\ClassLibrary2: NPANDAY-040-001:
Could
> not execute: Command = cmd.exe /X /C ""csc
>
@C:\Users\Vrudkovsky\TFS\ClassLibrary2\ClassLibrary2\target\811300\responc
efile.rsp"",
> Result = 1 -> [Help 1]
>
>
>
> I noticed doubled quotes here cmd.exe /X /C ""csc. that does not seem to
be
> valid syntax. If I run the command directly in command shell deleting
extra
> quotes it ends successfully.
>
>
>
> Can someone help me?
>
>
>
> Thanks.
>
> Vlad
--
Brett Porter
brett@apache.org
http://brettporter.wordpress.com/
Re: double quotes prevent cmd.exe execution
Posted by Brett Porter <br...@apache.org>.
Hard to tell immediately. I've tested it and found it working on Windows 7 with Maven 2.2.1.
While I believe Maven 3 is supported, can you try it with Maven 2.2.1 and see if that helps?
If you run with debug logs (-X) is there more information surrounding that that is helpful?
- Brett
On 08/11/2010, at 7:45 PM, Vladislav Rudkovsky wrote:
> Hi,
>
>
>
> I am having troubles compiling simple quick start project in VS 2008. On
> Windows 7 I have the error like this
>
>
>
> [ERROR] Failed to execute goal
> npanday.plugin:maven-compile-plugin:1.2.1:compile (default-compile) on
> project ClassLibrary2: NPANDAY-900-006: Unable to Compile: Language =
> C_SHARP, Vendor = null, ArtifactType = library, Source Directory =
> C:\Users\Vrudkovsky\TFS\ClassLibrary2\ClassLibrary2: NPANDAY-040-001: Could
> not execute: Command = cmd.exe /X /C ""csc
> @C:\Users\Vrudkovsky\TFS\ClassLibrary2\ClassLibrary2\target\811300\responcefile.rsp"",
> Result = 1 -> [Help 1]
>
>
>
> I noticed doubled quotes here cmd.exe /X /C ""csc… that does not seem to be
> valid syntax. If I run the command directly in command shell deleting extra
> quotes it ends successfully.
>
>
>
> Can someone help me?
>
>
>
> Thanks.
>
> Vlad
--
Brett Porter
brett@apache.org
http://brettporter.wordpress.com/