Skip to content

Commit

Permalink
Trim plugin class names before trying to load them
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebort committed Jan 19, 2011
1 parent fb99bdd commit 7e90132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/src/play/Play.java
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ public static void loadPlugins() {
String line = null;
while ((line = reader.readLine()) != null) {
String[] infos = line.split(":");
PlayPlugin plugin = (PlayPlugin) Play.classloader.loadClass(infos[1]).newInstance();
PlayPlugin plugin = (PlayPlugin) Play.classloader.loadClass(infos[1].trim()).newInstance();
Logger.trace("Loaded plugin %s", plugin);
plugin.index = Integer.parseInt(infos[0]);
plugins.add(plugin);
Expand Down

0 comments on commit 7e90132

Please sign in to comment.