vraptor-scaffold 1.3.0.rc → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. data/.rvmrc.example +1 -0
  2. data/.travis.yml +2 -1
  3. data/CHANGELOG.rdoc +22 -3
  4. data/Rakefile +2 -2
  5. data/lib/vraptor-scaffold.rb +1 -1
  6. data/lib/vraptor-scaffold/generators/app/app_generator.rb +23 -56
  7. data/lib/vraptor-scaffold/generators/app/dependency/default_dependencies.rb +44 -0
  8. data/lib/vraptor-scaffold/generators/app/{dependency.rb → dependency/dependency.rb} +0 -0
  9. data/lib/vraptor-scaffold/generators/app/dependency/dependency_manager.rb +25 -0
  10. data/lib/vraptor-scaffold/generators/app/dependency/gae_dependencies.rb +49 -0
  11. data/lib/vraptor-scaffold/generators/app/dependency/heroku_dependencies.rb +48 -0
  12. data/lib/vraptor-scaffold/generators/app/freemarker_template_engine.rb +7 -5
  13. data/lib/vraptor-scaffold/generators/app/gae_app_generator.rb +145 -0
  14. data/lib/vraptor-scaffold/generators/app/jsp_template_engine.rb +6 -5
  15. data/lib/vraptor-scaffold/generators/app/templates/build-gae.xml +144 -0
  16. data/lib/vraptor-scaffold/generators/app/templates/build.gradle.erb +4 -4
  17. data/lib/vraptor-scaffold/generators/app/templates/eclipse/classpath-gae.erb +1 -3
  18. data/lib/vraptor-scaffold/generators/app/templates/eclipse/classpath.erb +1 -1
  19. data/lib/vraptor-scaffold/generators/app/templates/eclipse/project-gae.erb +2 -2
  20. data/lib/vraptor-scaffold/generators/app/templates/eclipse/settings-gae/com.google.appengine.eclipse.core.prefs +4 -0
  21. data/lib/vraptor-scaffold/generators/app/templates/eclipse/settings-gae/com.google.gdt.eclipse.core.prefs +1 -2
  22. data/lib/vraptor-scaffold/generators/app/templates/freemarker/macros/html.ftl +12 -0
  23. data/lib/vraptor-scaffold/generators/app/templates/freemarker/main.ftl.erb +18 -0
  24. data/lib/vraptor-scaffold/generators/app/templates/gae/appengine-web.xml.tt +1 -0
  25. data/lib/vraptor-scaffold/generators/app/templates/gae/ivysettings.xml +1 -1
  26. data/lib/vraptor-scaffold/generators/app/templates/gitignore-gae +4 -0
  27. data/lib/vraptor-scaffold/generators/app/templates/ivy.erb +3 -3
  28. data/lib/vraptor-scaffold/generators/app/templates/jsp/main.jsp.erb +20 -0
  29. data/lib/vraptor-scaffold/generators/app/templates/pom.erb +3 -3
  30. data/lib/vraptor-scaffold/generators/app/templates/vraptor-scaffold-gae.erb +7 -0
  31. data/lib/vraptor-scaffold/generators/base.rb +21 -0
  32. data/lib/vraptor-scaffold/generators/scaffold/attribute.rb +7 -1
  33. data/lib/vraptor-scaffold/generators/scaffold/base_scaffold.rb +18 -0
  34. data/lib/vraptor-scaffold/generators/scaffold/controller_generator/templates/controller.erb +26 -1
  35. data/lib/vraptor-scaffold/generators/scaffold/controller_generator/templates/controller_test.erb +1 -1
  36. data/lib/vraptor-scaffold/generators/scaffold/import_manager.rb +20 -0
  37. data/lib/vraptor-scaffold/generators/scaffold/model_generator/templates/model.erb +7 -4
  38. data/lib/vraptor-scaffold/generators/scaffold/model_generator/templates/objectify_model.erb +3 -3
  39. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/form.erb +8 -0
  40. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/templates/form.erb +13 -3
  41. data/lib/vraptor-scaffold/load_paths.rb +3 -3
  42. data/lib/vraptor-scaffold/runner/generator.rb +11 -1
  43. data/lib/vraptor-scaffold/runner/start.rb +1 -1
  44. data/lib/vraptor-scaffold/version.rb +1 -1
  45. data/maven/repo/br/com/caelum/vraptor3.4-compatible-gae/1.1/vraptor3.4-compatible-gae-1.1.jar +0 -0
  46. data/spec/spec_helper.rb +9 -1
  47. data/spec/vraptor-scaffold/generators/app/app_generator_spec.rb +47 -99
  48. data/spec/vraptor-scaffold/generators/app/dependency/dependency_manager_spec.rb +21 -0
  49. data/spec/vraptor-scaffold/generators/app/{dependency_spec.rb → dependency/dependency_spec.rb} +4 -4
  50. data/spec/vraptor-scaffold/generators/app/dependency/gae_dependencies_spec.rb +20 -0
  51. data/spec/vraptor-scaffold/generators/app/dependency/heroku_dependencies_spec.rb +20 -0
  52. data/spec/vraptor-scaffold/generators/app/freemarker_template_engine_spec.rb +49 -7
  53. data/spec/vraptor-scaffold/generators/app/gae_app_generator_spec.rb +286 -0
  54. data/spec/vraptor-scaffold/generators/app/jsp_template_engine_spec.rb +49 -7
  55. data/spec/vraptor-scaffold/generators/app/templates/build.gradle +6 -6
  56. data/spec/vraptor-scaffold/generators/app/templates/classpath-gae +1 -3
  57. data/spec/vraptor-scaffold/generators/app/templates/gae-jsp-web.xml +1 -1
  58. data/spec/vraptor-scaffold/generators/app/templates/ivy-gae.xml +8 -6
  59. data/spec/vraptor-scaffold/generators/app/templates/ivy.xml +5 -5
  60. data/{lib/vraptor-scaffold/generators/app/templates/freemarker/main.ftl → spec/vraptor-scaffold/generators/app/templates/main-with-jquery.ftl} +0 -0
  61. data/{lib/vraptor-scaffold/generators/app/templates/jsp/main.jsp → spec/vraptor-scaffold/generators/app/templates/main-with-jquery.jsp} +0 -0
  62. data/spec/vraptor-scaffold/generators/app/templates/main-without-jquery.ftl +14 -0
  63. data/spec/vraptor-scaffold/generators/app/templates/main-without-jquery.jsp +16 -0
  64. data/spec/vraptor-scaffold/generators/app/templates/pom-heroku.xml +5 -5
  65. data/spec/vraptor-scaffold/generators/app/templates/pom.xml +5 -5
  66. data/spec/vraptor-scaffold/generators/app/templates/project-gae +2 -2
  67. data/spec/vraptor-scaffold/generators/app/templates/vraptor-scaffold-gae.properties +7 -0
  68. data/spec/vraptor-scaffold/generators/plugin/expected_configs/build.gradle +7 -7
  69. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_build.gradle +6 -6
  70. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_ivy.xml +5 -5
  71. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_pom.xml +5 -5
  72. data/spec/vraptor-scaffold/generators/plugin/expected_configs/ivy.xml +6 -6
  73. data/spec/vraptor-scaffold/generators/plugin/expected_configs/pom.xml +6 -6
  74. data/spec/vraptor-scaffold/generators/plugin/plugin_generator_spec.rb +7 -7
  75. data/spec/vraptor-scaffold/generators/scaffold/attribute_spec.rb +198 -181
  76. data/spec/vraptor-scaffold/generators/scaffold/base_scaffold_spec.rb +7 -1
  77. data/spec/vraptor-scaffold/generators/scaffold/controller_generator/templates/ProductController.java +9 -1
  78. data/spec/vraptor-scaffold/generators/scaffold/freemarker_generator/templates/form.ftl +15 -0
  79. data/spec/vraptor-scaffold/generators/scaffold/import_manager_spec.rb +9 -0
  80. data/spec/vraptor-scaffold/generators/scaffold/jsp_generator/templates/form.jsp +23 -3
  81. data/spec/vraptor-scaffold/generators/scaffold/model_generator/model_generator_spec.rb +2 -2
  82. data/spec/vraptor-scaffold/generators/scaffold/model_generator/objectify_model_generator_spec.rb +6 -6
  83. data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/Objectify_Product.java +23 -5
  84. data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/Product.java +24 -6
  85. data/spec/vraptor-scaffold/http_request_spec.rb +10 -0
  86. data/spec/vraptor-scaffold/runner/generator_spec.rb +18 -2
  87. metadata +86 -30
  88. data/lib/vraptor-scaffold/generators/app/dependency_manager.rb +0 -83
  89. data/spec/vraptor-scaffold/generators/app/dependency_manager_spec.rb +0 -34
