Re: Can I get arguments from command line?
Re: Can I get arguments from command line?
- Subject: Re: Can I get arguments from command line?
- From: Frédéric JECKER <email@hidden>
- Date: Tue, 22 Mar 2011 13:02:18 +0100
- Thread-topic: Can I get arguments from command line?
Hi,
You could achieve this by using System.getProperty("anArgument") and by
setting your argument using -DanArgument="qwerty"
Regards
Fred
-----Message d'origine-----
De : Xavi Garcia <email@hidden>
Date : Tue, 22 Mar 2011 12:28:19 +0100
À : <email@hidden>
Objet : Can I get arguments from command line?
>Hi all,
>
>Just a question... is it possible to get an argument from de command line?
>
>For exemple, another app starts the woa with a new customized parameter.
>./myApp.woa -anArgument qwerty
>
>After myApp starts I need to know the value of anArgument. Is there some
>way to get it?
>
>Many thanks for your help.
>Xavi _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Webobjects-dev mailing list (email@hidden)
>Help/Unsubscribe/Update your Subscription:
>om
>
>This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden