|
|
|
Re: change initialArtifacts property via command line [message #698457 is a reply to message #697966] |
Tue, 19 July 2011 14:09 |
Dmitry Sklyut Messages: 279 Registered: January 2010 |
Senior Member |
|
|
I have a strong believe that you can extend initialArtifacts with command line arguments. Looking at the the Launcher and ArgumentParser - all arguments that are not -F, -B, -config will be pushed into "unrecognized" bucket and should be picked up by the kernel config code in org.eclipse.virgo.kernel.config.internal.commandline.CommandLinePropertiesSource. Those properties are later parsed and appended to the initialArtifacts user region property and used to bootstrap user region.
Places to look:
CommandLinePropertiesSource and its tests in org.eclipse.virgo.kernel.core project.
and
org.eclipse.virgo.kernel.userregion.internal.Activator
I have not done it - but you could try to start virgo with following command:
./startup.sh -plan,org.plan.name,versionId -plan,plan.name.2,versionId2
i.e.
./startup.sh -plan,foo -plan,bar,1.2.3
Regards,
Dmitry
|
|
|
Powered by
FUDForum. Page generated in 0.02575 seconds