String[] windowsServiceDependencies = null;
for (Iterator i = daemon.getGeneratorConfigurations().iterator();
i.hasNext(); )
{
GeneratorConfiguration generatorConfiguration =
(GeneratorConfiguration) i.next();
if (generatorConfiguration.getGenerator().equals(NATIVE_GROUPID))
{
String winSerDep =
generatorConfiguration.getConfiguration().getProperty(
PROPERTY_WIN_DEPENDENCIES);
if ((winSerDep != null) && (winSerDep.length() > 0))
{
windowsServiceDependencies = winSerDep.split(",");
}
else
{
windowsServiceDependencies = new String[0];
}
startup = generatorConfiguration.getConfiguration().getProperty(
PROPERTY_WIN_STARTUP, startup);
if (startup.equalsIgnoreCase("manual")
|| startup.equalsIgnoreCase("auto"))
{
startup = startup.toLowerCase(Locale.ENGLISH);
}
else
{
throw new IllegalArgumentException(
"wrong value for windows.service.startup, possible values are manual or auto");
}
configDirectory = generatorConfiguration.getConfiguration().getProperty(
PROPERTY_CONFIGDIRECTORY);
String value = generatorConfiguration.getConfiguration().getProperty(
PROPERTY_DARWIN_USE_ARCH);
if ((value != null) && value.equalsIgnoreCase("false"))
{
darwinArch = false;