File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
src/core/Akka.Remote.TestKit Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 6
6
//-----------------------------------------------------------------------
7
7
8
8
using System ;
9
+ using System . Collections . Generic ;
9
10
using System . Collections . Specialized ;
10
11
using Akka . Configuration ;
11
12
@@ -32,7 +33,23 @@ public class CommandLine
32
33
static CommandLine ( )
33
34
{
34
35
Values = new StringDictionary ( ) ;
35
- foreach ( var arg in Environment . GetCommandLineArgs ( ) )
36
+
37
+ // Detect and fix PowerShell command line input.
38
+ // PowerShell splits command line arguments on '.'
39
+ var args = Environment . GetCommandLineArgs ( ) ;
40
+ var fixedArgs = new List < string > ( ) ;
41
+ for ( var i = 1 ; i < args . Length - 1 ; ++ i )
42
+ {
43
+ if ( args [ i ] . Equals ( "-Dmultinode" ) && args [ i + 1 ] . StartsWith ( "." ) )
44
+ {
45
+ fixedArgs . Add ( args [ i ] + args [ i + 1 ] ) ;
46
+ ++ i ;
47
+ }
48
+ }
49
+ if ( fixedArgs . Count == 0 )
50
+ fixedArgs . AddRange ( args ) ;
51
+
52
+ foreach ( var arg in fixedArgs )
36
53
{
37
54
if ( ! arg . StartsWith ( "-D" ) )
38
55
{
You can’t perform that action at this time.
0 commit comments