@@ -8,6 +8,9 @@ describe JspTemplateEngine do
8
8
  @web_inf = "#{@project_path}/#{Configuration::WEB_INF}"
9
9
  @decorators = "#{@web_inf}/jsp/decorators"
10
10
  @app = "#{@project_path}/#{Configuration::MAIN_SRC}/app"
11
+
12
+ mock_http_request()
13
+
11
14
  AppGenerator.new(@project_path).invoke_all
12
15
  end
13
16
 
@@ -22,34 +25,73 @@ describe JspTemplateEngine do
22
25
  end
23
26
 
24
27
  it "should create views folder" do
25
- File.exist?("#{@web_inf}/jsp").should be_true
28
+ File.exist?("#{@web_inf}/jsp").should be_true
26
29
  end
27
30
 
28
31
  it "should create decorator file" do
29
- source = "#{JspTemplateEngine.source_root}/main.jsp"
30
- destination = "#{@decorators}/main.jsp"
31
- exists_and_identical?(source, destination)
32
+ File.exists?("#{@decorators}/main.jsp").should be_true
32
33
  end
33
34
 
34
35
  it "should not create infrastructure folder" do
35
- File.exist?("#{@app}/infrastructure").should be_false
36
+ File.exist?("#{@app}/infrastructure").should be_false
36
37
  end
