You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-dev@incubator.apache.org by "Brett Porter (JIRA)" <ji...@apache.org> on 2014/07/14 01:55:04 UTC

[jira] [Comment Edited] (NPANDAY-611) Linux build of plugins broken by \ in tests

    [ https://issues.apache.org/jira/browse/NPANDAY-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13915584#comment-13915584 ] 

Brett Porter edited comment on NPANDAY-611 at 7/14/14 1:53 AM:
---------------------------------------------------------------

{code}
Index: components/dotnet-executable/src/test/groovy/npanday/executable/execution/CommandExecutorTest.groovy
===================================================================
--- components/dotnet-executable/src/test/groovy/npanday/executable/execution/CommandExecutorTest.groovy	(revision 1572887)
+++ components/dotnet-executable/src/test/groovy/npanday/executable/execution/CommandExecutorTest.groovy	(working copy)
@@ -89,14 +89,14 @@
     public void testCommandArgWithSpaces()
     throws ExecutionException
     {
-        testArgExpansion(["a b"], '"a b\"');
+        testArgExpansion(["a b"], '"a b"');
     }
 
     @Test
     public void testCommandArgWithEmbeddedSingleQuotes_middle()
     throws ExecutionException
     {
-        testArgExpansion(["a ' b"], '"a \' b"');
+        testArgExpansion(["a ' b"], '"a ' b"');
     }
 
     @Test
@@ -417,4 +417,4 @@
     {
        return Os.isFamily(Os.FAMILY_WINDOWS);
     }
-}
\ No newline at end of file
+}
{code}


was (Author: dhakehurst):
Index: components/dotnet-executable/src/test/groovy/npanday/executable/execution/CommandExecutorTest.groovy
===================================================================
--- components/dotnet-executable/src/test/groovy/npanday/executable/execution/CommandExecutorTest.groovy	(revision 1572887)
+++ components/dotnet-executable/src/test/groovy/npanday/executable/execution/CommandExecutorTest.groovy	(working copy)
@@ -89,14 +89,14 @@
     public void testCommandArgWithSpaces()
     throws ExecutionException
     {
-        testArgExpansion(["a b"], '"a b\"');
+        testArgExpansion(["a b"], '"a b"');
     }
 
     @Test
     public void testCommandArgWithEmbeddedSingleQuotes_middle()
     throws ExecutionException
     {
-        testArgExpansion(["a ' b"], '"a \' b"');
+        testArgExpansion(["a ' b"], '"a ' b"');
     }
 
     @Test
@@ -417,4 +417,4 @@
     {
        return Os.isFamily(Os.FAMILY_WINDOWS);
     }
-}
\ No newline at end of file
+}


> Linux build of plugins broken by \ in tests
> -------------------------------------------
>
>                 Key: NPANDAY-611
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-611
>             Project: NPanday
>          Issue Type: Bug
>          Components: Maven Plugins
>    Affects Versions: 1.5.0-incubating
>            Reporter: David Akehurst
>             Fix For: 1.5.0-incubating
>
>
> Building the maven plugins on linux breaks when compiling the tests because of a few backslashes in the tests.
> not been able to test this on windows, but the attached comment of svn diff fixes it for linux.



--
This message was sent by Atlassian JIRA
(v6.2#6252)