My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 23 attachment: ProjectCreator.patch.txt (1019 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Index: src/com/guit/scaffold/ProjectCreator.java
===================================================================
--- src/com/guit/scaffold/ProjectCreator.java (Revision 606)
+++ src/com/guit/scaffold/ProjectCreator.java (Arbeitskopie)
@@ -46,7 +46,8 @@

// Project name
String projectName = path.substring(0, path.lastIndexOf("/"));
- projectName = projectName.substring(projectName.lastIndexOf("/") + 1);
+ projectName = projectName.substring(projectName.lastIndexOf(".") + 1);
+ projectName = projectName.substring(0,1).toUpperCase()+projectName.substring(1).toLowerCase();

// Module name
String moduleName = projectName.toLowerCase();
@@ -208,7 +209,7 @@
+ projectName + "GuiceListener</listener-class>\n"
+ " </listener>\n" + "\n" + " <welcome-file-list>\n"
+ " <welcome-file>" + projectName
- + ".jsp</welcome-file>\n" + " </welcome-file-list>\n"
+ + ".html</welcome-file>\n" + " </welcome-file-list>\n"
+ "</web-app>\n" + "");

// Context listener
Powered by Google Project Hosting