Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

FORGE-480

  • Loading branch information...
commit c37dffc282e51d37bf9bd4decaca268e2c9f6617 1 parent 63491ef
@lincolnthree lincolnthree authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.