Overriding properties in command line mode

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

Overriding properties in command line mode

Eric van der Vlist
Hi,

Wondering what is the recommended way to override properties in command
line mode!


Eric



--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Overriding properties in command line mode

Eric van der Vlist
Le lundi 02 avril 2012 à 17:31 +0200, Eric van der Vlist a écrit :
> Hi,
>
> Wondering what is the recommended way to override properties in command
> line mode!

Hmmm... Looking at the source code I see that in command line mode the
property file is expected under oxf:/properties.xml (unlike in a webapp
where it should be under oxf:/config/properties.xml).

I guess that the easiest way is to create a properties file there!

Eric

> Eric
>
> pièce jointe document texte brut (message-footer.txt)
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.org/wws




--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Overriding properties in command line mode

Erik Bruchez
Administrator
In reply to this post by Eric van der Vlist
Eric,

Ideally from the command-line! But I don't think OPS.java does this at
the moment:

  https://github.com/orbeon/orbeon-forms/blob/master/src/java/org/orbeon/oxf/main/OPS.java

It would be good to add support for something like -Dfoo=bar on the
command-line.

Other than that, the properties file is loaded from the root of the
resource manager used by OPS.java:

  oxf:/properties.xml"

So yes, creating a new properties.xml file there might be a solution.

-Erik

On Mon, Apr 2, 2012 at 8:31 AM, Eric van der Vlist <[hidden email]> wrote:

> Hi,
>
> Wondering what is the recommended way to override properties in command
> line mode!
>
>
> Eric
>
>
>
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws