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 protected]>
Date : Tue, 22 Mar 2011 12:28:19 +0100
À : <[email protected]>
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 protected])
>Help/Unsubscribe/Update your Subscription:
>http://lists.apple.com/mailman/options/webobjects-dev/f.jecker%40symaris.c
>om
>
>This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]