Oops, sorry, I had tried with quoting the option:
   --vmOptions="-Dbundles.configuration.location=${basedir}/config"
and it threw a weird exception.  it seems to work now.

On 10/12/07, Alin Dreghiciu <[EMAIL PROTECTED]> wrote:
> I'm do not know very well paxconf man (but I will son, as I want to
> enhance it) but you should:
> 1. have confman bundle installed and started
> 2. set up the config directory
>   2.1. you can use the default dir:
>     configurations/services for managed service ( this is for pax logger )
>     configurations/factories for managed service factory
>   2.2. set up your configurations dir using property
> bundles.configuration.location and have a subdirectory to that dir
> named "services"
> 3. have a file named org.ops4j.pax.logging.properties in the services
> directory. The file should contain the usual content of a
> log4j.properties
> 4. start pax runner
>
> If you want to configure the property "bundles.configuration.location"
> via pax runner options you can do:
>
> pax-run "--vmOptions=-Dbundles.configuration.location=c:/config"
>
> If you use the file scanner you should be able to put in your provisioning 
> file:
>
> -Dbundles.configuration.location=c:/config
>
> If you are using pom scanner you should be able have in the pom:
>
> <properties>
>   <bundles.configuration.location>c:/config</bundles.configuration.location>
> </properties>
>
> I'm gonna test all of this right now and I will be back with
> confirmation or corrections.
>
> Alin
>
> On 10/12/07, Guillaume Nodet <[EMAIL PROTECTED]> wrote:
> > Sounds like a good fit, but I've tried all the ways I could to pass
> > the needed system property to the runtime launched without any
> > success.  I supposed I missed something there, but I've tried
> > --vmOptions, -Dxx=yy on the command line, in the file scanner without
> > any success :-(
> >
> >
> > On 10/12/07, Stuart McCulloch <[EMAIL PROTECTED]> wrote:
> > > On 12/10/2007, Guillaume Nodet <[EMAIL PROTECTED]> wrote:
> > > > Sounds a bit complicated.  What about enhancing  pax-logging so that
> > > > it could use a system property to load a default configuration ? Or
> > > > enhancing pax-runner so that it can load config admin properties ?
> > >
> > >
> > > you might be interested in Pax-Confman:
> > >
> > >
> > > http://wiki.ops4j.org/confluence/display/ops4j/2007/09/23/Pax+ConfMan+0.2.0+Released
> > >
> > > which does something similar (loads config from a properties file)
> > >
> > > > On 10/12/07, Pedro Silva <[EMAIL PROTECTED]> wrote:
> > > > > Basically you should create a service that receives a 
> > > > > ConfigurationAdmin
> > > > > service and from there (see the api, and the compendium documentation)
> > > > > gets a configuration object for your bundle. After getting this
> > > > > Configuration object, just update it with the new properties.
> > > > >
> > > > > So basically we will need to search the configuration object for the 
> > > > > pax
> > > > > logging service that has the the following pid: 
> > > > > "org.ops4j.pax.logging"
> > > > > and then call the update method with the new Properties loaded from 
> > > > > the
> > > > > file.
> > > > >
> > > > > Pedro Silva
> > > > >
> > > > > Guillaume Nodet wrote:
> > > > > > I'm launching pax-runner and including pax-logging in the 
> > > > > > provisionned
> > > > > > bundles.  Is there any way to  provide  configuration file for the
> > > > > > underlying log4j ?  I'm not so familiar with the ConfigAdmin service
> > > > > > and I don't really know how to configure it :-(
> > > > > >
> > > > >
> > > > > _______________________________________________
> > > > > general mailing list
> > > > > general@lists.ops4j.org
> > > > > http://lists.ops4j.org/mailman/listinfo/general
> > > > >
> > > >
> > > >
> > > > --
> > > > Cheers,
> > > > Guillaume Nodet
> > > > ------------------------
> > > > Blog: http://gnodet.blogspot.com/
> > > >
> > > > _______________________________________________
> > > > general mailing list
> > > > general@lists.ops4j.org
> > > > http://lists.ops4j.org/mailman/listinfo/general
> > > >
> > >
> > >
> > >
> > > --
> > > Cheers, Stuart
> > > _______________________________________________
> > > general mailing list
> > > general@lists.ops4j.org
> > > http://lists.ops4j.org/mailman/listinfo/general
> > >
> > >
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> >
> > _______________________________________________
> > general mailing list
> > general@lists.ops4j.org
> > http://lists.ops4j.org/mailman/listinfo/general
> >
>
> _______________________________________________
> general mailing list
> general@lists.ops4j.org
> http://lists.ops4j.org/mailman/listinfo/general
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to