bee_java 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/build/README CHANGED
@@ -20,4 +20,4 @@ or go to URL http://www.apache.org/licenses/LICENSE-2.0).
20
20
 
21
21
  = Copyright
22
22
 
23
- Bee_java version 0.0.4 (C) Michel Casabianca - 2008-2012
23
+ Bee_java version 0.0.5 (C) Michel Casabianca - 2008-2012
data/java.yml CHANGED
@@ -32,9 +32,9 @@
32
32
  jv_test_includes: ["**/*Test.java"]
33
33
  # glob for unit tests to exclude
34
34
  jv_test_excludes: []
35
- # resources to include in classpath as sets of files (see copy task)
35
+ # directory where are resources to include in classpath
36
36
  jv_res: []
37
- # resources to include in test classpath as sets of files (see copy task)
37
+ # directory where are resources to include in test classpath
38
38
  jv_test_res: []
39
39
  # java main class to run
40
40
  jv_main: ~
@@ -78,9 +78,11 @@
78
78
  src: :jv_src
79
79
  dest: :jv_classes
80
80
  classpath: :jv_compile_cp
81
- - copy:
82
- sets: :jv_res
83
- dest: :jv_classes
81
+ - if: jv_res
82
+ then:
83
+ - copy:
84
+ root: :jv_res
85
+ dest: :jv_classes
84
86
 
85
87
  - target: jv_test_compile
86
88
  depends: [jv_classpath, jv_compile]
@@ -90,9 +92,11 @@
90
92
  src: :jv_test_src
91
93
  dest: :jv_test_classes
92
94
  classpath: :jv_test_cp
93
- - copy:
94
- sets: :jv_test_res
95
- dest: :jv_classes
95
+ - if: jv_test_res
96
+ then:
97
+ - copy:
98
+ root: :jv_test_res
99
+ dest: :jv_classes
96
100
 
97
101
  - target: jv_unit_test
98
102
  depends: jv_test_compile
@@ -205,10 +205,11 @@ module Bee
205
205
  raise 'HTTP redirect too deep' if limit == 0
206
206
  directory = File.dirname(file)
207
207
  FileUtils.makedirs(directory) if not File.exists?(directory)
208
- File.open(file,'wb') do |f|
209
- uri = URI.parse(url)
210
- Net::HTTP.start(uri.host, uri.port) do |http|
211
- http.request_get(uri.path) do |response|
208
+ uri = URI.parse(url)
209
+ Net::HTTP.start(uri.host, uri.port) do |http|
210
+ http.request_get(uri.path) do |response|
211
+ raise "Bad status code '#{response.code}'" if !response.is_a?(Net::HTTPSuccess)
212
+ File.open(file,'wb') do |f|
212
213
  response.read_body do |segment|
213
214
  f.write(segment)
214
215
  # hack, else 100% CPU
data/maven2.yml CHANGED
@@ -7,9 +7,6 @@
7
7
  jv_build_dir: "target"
8
8
  jv_src: "src/main/java"
9
9
  jv_test_src: "src/test/java"
10
- jv_res:
11
- root: "src/main/resources"
12
- includes: "**/*"
13
- jv_test_res:
14
- root: "src/test/resources"
15
- includes: "**/*"
10
+ jv_res: "src/main/resources"
11
+ jv_test_res: "src/test/resources"
12
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bee_java
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michel Casabianca
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-03 00:00:00 +02:00
19
- default_executable:
18
+ date: 2012-09-04 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: bee
@@ -26,12 +25,12 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 51
28
+ hash: 59
30
29
  segments:
31
30
  - 0
32
31
  - 11
33
- - 0
34
- version: 0.11.0
32
+ - 4
33
+ version: 0.11.4
35
34
  type: :runtime
36
35
  version_requirements: *id001
37
36
  description:
@@ -46,35 +45,35 @@ extra_rdoc_files:
46
45
  - build/README
47
46
  - LICENSE
48
47
  files:
49
- - lib/bee_task_java.rb
50
48
  - lib/dependency_resolver.rb
49
+ - lib/bee_task_java.rb
50
+ - egg/xmlrpc.yml
51
+ - egg/xmlrpc/build.yml
52
+ - egg/xmlrpc/src/test/handlers.properties
53
+ - egg/xmlrpc/src/test/Client.java
54
+ - egg/xmlrpc/src/test/TestHandler.java
55
+ - egg/xmlrpc/src/test/Server.java
56
+ - egg/xmlrpc/dependencies.yml
57
+ - egg/lib.yml
58
+ - egg/lib/test.erb
51
59
  - egg/lib/build.erb
52
- - egg/lib/dependencies.yml
53
60
  - egg/lib/source.erb
54
- - egg/lib/test.erb
55
- - egg/lib.yml
61
+ - egg/lib/dependencies.yml
62
+ - egg/tiny.yml
63
+ - egg/servlet/tomcat.yml
64
+ - egg/servlet/tomcat-users.xml
56
65
  - egg/servlet/build.yml
57
- - egg/servlet/dependencies.yml
58
66
  - egg/servlet/MANIFEST.MF
59
67
  - egg/servlet/Servlet.java
60
68
  - egg/servlet/ServletTest.java
61
69
  - egg/servlet/tomcat-server.xml
62
- - egg/servlet/tomcat-users.xml
63
- - egg/servlet/tomcat-web.xml
64
- - egg/servlet/tomcat.yml
65
70
  - egg/servlet/web.xml
71
+ - egg/servlet/dependencies.yml
72
+ - egg/servlet/tomcat-web.xml
66
73
  - egg/servlet.yml
67
74
  - egg/tiny/build.erb
68
- - egg/tiny/dependencies.yml
69
75
  - egg/tiny/source.erb
70
- - egg/tiny.yml
71
- - egg/xmlrpc/build.yml
72
- - egg/xmlrpc/dependencies.yml
73
- - egg/xmlrpc/src/test/Client.java
74
- - egg/xmlrpc/src/test/handlers.properties
75
- - egg/xmlrpc/src/test/Server.java
76
- - egg/xmlrpc/src/test/TestHandler.java
77
- - egg/xmlrpc.yml
76
+ - egg/tiny/dependencies.yml
78
77
  - java.yml
79
78
  - maven2.yml
80
79
  - build/README
@@ -83,7 +82,6 @@ files:
83
82
  - bin/bee2maven
84
83
  - bin/maven2bee
85
84
  - bin/gendeps
86
- has_rdoc: true
87
85
  homepage: http://bee.rubyforge.org
88
86
  licenses: []
89
87
 
@@ -113,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
111
  requirements: []
114
112
 
115
113
  rubyforge_project: none
116
- rubygems_version: 1.4.2
114
+ rubygems_version: 1.8.11
117
115
  signing_key:
118
116
  specification_version: 3
119
117
  summary: BeeJava is a package to build and generate Java project using Bee.