Init: Optionally skip plugin installation process
That change fixes acceptance test execution from eclipse. Change-Id: I489578d06a670547ea42dbbe41e2057b490208cd
This commit is contained in:
@@ -34,10 +34,14 @@ public class InitFlags {
|
||||
/** Run the daemon (and open the web UI in a browser) after initialization. */
|
||||
public boolean autoStart;
|
||||
|
||||
/** Skip plugins */
|
||||
public boolean skipPlugins;
|
||||
|
||||
public final FileBasedConfig cfg;
|
||||
public final FileBasedConfig sec;
|
||||
public final List<String> installPlugins;
|
||||
|
||||
|
||||
@Inject
|
||||
InitFlags(final SitePaths site,
|
||||
final @InstallPlugins List<String> installPlugins) throws IOException,
|
||||
|
@@ -75,6 +75,10 @@ public class SitePathInitializer {
|
||||
mkdir(site.data_dir);
|
||||
|
||||
for (InitStep step : steps) {
|
||||
if (step instanceof InitPlugins
|
||||
&& flags.skipPlugins) {
|
||||
continue;
|
||||
}
|
||||
step.run();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user