Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2014-10-30 22:04:02 +0000
committerJoakim Erdfelt2014-10-30 22:05:24 +0000
commit43b3cd9f46d7f3ee45a8936d8239adcc09e9114c (patch)
tree39167470ae560067cd07b8885c8643f209a10aac /jetty-start
parentd970e3d58b5f3bf57aaf3e7bc20fc1d7fead8b1d (diff)
downloadorg.eclipse.jetty.project-43b3cd9f46d7f3ee45a8936d8239adcc09e9114c.tar.gz
org.eclipse.jetty.project-43b3cd9f46d7f3ee45a8936d8239adcc09e9114c.tar.xz
org.eclipse.jetty.project-43b3cd9f46d7f3ee45a8936d8239adcc09e9114c.zip
449003 - WARNING: Cannot enable requested module [protonego-impl]: not a valid module name
+ Making protonego-impl/(npn|alpn).mod not contain default configuration
Diffstat (limited to 'jetty-start')
-rw-r--r--jetty-start/src/main/java/org/eclipse/jetty/start/Main.java16
-rw-r--r--jetty-start/src/main/java/org/eclipse/jetty/start/Module.java4
2 files changed, 8 insertions, 12 deletions
diff --git a/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java b/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java
index 3d70195556..f7d8d855d6 100644
--- a/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java
+++ b/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java
@@ -377,6 +377,7 @@ public class Main
return;
}
+ boolean transitive = module.isEnabled() && (module.getSources().size() == 0);
// Find any named ini file and check it follows the convention
Path start_ini = baseHome.getBasePath("start.ini");
@@ -394,7 +395,6 @@ public class Main
}
}
- boolean transitive = module.isEnabled() && (module.getSources().size() == 0);
boolean buildIni=false;
if (module.isEnabled())
{
@@ -406,13 +406,9 @@ public class Main
// else is it transitive
else if (transitive)
{
- // do we need an ini anyway?
- if (module.hasDefaultConfig() || module.hasLicense())
+ if (module.hasDefaultConfig())
{
buildIni = true;
- }
- else
- {
StartLog.info("%-15s initialised transitively",name);
}
}
@@ -430,7 +426,6 @@ public class Main
buildIni=true;
}
-
// If we need an ini
if (buildIni)
{
@@ -466,7 +461,6 @@ public class Main
}
}
-
// File BufferedWriter
BufferedWriter writer = null;
String source = null;
@@ -495,12 +489,12 @@ public class Main
{
out.println();
}
- out.println("#");
- out.println("# Initialize module " + name);
- out.println("#");
+ out.println("# --------------------------------------- ");
+ out.println("# Module: " + name);
Pattern p = Pattern.compile("--module=([^,]+)(,([^,]+))*");
out.println("--module=" + name);
+
args.parse("--module=" + name,source);
modules.enable(name,Collections.singletonList(source));
for (String line : module.getDefaultConfig())
diff --git a/jetty-start/src/main/java/org/eclipse/jetty/start/Module.java b/jetty-start/src/main/java/org/eclipse/jetty/start/Module.java
index db9e40a5cd..dadaa02442 100644
--- a/jetty-start/src/main/java/org/eclipse/jetty/start/Module.java
+++ b/jetty-start/src/main/java/org/eclipse/jetty/start/Module.java
@@ -97,6 +97,7 @@ public class Module
private List<String> xmls;
/** List of ini template lines */
private List<String> defaultConfig;
+ private boolean hasDefaultConfig = false;
/** List of library options for this Module */
private List<String> libs;
/** List of files for this Module */
@@ -222,7 +223,7 @@ public class Module
public boolean hasDefaultConfig()
{
- return (defaultConfig != null) && (defaultConfig.size() > 0);
+ return hasDefaultConfig;
}
public List<String> getLibs()
@@ -365,6 +366,7 @@ public class Module
case "DEFAULTS":
case "INI-TEMPLATE":
defaultConfig.add(line);
+ hasDefaultConfig = true;
break;
case "LIB":
libs.add(line);

Back to the top