37
38
 
38
39
  it "should not create path resolver" do
39
40
  to = "#{@app}/infrastructure/FreemarkerPathResolver.java"
40
41
  File.exist?(to).should be_false
41
42
  end
42
-
43
+
43
44
  it "should create web.xml" do
44
45
  source = File.join File.dirname(__FILE__), "templates", "jsp-web.xml"
45
46
  destination = "#{@web_inf}/web.xml"
46
47
  exists_and_identical?(source, destination)
47
48
  end
48
-
49
+
49
50
  it "should create prelude.jspf" do
50
51
  source = "#{JspTemplateEngine.source_root}/prelude.jspf"
51
52
  destination = "#{@web_inf}/jsp/prelude.jspf"
52
53
  exists_and_identical?(source, destination)
53
54
  end
54
55
  end
56
+
57
+ context "building a jsp application with jquery" do
58
+ before(:all) do
59
+ @project_path = "src/vraptor-scaffold-with-jquery"
60
+ @web_inf = "#{@project_path}/#{Configuration::WEB_INF}"
61
+ @decorators = "#{@web_inf}/jsp/decorators"
62
+
63
+ mock_http_request()
64
+
65
+ AppGenerator.new(@project_path).invoke_all
66
+ end
67
+
68
+ after(:all) do
69
+ FileUtils.remove_dir("src/vraptor-scaffold-with-jquery")
70
+ end
71
+
72
+ it "should create a main file with jquery js import" do
73
+ source = File.join File.dirname(__FILE__), "templates", "main-with-jquery.jsp"
74
+ destination = "#{@decorators}/main.jsp"
75
+ exists_and_identical?(source, destination)
76
+ end
77
+ end
78
+
79
+ context "building a jsp application without jquery" do
80
+ before(:all) do
81
+ @project_path = "src/vraptor-scaffold-without-jquery"
82
+ @web_inf = "#{@project_path}/#{Configuration::WEB_INF}"
83
+ @decorators = "#{@web_inf}/jsp/decorators"
84
+ AppGenerator.new(@project_path, ["--skip-jquery"]).invoke_all
85
+ end
86
+
87
+ after(:all) do
88
+ FileUtils.remove_dir("src/vraptor-scaffold-without-jquery")
89
+ end
90
+
91
+ it "should create a main file with jquery js import" do
92
+ source = File.join File.dirname(__FILE__), "templates", "main-without-jquery.jsp"
93
+ destination = "#{@decorators}/main.jsp"
94
+ exists_and_identical?(source, destination)
95
+ end
96
+ end
55
97
  end
