l5m-tools 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/l5m-tools.gemspec +2 -2
- data/lib/l5m-tools/application.rb +7 -3
- data/lib/l5m-tools/template/Template.jsp +0 -0
- data/lib/l5m-tools/template/TemplateBaseAbstractWorker.java +7 -2
- data/lib/l5m-tools/template/TemplateServicerImpl.java +0 -0
- data/lib/l5m-tools/template/TemplateWorker.java +659 -653
- data/lib/l5m-tools/template/frt.jsp +0 -0
- data/lib/l5m-tools/template/ms2.jsp +0 -0
- data/lib/l5m-tools/template/rad.jsp +0 -0
- data/lib/l5m-tools/template/ttv2.jsp +0 -0
- metadata +11 -11
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/l5m-tools.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "l5m-tools"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["RONGHAI"]
|
12
|
-
s.date = "2013-02-
|
12
|
+
s.date = "2013-02-15"
|
13
13
|
s.description = "A tool set for Lake5Media and QingheTech developer"
|
14
14
|
s.email = "ronghai.wei@outlook.com"
|
15
15
|
s.executables = ["duplicate-app", "l5m", "make-app", "set_env.sh", "svn.tool"]
|
@@ -7,11 +7,15 @@ module L5MTools
|
|
7
7
|
require 'l5m-tools/tools'
|
8
8
|
include Tools
|
9
9
|
def duplicate_app(*args)
|
10
|
+
delete = args.delete('-d')
|
10
11
|
replacements = {args[1] => args[2]}
|
11
12
|
File.open(args[0], "r") do |infile|
|
12
13
|
while (line = infile.gets)
|
13
|
-
line = line.chomp.strip
|
14
|
-
|
14
|
+
line = line.chomp.strip
|
15
|
+
if line.length > 0 && line[0] != '#'
|
16
|
+
duplicate_and_replace( line.chomp , replacements )
|
17
|
+
FileUtils.rm(line, :force => true) if delete
|
18
|
+
end
|
15
19
|
end
|
16
20
|
end
|
17
21
|
end
|
@@ -38,4 +42,4 @@ module L5MTools
|
|
38
42
|
|
39
43
|
|
40
44
|
end
|
41
|
-
end
|
45
|
+
end
|
File without changes
|
@@ -13,15 +13,20 @@ import com.l5m.!REPLACE_STYLE!.engine.servicer.!REPLACE_ME_FILE!ServicerImpl.PAN
|
|
13
13
|
|
14
14
|
public class !REPLACE_ME_FILE!Worker extends AbstractBaseWorker {
|
15
15
|
private static final long serialVersionUID = 1L;
|
16
|
-
public static final String JSP_TOGO_PERIX
|
16
|
+
public static final String JSP_TOGO_PERIX; /*
|
17
17
|
* worker name w/o
|
18
18
|
* "Worker"
|
19
19
|
*/
|
20
|
+
public static final String packageLowerCase;
|
21
|
+
static{
|
22
|
+
String clazzNames[] = Thread.currentThread().getStackTrace()[2].getClassName().split("\\.");
|
23
|
+
JSP_TOGO_PERIX = clazzNames[5].substring(0, clazzNames[5].length - "Worker".length);
|
24
|
+
packageLowerCase = clazzNames[2];
|
25
|
+
}
|
20
26
|
public static final String JSP_TOGO = JSP_TOGO_PERIX + ".jsp";
|
21
27
|
public static final String WORKER_NAME = JSP_TOGO_PERIX + "Worker";
|
22
28
|
|
23
29
|
public static final String FORM_NAME = JSP_TOGO_PERIX + "Form";
|
24
|
-
public static final String packageLowerCase = "!REPLACE_STYLE!";
|
25
30
|
|
26
31
|
public static final String packageUpperCase = packageLowerCase.toUpperCase();
|
27
32
|
|
File without changes
|