summaryrefslogtreecommitdiffstats
path: root/demo_gradle/plugins
diff options
context:
space:
mode:
authorStix <stix@phcn.de>2015-03-01 17:50:25 +0100
committerStix <stix@phcn.de>2015-03-01 17:50:25 +0100
commit8ee33ea45548455f2f3242cd51779cb4f7d5839d (patch)
tree9630531879bb4b19c0e2afcb96ab19f07a298ef5 /demo_gradle/plugins
parent0b3ac7fa749e188abbbfd21a550183bfcbbcb8f3 (diff)
downloadpf4j-8ee33ea45548455f2f3242cd51779cb4f7d5839d.tar.gz
pf4j-8ee33ea45548455f2f3242cd51779cb4f7d5839d.zip
minor fixes
Diffstat (limited to 'demo_gradle/plugins')
-rw-r--r--demo_gradle/plugins/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/demo_gradle/plugins/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java b/demo_gradle/plugins/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java
index 1c35259..824180c 100644
--- a/demo_gradle/plugins/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java
+++ b/demo_gradle/plugins/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java
@@ -1,23 +1,22 @@
/*
* Copyright 2012 Decebal Suiu
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with
* the License. You may obtain a copy of the License in the LICENSE file, or at:
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package ro.fortsoft.pf4j.demo.welcome;
-import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang3.StringUtils;
import ro.fortsoft.pf4j.Extension;
import ro.fortsoft.pf4j.Plugin;
import ro.fortsoft.pf4j.PluginWrapper;
-import ro.fortsoft.pf4j.RuntimeMode;
import ro.fortsoft.pf4j.demo.api.Greeting;
/**
@@ -32,10 +31,7 @@ public class WelcomePlugin extends Plugin {
@Override
public void start() {
System.out.println("WelcomePlugin.start()");
- // for testing the development mode
- if (RuntimeMode.DEVELOPMENT.equals(wrapper.getRuntimeMode())) {
System.out.println(StringUtils.upperCase("WelcomePlugin"));
- }
}
@Override