URL Generator and system property

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

URL Generator and system property

ozenzin
Good day
parsing documentation I did find an answer to question: is there a possibility to read file defined by system property, like

>java [start Tomcat] -Dsystem_property=path_to_file

My problem is we tend to put config files of several our web-apps into one dir and I'd like to have some config data for that one built on OF stored in such file. The paths to files defined with system property, but I cannot find a way to read such path with a handy processor.

I'd appreciate your advise, thank you,
Oleg



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: URL Generator and system property

Alessandro  Vernet
Administrator
Hi Oleg,

You can read the system properties with a custom processor of with
Java code that you run from the Java processor. In fact there is an
example that does just that (see examples/java). If you have a very
recent build, you won't find it as it has not been migrated to the new
example structure yet. (If that is the case, just let me know and I
will attach the relevant files to an email.)

Then once you have the properties in an XML document, you can use the
URL generator to read a particular file based on its name.

Alex

On 12/4/06, [hidden email] <[hidden email]> wrote:

> Good day
> parsing documentation I did find an answer to question: is there a possibility to read file defined by system property, like
>
> >java [start Tomcat] -Dsystem_property=path_to_file
>
> My problem is we tend to put config files of several our web-apps into one dir and I'd like to have some config data for that one built on OF stored in such file. The paths to files defined with system property, but I cannot find a way to read such path with a handy processor.
>
> I'd appreciate your advise, thank you,
> Oleg
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet