Skip to content

Commit

Permalink
Fixed problem with combining deploy xml and cmd argument definition o…
Browse files Browse the repository at this point in the history
…f bundler zip.
  • Loading branch information
mss committed Jul 9, 2015
1 parent 834eafa commit f466144
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,8 @@ private static class ArgumentParameters {
options.addOption(Constants.ARG_JAR_FOLDER, HAS_ARG, "[OPTIONAL] Installing the external jar library "
+ "files within the given folder.");
options.addOption(Constants.ARG_SOURCE_ENCODING, HAS_ARG, "[OPTIONAL] Encoding to use for source files.");
options.addOption(Constants.ARG_DEFAULT_BUNDLER_ZIP, HAS_ARG, "[OPTIONAL] The bundled harvester to use.");
options.addOption(Constants.ARG_DEFAULT_BUNDLER_ZIP, HAS_ARG, "[OPTIONAL] The bundled harvester to use. "
+ "If not provided here the bundler needs to be provided in the settings for each (H3) harvester");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public LinuxMachine(Element subTreeRoot, XmlStructure parentSettings, Parameters
for (Application app : applications) {
if (app.isBundledHarvester()) {
bundlesArr = app.getSettingsValues(Constants.SETTINGS_HARVEST_HERITRIX3_BUNDLE_LEAF);
if ((bundlesArr != null || bundlesArr.length == 0)
if ((bundlesArr == null || bundlesArr.length == 0)
&& deployConfiguration.getDefaultBundlerZip().isPresent()) {
bundlesArr = new String[] { deployConfiguration.getDefaultBundlerZip().get().getAbsolutePath() };
} else if ((bundlesArr == null || bundlesArr.length == 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ National Library.
<jmxUsername>controlRole</jmxUsername>
<jmxPassword>R_D</jmxPassword>
</heritrix>
<serverDir>harvester3_low</serverDir>
<serverDir>harvester_snapshot</serverDir>
</harvesting>
</harvester>
</settings>
Expand Down Expand Up @@ -260,7 +260,7 @@ National Library.
<jmxUsername>controlRole</jmxUsername>
<jmxPassword>R_D</jmxPassword>
</heritrix>
<serverDir>harvester3_high</serverDir>
<serverDir>harvester_focused</serverDir>
</harvesting>
</harvester>
</settings>
Expand Down

0 comments on commit f466144

Please sign in to comment.