commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Fooks" <afo...@allot.com>
Subject RE: simple Java problem - please, help
Date Mon, 23 Feb 2009 14:47:37 GMT
Yes.
I already have the solution.


BR
Alex Fooks



-----Original Message-----
From: mickeydog [mailto:mickeydog@taosnet.com] 
Sent: Monday, February 23, 2009 3:18 PM
To: Commons Users List
Subject: Re: simple Java problem - please, help

Could it be an issue of case sensitivity?

Alexander Fooks wrote:
> Hello, All,
>
>  
>
> My application received parameters from the Java command line.
>
>  
>
> Some of parameter names have spaces inside.
>
> In W2K I use quotation marks and it works.
>
> In Linux (Red Hat) the same command line doesn't work:
>
>  
>
> ./run1.sh -add -service -name serviceNew -application "Other TCP"
> -service_type PRIMARY -add_port TCP:DEFAULT:555
>
> =====================Input:
>
> [-add]
>
> [-service]
>
> [-name]
>
> [serviceNew]
>
> [-application]
>
> [Other]
>
> [TCP]
>
> [-add_port]
>
> [TCP:DEFAULT:555] 
>
>  
>
> run1.bat -add -service -name serviceNew -application "Other TCP"
> -service_type PRIMARY -add_port TCP:DEFAULT:555
>
> =====================Input:
>
> [-add]
>
> [-service]
>
> [-name]
>
> [serviceNew]
>
> [-application]
>
> [Other TCP]
>
> [-service_type]
>
> [PRIMARY]
>
> [-add_port]
>
> [TCP:DEFAULT:555]
>
> =====================End Input:
>
>  
>
> This is run script on W2K:
>
> java -cp .;./lib/commons-cli-1.0.jar cli.TestCli %*
>
>  
>
> This is script on Linux:
>
> java   -cp  .:./lib/commons-cli-1.1.jar cli.TestCli $*
>
>  
>
> It's clear that Java VM does this wrong parsing of command line before
> of using commonCli.
>
>  
>
> Could anybody help me?
>
>  
>
>  
>
> Best Regards
>
>  
>
> Alex Fooks
>
>  
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message