You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Jar Lyons <jl...@bluescooter.com> on 2001/10/17 02:21:25 UTC

what is the best way to pass in args?

Any suggested convention for getting to command line arguments from
within a Block?


---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Re: what is the best way to pass in args?

Posted by Peter Donald <do...@apache.org>.
Hi,

On Wed, 17 Oct 2001 10:21, Jar Lyons wrote:
> Any suggested convention for getting to command line arguments from
> within a Block?

Theres no real way of doing this as Phoenix assumes that all configuration 
data for applications is stored in config.xml. You may be able to hack 
something together by setting system properties and then retrieveing from 
your blocks by something like

set PHOENIX_JVM_OPTS=-Dmy.arg.1=Arg1 -Dmy.arg.2=Arg2
run.sh

-- 
Cheers,

Pete

-----------------------------------------------
"Only two things are infinite, the universe and 
human stupidity, and I'm not sure about the 
former." -Albert Einstein 
-----------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org