[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] Re: The launcher JAR's class path

"Alex Blewitt" <alex.blewitt@xxxxxxxxx> writes:

> However, you can attach it as a standalone fragment to a bundle,
> which means that you've only got one thing to change when you want
> to apply different properties.

When you say "one thing to change", you mean the log4j.properties file
inside my fragment bundle, right? I still have to rebuild the bundle
to push the changes into the framework, unless I've misunderstood your
point here about "standalone" and "one thing". Are you suggesting I
can just point to a log4j.properties file sitting on disk?

> That fragment can even attach directly to the log4j bundle.

I tried that and it worked on the first try.

> You may find that you need to have "Export-Package:
> log4j.properties" if you have it in-bundle in order for log4j to
> find it, but you shouldn't need to do that if attaching to the log4j
> bundle as a fragment.

I didn't export anything, cited my Fragment-Host as "log4j", restarted
the framework with my fragment installed, and that pesky log4j warning
was no more.

I'm not sure setting up the whole Maven module and POM just to jam one
file in there was more worth it than just writing my own manifest, but
at least the packaging process is now repeatable.

-- 
Steven E. Harris