Skip to content

Commit

Permalink
FORGE-480
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Feb 27, 2012
1 parent 63491ef commit c37dffc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ public void testCreatePluginWithDashInName() throws Exception
getShell().execute("build");
}

@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
{
Expand Down
Empty file modified forge-install.bsh
100644 → 100755
Empty file.

0 comments on commit c37dffc

Please sign in to comment.