@@ -34,17 +34,17 @@ sourceSets {
34
34
  sourceSets.main.classesDir = new File('src/main/webapp/WEB-INF/classes')
35
35
 
36
36
  jettyRun.scanIntervalSeconds=3
37
- jettyRun.contextPath = '/'
37
+ jettyRun.contextPath = '/'
38
38
  [jettyRunWar,jettyStop]*.stopPort = 8081
39
39
  [jettyRunWar,jettyStop]*.stopKey = 'stopKey'
40
40
 
41
41
  dependencies {
42
- compile group: 'br.com.caelum', name: 'vraptor', version: '3.4.0'
42
+ compile group: 'br.com.caelum', name: 'vraptor', version: '3.4.1'
43
43
  compile group: 'opensymphony', name: 'sitemesh', version: '2.4.2'
44
44
  compile group: 'javax.servlet', name: 'jstl', version: '1.2'
45
- compile group: 'org.hsqldb', name: 'hsqldb', version: '2.2.4'
46
- compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '3.6.7.Final'
47
- compile group: 'org.hibernate', name: 'hibernate-c3p0', version: '3.6.7.Final'
45
+ compile group: 'org.hsqldb', name: 'hsqldb', version: '2.2.8'
46
+ compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '4.0.1.Final'
47
+ compile group: 'org.hibernate', name: 'hibernate-c3p0', version: '4.0.1.Final'
48
48
  compile group: 'org.hibernate', name: 'hibernate-validator', version: '4.2.0.Final'
49
49
  compile group: 'joda-time', name: 'joda-time', version: '2.0'
50
50
  compile group: 'com.thoughtworks.xstream', name: 'xstream', version: '1.4.1'
@@ -56,5 +56,5 @@ dependencies {
56
56
  //Test dependencies
57
57
  testCompile group: 'junit', name: 'junit', version: '4.10'
58
58
  testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.1'
59
- testCompile group: 'org.mockito', name: 'mockito-all', version: '1.8.5'
59
+ testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.0'
60
60
  }
@@ -2,8 +2,6 @@
2
2
  <classpath>
3
3
  <classpathentry kind="src" path="src/main/java"/>
4
4
  <classpathentry kind="src" path="src/main/resources"/>
5
- <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
6
- <classpathentry kind="src" output="target/test-classes" path="src/test/resources"/>
7
5
  <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
8
6
  <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
9
7
 
@@ -11,7 +9,7 @@
11
9
 
12
10
  <classpathentry kind="lib" path="lib/test/hamcrest-all-1.1.jar"/>
13
11
 
14
- <classpathentry kind="lib" path="lib/test/mockito-all-1.8.5.jar"/>
12
+ <classpathentry kind="lib" path="lib/test/mockito-all-1.9.0.jar"/>
15
13
  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
16
14
  <classpathentry kind="con" path="com.google.appengine.eclipse.core.GAE_CONTAINER"/>
17
15
  <classpathentry kind="output" path="src/main/webapp/WEB-INF/classes"/>
@@ -7,7 +7,7 @@
7
7
 
8
8
  <context-param>
9
9
  <param-name>br.com.caelum.vraptor.packages</param-name>
10
- <param-value>br.com.caelum.vraptor.util.gae</param-value>
10
+ <param-value>br.com.caelum.vraptor.gae</param-value>
11
11
  </context-param>
12
12
 
13
13
  <context-param>
@@ -10,18 +10,20 @@
10
10
  </configurations>
11
11
 
12
12
  <dependencies>
13
- <dependency org="br.com.caelum" name="vraptor" rev="3.3.1" conf="default" />
13
+ <dependency org="br.com.caelum" name="vraptor" rev="3.4.1" conf="default">
14
+ <exclude org="org.objenesis" name="objenesis" />
15
+ </dependency>
14
16
  <dependency org="opensymphony" name="sitemesh" rev="2.4.2" conf="default" />
15
17
  <dependency org="javax.servlet" name="jstl" rev="1.2" conf="default" />
16
18
  <dependency org="org.hibernate" name="hibernate-validator" rev="4.2.0.Final" conf="default" />
17
19
  <dependency org="joda-time" name="joda-time" rev="2.0" conf="default" />
18
20
  <dependency org="com.thoughtworks.xstream" name="xstream" rev="1.4.1" conf="default" />
19
21
  <dependency org="com.googlecode.objectify" name="objectify" rev="3.1" conf="default" />
20
- <dependency org="br.com.caelum" name="vraptor-gae" rev="1.0" conf="default" />
22
+ <dependency org="br.com.caelum" name="vraptor3.4-compatible-gae" rev="1.1" conf="default" />
21
23
  <dependency org="commons-fileupload" name="commons-fileupload" rev="1.2.2" conf="default" />
22
- <dependency org="com.google.appengine" name="appengine-api-1.0-sdk" rev="1.6.0" conf="default" />
23
- <dependency org="com.google.appengine" name="appengine-api-labs" rev="1.6.0" conf="default" />
24
- <dependency org="com.google.appengine" name="appengine-jsr107cache" rev="1.6.0" conf="default" />
24
+ <dependency org="com.google.appengine" name="appengine-api-1.0-sdk" rev="1.7.2.1" conf="default" />
25
+ <dependency org="com.google.appengine" name="appengine-api-labs" rev="1.7.2.1" conf="default" />
26
+ <dependency org="com.google.appengine" name="appengine-jsr107cache" rev="1.7.2.1" conf="default" />
25
27
  <dependency org="net.sf.jsr107cache" name="jsr107cache" rev="1.1" conf="default" />
26
28
  <dependency org="org.apache.geronimo.specs" name="geronimo-jpa_3.0_spec" rev="1.1.1" conf="default" />
27
29
 
@@ -32,7 +34,7 @@
32
34
  <!-- Test dependencies -->
33
35
  <dependency org="junit" name="junit" rev="4.10" conf="test->default" />
34
36
  <dependency org="org.hamcrest" name="hamcrest-all" rev="1.1" conf="test->default" />
35
- <dependency org="org.mockito" name="mockito-all" rev="1.8.5" conf="test->default" />
37
+ <dependency org="org.mockito" name="mockito-all" rev="1.9.0" conf="test->default" />
36
38
 
37
39
  <!-- Jetty dependencies -->
38
40
  <dependency org="org.mortbay.jetty" name="jsp-api-2.1" rev="6.1.14" conf="jetty->default" />
@@ -10,12 +10,12 @@
10
10
  </configurations>
11
11
 
12
12
  <dependencies>
13
- <dependency org="br.com.caelum" name="vraptor" rev="3.4.0" conf="default" />
13
+ <dependency org="br.com.caelum" name="vraptor" rev="3.4.1" conf="default" />
14
14
  <dependency org="opensymphony" name="sitemesh" rev="2.4.2" conf="default" />
15
15
  <dependency org="javax.servlet" name="jstl" rev="1.2" conf="default" />
16
- <dependency org="org.hsqldb" name="hsqldb" rev="2.2.4" conf="default" />
17
- <dependency org="org.hibernate" name="hibernate-entitymanager" rev="3.6.7.Final" conf="default" />
18
- <dependency org="org.hibernate" name="hibernate-c3p0" rev="3.6.7.Final" conf="default" />
16
+ <dependency org="org.hsqldb" name="hsqldb" rev="2.2.8" conf="default" />
17
+ <dependency org="org.hibernate" name="hibernate-entitymanager" rev="4.0.1.Final" conf="default" />
18
+ <dependency org="org.hibernate" name="hibernate-c3p0" rev="4.0.1.Final" conf="default" />
19
19
  <dependency org="org.hibernate" name="hibernate-validator" rev="4.2.0.Final" conf="default" />
20
20
  <dependency org="joda-time" name="joda-time" rev="2.0" conf="default" />
21
21
  <dependency org="com.thoughtworks.xstream" name="xstream" rev="1.4.1" conf="default" />
@@ -27,7 +27,7 @@
27
27
  <!-- Test dependencies -->
28
28
  <dependency org="junit" name="junit" rev="4.10" conf="test->default" />
29
29
  <dependency org="org.hamcrest" name="hamcrest-all" rev="1.1" conf="test->default" />
30
- <dependency org="org.mockito" name="mockito-all" rev="1.8.5" conf="test->default" />
30
+ <dependency org="org.mockito" name="mockito-all" rev="1.9.0" conf="test->default" />
31
31
 
32
32
  <!-- Jetty dependencies -->
33
33
  <dependency org="org.mortbay.jetty" name="jsp-api-2.1" rev="6.1.14" conf="jetty->default" />
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5
+ <@html.css "application"/>
6
+ <title>Vraptor Scaffold</title>
7
+ ${head}
8
+ </head>
9
+
10
+ <body>
11
+ ${body}
12
+ <@html.js "application"/>
13
+ </body>
14
+ </html>
@@ -0,0 +1,16 @@
1
+ <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
2
+
3
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+
5
+ <html>
6
+ <head>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8
+ <title><decorator:title default="Vraptor Scaffold"/></title>
9
+ <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/stylesheets/application.css"/>
10
+ <decorator:head/>
11
+ </head>
12
+ <body>
13
+ <decorator:body/>
14
+ <script type="text/javascript" src="${pageContext.request.contextPath}/javascripts/application.js"></script>
15
+ </body>
16
+ </html>
@@ -79,7 +79,7 @@
79
79
  <dependency>
80
80
  <groupId>br.com.caelum</groupId>
81
81
  <artifactId>vraptor</artifactId>
82
- <version>3.4.0</version>
82
+ <version>3.4.1</version>
83
83
  </dependency>
84
84
  <dependency>
85
85
  <groupId>opensymphony</groupId>
@@ -94,17 +94,17 @@
94
94
  <dependency>
95
95
  <groupId>org.hsqldb</groupId>
96
96
  <artifactId>hsqldb</artifactId>
97
- <version>2.2.4</version>
97
+ <version>2.2.8</version>
98
98
  </dependency>
99
99
  <dependency>
100
100
  <groupId>org.hibernate</groupId>
101
101
  <artifactId>hibernate-entitymanager</artifactId>
102
- <version>3.6.7.Final</version>
102
+ <version>4.0.1.Final</version>
103
103
  </dependency>
104
104
  <dependency>
105
105
  <groupId>org.hibernate</groupId>
106
106
  <artifactId>hibernate-c3p0</artifactId>
107
- <version>3.6.7.Final</version>
107
+ <version>4.0.1.Final</version>
108
108
  </dependency>
109
109
  <dependency>
110
110
  <groupId>org.hibernate</groupId>
@@ -153,7 +153,7 @@
153
153
  <dependency>
154
154
  <groupId>org.mockito</groupId>
155
155
  <artifactId>mockito-all</artifactId>
156
- <version>1.8.5</version>
156
+ <version>1.9.0</version>
157
157
  <scope>test</scope>
158
158
  </dependency>
159
159
 
@@ -57,7 +57,7 @@
57
57
  <dependency>
58
58
  <groupId>br.com.caelum</groupId>
59
59
  <artifactId>vraptor</artifactId>
60
- <version>3.4.0</version>
60
+ <version>3.4.1</version>
61
61
  </dependency>
62
62
  <dependency>
63
63
  <groupId>opensymphony</groupId>
@@ -72,17 +72,17 @@
72
72
  <dependency>
73
73
  <groupId>org.hsqldb</groupId>
74
74
  <artifactId>hsqldb</artifactId>
75
- <version>2.2.4</version>
75
+ <version>2.2.8</version>
76
76
  </dependency>
77
77
  <dependency>
78
78
  <groupId>org.hibernate</groupId>
79
79
  <artifactId>hibernate-entitymanager</artifactId>
80
- <version>3.6.7.Final</version>
80
+ <version>4.0.1.Final</version>
81
81
  </dependency>
82
82
  <dependency>
83
83
  <groupId>org.hibernate</groupId>
84
84
  <artifactId>hibernate-c3p0</artifactId>
85
- <version>3.6.7.Final</version>
85
+ <version>4.0.1.Final</version>
86
86
  </dependency>
87
87
  <dependency>
88
88
  <groupId>org.hibernate</groupId>
@@ -116,7 +116,7 @@
116
116
  <dependency>
117
117
  <groupId>org.mockito</groupId>
118
118
  <artifactId>mockito-all</artifactId>
119
- <version>1.8.5</version>
119
+ <version>1.9.0</version>
120
120
  <scope>test</scope>
121
121
  </dependency>
122
122
 
@@ -26,12 +26,12 @@
26
26
  </arguments>
27
27
  </buildCommand>
28
28
  <buildCommand>
29
- <name>com.google.appengine.eclipse.core.enhancerbuilder</name>
29
+ <name>com.google.appengine.eclipse.core.projectValidator</name>
30
30
  <arguments>
31
31
  </arguments>
32
32
  </buildCommand>
33
33
  <buildCommand>
34
- <name>com.google.appengine.eclipse.core.projectValidator</name>
34
+ <name>com.google.appengine.eclipse.core.enhancerbuilder</name>
35
35
  <arguments>
36
36
  </arguments>
37
37
  </buildCommand>
@@ -0,0 +1,7 @@
1
+ build_tool: ant
2
+ package: app
3
+ template_engine: jsp
4
+ orm: objectify
5
+ models_package: domain
6
+ controllers_package: control
7
+ repositories_package: repository
@@ -34,19 +34,19 @@ sourceSets {
34
34
  sourceSets.main.classesDir = new File('src/main/webapp/WEB-INF/classes')
35
35
 
36
36
  jettyRun.scanIntervalSeconds=3
37
- jettyRun.contextPath = '/'
37
+ jettyRun.contextPath = '/'
38
38
  [jettyRunWar,jettyStop]*.stopPort = 8081
39
39
  [jettyRunWar,jettyStop]*.stopKey = 'stopKey'
40
40
 
41
41
  dependencies {
42
- compile group: 'br.com.caelum.vraptor.plugin', name: 'vraptor-environment', version: '0.0.8'
42
+ compile group: 'br.com.caelum.vraptor', name: 'vraptor-environment', version: '0.0.8'
43
43
 
44
- compile group: 'br.com.caelum', name: 'vraptor', version: '3.4.0'
44
+ compile group: 'br.com.caelum', name: 'vraptor', version: '3.4.1'
45
45
  compile group: 'opensymphony', name: 'sitemesh', version: '2.4.2'
46
46
  compile group: 'javax.servlet', name: 'jstl', version: '1.2'
47
- compile group: 'org.hsqldb', name: 'hsqldb', version: '2.2.4'
48
- compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '3.6.7.Final'
49
- compile group: 'org.hibernate', name: 'hibernate-c3p0', version: '3.6.7.Final'
47
+ compile group: 'org.hsqldb', name: 'hsqldb', version: '2.2.8'
48
+ compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '4.0.1.Final'
49
+ compile group: 'org.hibernate', name: 'hibernate-c3p0', version: '4.0.1.Final'
50
50
  compile group: 'org.hibernate', name: 'hibernate-validator', version: '4.2.0.Final'
51
51
  compile group: 'joda-time', name: 'joda-time', version: '2.0'
52
52
  compile group: 'com.thoughtworks.xstream', name: 'xstream', version: '1.4.1'
@@ -58,5 +58,5 @@ dependencies {
58
58
  //Test dependencies
59
59
  testCompile group: 'junit', name: 'junit', version: '4.10'
60
60
  testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.1'
61
- testCompile group: 'org.mockito', name: 'mockito-all', version: '1.8.5'
61
+ testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.0'
62
62
  }
@@ -34,19 +34,19 @@ sourceSets {
34
34
  sourceSets.main.classesDir = new File('src/main/webapp/WEB-INF/classes')
35
35
 
36
36
  jettyRun.scanIntervalSeconds=3
37
- jettyRun.contextPath = '/'
37
+ jettyRun.contextPath = '/'
38
38
  [jettyRunWar,jettyStop]*.stopPort = 8081
39
39
  [jettyRunWar,jettyStop]*.stopKey = 'stopKey'
40
40
 
41
41
  dependencies {
42
42
  compile group: 'br.com.caelum.vraptor', name: 'vraptor-environment', version: '0.0.8'
43
43
 
44
- compile group: 'br.com.caelum', name: 'vraptor', version: '3.4.0'
44
+ compile group: 'br.com.caelum', name: 'vraptor', version: '3.4.1'
45
45
  compile group: 'opensymphony', name: 'sitemesh', version: '2.4.2'
46
46
  compile group: 'javax.servlet', name: 'jstl', version: '1.2'
47
- compile group: 'org.hsqldb', name: 'hsqldb', version: '2.2.4'
48
- compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '3.6.7.Final'
49
- compile group: 'org.hibernate', name: 'hibernate-c3p0', version: '3.6.7.Final'
47
+ compile group: 'org.hsqldb', name: 'hsqldb', version: '2.2.8'
48
+ compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '4.0.1.Final'
49
+ compile group: 'org.hibernate', name: 'hibernate-c3p0', version: '4.0.1.Final'
50
50
  compile group: 'org.hibernate', name: 'hibernate-validator', version: '4.2.0.Final'
51
51
  compile group: 'joda-time', name: 'joda-time', version: '2.0'
52
52
  compile group: 'com.thoughtworks.xstream', name: 'xstream', version: '1.4.1'
@@ -58,5 +58,5 @@ dependencies {
58
58
  //Test dependencies
59
59
  testCompile group: 'junit', name: 'junit', version: '4.10'
60
60
  testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.1'
61
- testCompile group: 'org.mockito', name: 'mockito-all', version: '1.8.5'
61
+ testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.0'
62
62
  }
@@ -11,12 +11,12 @@
11
11
 
12
12
  <dependencies>
13
13
  <dependency org="br.com.caelum.vraptor" name="vraptor-environment" rev="0.0.8" conf="default" />
14
- <dependency org="br.com.caelum" name="vraptor" rev="3.4.0" conf="default" />
14
+ <dependency org="br.com.caelum" name="vraptor" rev="3.4.1" conf="default" />
15
15
  <dependency org="opensymphony" name="sitemesh" rev="2.4.2" conf="default" />
16
16
  <dependency org="javax.servlet" name="jstl" rev="1.2" conf="default" />
17
- <dependency org="org.hsqldb" name="hsqldb" rev="2.2.4" conf="default" />
18
- <dependency org="org.hibernate" name="hibernate-entitymanager" rev="3.6.7.Final" conf="default" />
19
- <dependency org="org.hibernate" name="hibernate-c3p0" rev="3.6.7.Final" conf="default" />
17
+ <dependency org="org.hsqldb" name="hsqldb" rev="2.2.8" conf="default" />
18
+ <dependency org="org.hibernate" name="hibernate-entitymanager" rev="4.0.1.Final" conf="default" />
19
+ <dependency org="org.hibernate" name="hibernate-c3p0" rev="4.0.1.Final" conf="default" />
20
20
  <dependency org="org.hibernate" name="hibernate-validator" rev="4.2.0.Final" conf="default" />
21
21
  <dependency org="joda-time" name="joda-time" rev="2.0" conf="default" />
22
22
  <dependency org="com.thoughtworks.xstream" name="xstream" rev="1.4.1" conf="default" />
@@ -28,7 +28,7 @@
28
28
  <!-- Test dependencies -->
29
29
  <dependency org="junit" name="junit" rev="4.10" conf="test->default" />
30
30
  <dependency org="org.hamcrest" name="hamcrest-all" rev="1.1" conf="test->default" />
31
- <dependency org="org.mockito" name="mockito-all" rev="1.8.5" conf="test->default" />
31
+ <dependency org="org.mockito" name="mockito-all" rev="1.9.0" conf="test->default" />
32
32
 
33
33
  <!-- Jetty dependencies -->
34
34
  <dependency org="org.mortbay.jetty" name="jsp-api-2.1" rev="6.1.14" conf="jetty->default" />
@@ -62,7 +62,7 @@
62
62
  <dependency>
63
63
  <groupId>br.com.caelum</groupId>
64
64
  <artifactId>vraptor</artifactId>
65
- <version>3.4.0</version>
65
+ <version>3.4.1</version>
66
66
  </dependency>
67
67
  <dependency>
68
68
  <groupId>opensymphony</groupId>
@@ -77,17 +77,17 @@
77
77
  <dependency>
78
78
  <groupId>org.hsqldb</groupId>
79
79
  <artifactId>hsqldb</artifactId>
80
- <version>2.2.4</version>
80
+ <version>2.2.8</version>
81
81
  </dependency>
82
82
  <dependency>
83
83
  <groupId>org.hibernate</groupId>
84
84
  <artifactId>hibernate-entitymanager</artifactId>
85
- <version>3.6.7.Final</version>
85
+ <version>4.0.1.Final</version>
86
86
  </dependency>
87
87
  <dependency>
88
88
  <groupId>org.hibernate</groupId>
89
89
  <artifactId>hibernate-c3p0</artifactId>
90
- <version>3.6.7.Final</version>
90
+ <version>4.0.1.Final</version>
91
91
  </dependency>
92
92
  <dependency>
93
93
  <groupId>org.hibernate</groupId>
@@ -121,7 +121,7 @@
121
121
  <dependency>
122
122
  <groupId>org.mockito</groupId>
123
123
  <artifactId>mockito-all</artifactId>
124
- <version>1.8.5</version>
124
+ <version>1.9.0</version>
125
125
  <scope>test</scope>
126
126
  </dependency>
127
127