Browse files

FORGE-480

  • Loading branch information...
1 parent 63491ef commit c37dffc282e51d37bf9bd4decaca268e2c9f6617 @lincolnthree lincolnthree committed Feb 27, 2012
View
2 dev-plugins/src/main/java/org/jboss/forge/dev/PluginsPlugin.java
@@ -105,7 +105,7 @@ public void newPlugin(final PipeOut out,
Map<Object, Object> context = new HashMap<Object, Object>();
context.put("name", className);
- context.put("alias", pluginName.replaceAll("[^A-Za-z-]", ""));
+ context.put("alias", pluginName.replaceAll("[^A-Za-z-]", "").toLowerCase());
CompiledTemplateResource pluginSource = compiler.compileResource(getClass().getResourceAsStream(
"/org/jboss/forge/dev/PluginTemplate.jv"));
View
11 dev-plugins/src/test/java/org/jboss/forge/dev/PluginsPluginTest.java
@@ -60,6 +60,17 @@ public void testCreatePluginWithDashInName() throws Exception
}
@Test
+ public void testCreatePluginWithUppercaseName() throws Exception
+ {
+ initializeJavaProject();
+ queueInputLines("1");
+ getShell().execute("plugins setup");
+ queueInputLines("");
+ getShell().execute("plugins new-plugin --named DemoPlugin");
+ getShell().execute("build");
+ }
+
+ @Test
public void testInstallPlugin() throws Exception
{
Project javaProject = initializeJavaProject();
View
0 forge-install.bsh 100644 → 100755
File mode changed.

0 comments on commit c37dffc

Please sign in to comment.