Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How to pass property files not in start.d to start.jar ?

Yes, create a bugzilla with the patch.
We cannot accept anonymous patches, legally speaking.


--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts


On Thu, May 8, 2014 at 7:19 PM, Tom Zeller <tzeller@xxxxxxxxxxxxxx> wrote:
It would be great if start.jar would accept a properties file external
to jetty.home and jetty.base. Our application will ship with a single
properties file and we would like to not duplicate it to the
container.

Attached is a patch for jetty-start 9.1.5.v20140505 (not sure if this
list accepts attachments). I understand that this project does not
accept patches via email, but before I spend more time and create a
bugzilla issue I thought I would ask if the patch seems reasonable. I
basically copied StartArgs#resolveExtraXmls() and created
StartArgs#resolvePropertyFiles(). I did not write a test, but I did
verify that start.jar passed a property file external to
jetty.home|base to XmlConfiguration.

I can create a bugzilla issue, let me know.

Thanks,
Tom

On Wed, May 7, 2014 at 8:59 AM, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:
> that command line is invalid.
> how about ...
>
>> java -jar start.jar myapp.property=foo
>
> if you want a list of properties managed in a file, create a
> ${jetty.base}/start.ini and put your properties in there. (skip the
> start.d/*.ini use entirely)
>
>
> --
> Joakim Erdfelt <joakim@xxxxxxxxxxx>
> webtide.com - intalio.com/jetty
> Expert advice, services and support from from the Jetty & CometD experts
> eclipse.org/jetty - cometd.org
>
>
> On Tue, May 6, 2014 at 4:27 PM, Tom Zeller <tzeller@xxxxxxxxxxxxxx> wrote:
>>
>> Hi,
>>
>> According to the documentation [1], it should be possible to pass a
>> properties file located at an arbitrary path to start.jar, but this
>> does not seem to be the case :
>>
>>  > java -jar start.jar app.properties
>>  Unrecognized argument: "app.properties" in <command-line>
>>
>> It looks like command line args are not passed in totality from
>> StartArgs to XmlConfiguration.
>>
>> Is there a way to source properties for use in <Property /> elements
>> from a properties file at an arbitrary path (not in start.d) ?
>>
>> Thanks,
>> Tom
>>
>> [1]
>> http://www.eclipse.org/jetty/documentation/9.1.2.v20140210/jetty-xml-usage.html
>> (Setting Parameters in Configuration Files)
>> _______________________________________________
>> jetty-users mailing list
>> jetty-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
>
>
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top