buildr 1.4.20-x86-mswin32 → 1.4.21-x86-mswin32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +6 -14
- data/CHANGELOG +31 -0
- data/Rakefile +5 -3
- data/addon/buildr/checkstyle.rb +41 -19
- data/addon/buildr/gwt.rb +48 -20
- data/addon/buildr/jacoco.rb +2 -4
- data/addon/buildr/pmd.rb +33 -18
- data/buildr.gemspec +8 -6
- data/doc/download.textile +18 -6
- data/doc/index.textile +29 -25
- data/lib/buildr/ide/idea.rb +172 -135
- data/lib/buildr/packaging/archive.rb +15 -1
- data/lib/buildr/packaging/tar.rb +1 -1
- data/lib/buildr/packaging/ziptask.rb +2 -1
- data/lib/buildr/version.rb +1 -1
- data/rakelib/stage.rake +1 -1
- data/spec/packaging/archive_spec.rb +34 -0
- metadata +41 -46
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
Mjc0N2FjMmVlYzk5MmU5ZjY2MWQ3YzdiNTliZThlZTkxOTRlZDgxOGE0Nzg3
|
10
|
-
M2ZjOTc5MGZhMWI1MDVlNmVjOWMxMDdlNjIzZWI3NDkzZTM0Mjc0OWVlY2Ji
|
11
|
-
Njk3YjU0MjBkN2ZhNjkyNzM0MWFmZjc0NWY1Yjc4YzdmN2M1ZTM=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
OTI3NTAwMGJjYjYzMTNmZGQ2Yjc0NjNiYjE1Y2FjNTg5MzM5ZGQ2NzM2Njcx
|
14
|
-
ZTRkZGE1N2UwMTQzNDJiNTg3ZDZjM2E1OTNmOWUyNjg4MDU2MGQ5NjA5OTI3
|
15
|
-
OGJjZDExZDk1MGQxMDU4Y2EwMzNjMmFhMzllOGNmNzk0ZDc5Y2M=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 43302afca0a4eeb14c74461d1c48c8cf89c8a0e1
|
4
|
+
data.tar.gz: 9dcddc809f5d5e5b5215771b4163e9125cb3fbf1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4a03bb12a65af68b84e635bf1ee8b02d1ebc4349e1cb6b8a3ef881a65250915e339b59699ea4aa69997cfd441466a89139b428483974c4ccfea87f887c14ddd4
|
7
|
+
data.tar.gz: 09fadd2a1174f1bda5a9d76cb42758af59a5106a4bd8ad507869b7d0402a105068ccfc1024adcf5b3ac60483e5f6d391387b87af01aab473f2610584e2607b55
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,34 @@
|
|
1
|
+
1.4.21 (2014-11-28)
|
2
|
+
* Change: Upgrade atoulme-Antwrap to 0.7.5 to remove deprecation warnings in
|
3
|
+
modern JRuby. Suggested by Pepijn Van Eeckhoudt.
|
4
|
+
* Change: Update the gwt addon to add the validation dependencies required for GWT
|
5
|
+
compiles without requiring that the user specify the dependency.
|
6
|
+
* Change: Update ipr.add_gwt_configuration method to support GWT 2.7 configuration
|
7
|
+
parameters and IDEA 14 parameters.
|
8
|
+
* Change: Upgrade jacoco to 0.7.2. Submitted by neher.
|
9
|
+
* Change: Update checkstyle addon to use Checkstyle 6.0.
|
10
|
+
* Added: Updated the gwt addon to support the upcoming GWT 2.7.x release.
|
11
|
+
* Change: Enhance ipr.add_glassfish_configuration to support the ability to
|
12
|
+
define the version of GlassFish in uses. Change the default to 4.1.0
|
13
|
+
as that is the latest supported variant.
|
14
|
+
* Fixed: Change the name of the GlassFish install in ipr.add_glassfish_configuration
|
15
|
+
to use the same convention that IDEA uses by default. i.e. Name the
|
16
|
+
installation "GlassFish 4.1.0" rather than "Glassfish 4.1.0".
|
17
|
+
* Change: Change the default version of the jdk in IDEA project files to 1.7.
|
18
|
+
* Change: Change the default version of the IDEA project files created to the
|
19
|
+
current release version 13. To revert to the older versions specify
|
20
|
+
ipr.version = '12' in your buildfile.
|
21
|
+
* Added: Enhance the IdeaFile class to easily support mixing in of custom
|
22
|
+
components from either the filesystem or from an artifact.
|
23
|
+
* Change: Update rjb to version 1.5.1.
|
24
|
+
* Added: Update checkstyle addon to support downloading checkstyle checks
|
25
|
+
as an artifact.
|
26
|
+
* Added: Update checkstyle addon to supply checkstyle.config.dir property.
|
27
|
+
* Added: Update pmd addon to support downloading rule files as an artifact.
|
28
|
+
* Change: Update pmd addon to use pmd version 5.1.3.
|
29
|
+
* Fixed: BUILDR-702 - Retain Unix permission flags when merging
|
30
|
+
zip files into another zip or tar archive. Submitted by Pepijn Van Eeckhoudt.
|
31
|
+
|
1
32
|
1.4.20 (2014-08-23)
|
2
33
|
* Fixed : BUILDR-688 - Disregard package-info.java files when determining if
|
3
34
|
the Javac compiler should be run or not. Submitted by Pepijn Van
|
data/Rakefile
CHANGED
@@ -31,9 +31,11 @@ end
|
|
31
31
|
# Load the Gem specification for the current platform (Ruby or JRuby).
|
32
32
|
def spec(platform = RUBY_PLATFORM[/java/] || 'ruby')
|
33
33
|
@specs ||= ['ruby', 'java', 'x86-mswin32'].inject({}) { |hash, spec_platform|
|
34
|
-
|
35
|
-
|
36
|
-
|
34
|
+
ENV['BUILDR_PLATFORM'] = spec_platform
|
35
|
+
hash.update(spec_platform=> Gem::Specification.load('buildr.gemspec'))
|
36
|
+
Gem::Specification._clear_load_cache
|
37
|
+
ENV['BUILDR_PLATFORM'] = nil
|
38
|
+
hash
|
37
39
|
}
|
38
40
|
@specs[platform]
|
39
41
|
end
|
data/addon/buildr/checkstyle.rb
CHANGED
@@ -23,12 +23,11 @@ module Buildr
|
|
23
23
|
# The specs for requirements
|
24
24
|
def dependencies
|
25
25
|
[
|
26
|
-
'com.puppycrawl.tools:checkstyle:jar:
|
27
|
-
'commons-cli:commons-cli:jar:1.2',
|
26
|
+
'com.puppycrawl.tools:checkstyle:jar:6.0',
|
28
27
|
'antlr:antlr:jar:2.7.7',
|
29
|
-
'
|
30
|
-
'com.google.guava:guava
|
31
|
-
'
|
28
|
+
'org.antlr:antlr4-runtime:jar:4.3',
|
29
|
+
'com.google.guava:guava:jar:18.0',
|
30
|
+
'commons-cli:commons-cli:jar:1.2',
|
32
31
|
'commons-beanutils:commons-beanutils-core:jar:1.8.3',
|
33
32
|
'commons-logging:commons-logging:jar:1.1.1'
|
34
33
|
]
|
@@ -40,17 +39,17 @@ module Buildr
|
|
40
39
|
|
41
40
|
args = []
|
42
41
|
if options[:properties_file]
|
43
|
-
args <<
|
42
|
+
args << '-p'
|
44
43
|
args << options[:properties_file]
|
45
44
|
end
|
46
|
-
args <<
|
45
|
+
args << '-c'
|
47
46
|
args << configuration_file
|
48
|
-
args <<
|
47
|
+
args << '-f'
|
49
48
|
args << format
|
50
|
-
args <<
|
49
|
+
args << '-o'
|
51
50
|
args << output_file
|
52
51
|
source_paths.each do |source_path|
|
53
|
-
args <<
|
52
|
+
args << '-r'
|
54
53
|
args << source_path
|
55
54
|
end
|
56
55
|
|
@@ -85,8 +84,30 @@ module Buildr
|
|
85
84
|
|
86
85
|
attr_writer :configuration_file
|
87
86
|
|
87
|
+
def configuration_file=(configuration_file)
|
88
|
+
raise 'Configuration artifact already specified' if @configuration_artifact
|
89
|
+
@configuration_file = configuration_file
|
90
|
+
end
|
91
|
+
|
88
92
|
def configuration_file
|
89
|
-
@configuration_file
|
93
|
+
if @configuration_file
|
94
|
+
return @configuration_file
|
95
|
+
elsif @configuration_artifact.nil?
|
96
|
+
"#{self.config_directory}/checks.xml"
|
97
|
+
else
|
98
|
+
a = Buildr.artifact(@configuration_artifact)
|
99
|
+
a.invoke
|
100
|
+
a.to_s
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
def configuration_artifact=(configuration_artifact)
|
105
|
+
raise 'Configuration file already specified' if @configuration_file
|
106
|
+
@configuration_artifact = configuration_artifact
|
107
|
+
end
|
108
|
+
|
109
|
+
def configuration_artifact
|
110
|
+
@configuration_artifact
|
90
111
|
end
|
91
112
|
|
92
113
|
attr_writer :fail_on_error
|
@@ -142,6 +163,7 @@ module Buildr
|
|
142
163
|
def properties
|
143
164
|
unless @properties
|
144
165
|
@properties = {:basedir => self.project.base_dir}
|
166
|
+
@properties['checkstyle.config.dir'] = self.config_directory if File.directory?(self.config_directory)
|
145
167
|
@properties['checkstyle.suppressions.file'] = self.suppressions_file if File.exist?(self.suppressions_file)
|
146
168
|
@properties['checkstyle.import-control.file'] = self.import_control_file if File.exist?(self.import_control_file)
|
147
169
|
end
|
@@ -175,9 +197,9 @@ module Buildr
|
|
175
197
|
|
176
198
|
after_define do |project|
|
177
199
|
if project.checkstyle.enabled?
|
178
|
-
desc
|
179
|
-
project.task(
|
180
|
-
puts
|
200
|
+
desc 'Generate checkstyle xml report.'
|
201
|
+
project.task('checkstyle:xml') do
|
202
|
+
puts 'Checkstyle: Analyzing source code...'
|
181
203
|
mkdir_p File.dirname(project.checkstyle.xml_output_file)
|
182
204
|
Buildr::Checkstyle.checkstyle(project.checkstyle.configuration_file,
|
183
205
|
project.checkstyle.format,
|
@@ -189,12 +211,12 @@ module Buildr
|
|
189
211
|
end
|
190
212
|
|
191
213
|
if project.checkstyle.html_enabled?
|
192
|
-
xml_task = project.task(
|
193
|
-
desc
|
194
|
-
project.task(
|
195
|
-
puts
|
214
|
+
xml_task = project.task('checkstyle:xml')
|
215
|
+
desc 'Generate checkstyle html report.'
|
216
|
+
project.task('checkstyle:html' => xml_task) do
|
217
|
+
puts 'Checkstyle: Generating report'
|
196
218
|
mkdir_p File.dirname(project.checkstyle.html_output_file)
|
197
|
-
Buildr.ant
|
219
|
+
Buildr.ant 'checkstyle' do |ant|
|
198
220
|
ant.xslt :in => project.checkstyle.xml_output_file,
|
199
221
|
:out => project.checkstyle.html_output_file,
|
200
222
|
:style => project.checkstyle.style_file
|
data/addon/buildr/gwt.rb
CHANGED
@@ -28,46 +28,58 @@ module Buildr
|
|
28
28
|
|
29
29
|
# The specs for requirements
|
30
30
|
def dependencies(version = nil)
|
31
|
-
|
31
|
+
validation_deps =
|
32
|
+
%w(javax.validation:validation-api:jar:1.0.0.GA javax.validation:validation-api:jar:sources:1.0.0.GA)
|
33
|
+
v = version || self.version
|
34
|
+
gwt_dev_jar = "com.google.gwt:gwt-dev:jar:#{v}"
|
35
|
+
if v <= '2.6.1'
|
36
|
+
[gwt_dev_jar] + validation_deps
|
37
|
+
else
|
38
|
+
[
|
39
|
+
gwt_dev_jar,
|
40
|
+
'org.ow2.asm:asm:jar:5.0.3'
|
41
|
+
] + validation_deps
|
42
|
+
end
|
32
43
|
end
|
33
44
|
|
34
45
|
def gwtc_main(modules, source_artifacts, output_dir, unit_cache_dir, options = {})
|
35
|
-
|
36
|
-
|
46
|
+
base_dependencies = self.dependencies(options[:version])
|
47
|
+
cp = Buildr.artifacts(base_dependencies).each(&:invoke).map(&:to_s) + Buildr.artifacts(source_artifacts).each(&:invoke).map(&:to_s)
|
48
|
+
style = options[:style] || 'OBFUSCATED,' # 'PRETTY', 'DETAILED'
|
37
49
|
log_level = options[:log_level] # ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL
|
38
50
|
workers = options[:workers] || 2
|
39
51
|
|
40
52
|
args = []
|
41
53
|
if log_level
|
42
|
-
args <<
|
54
|
+
args << '-logLevel'
|
43
55
|
args << log_level
|
44
56
|
end
|
45
|
-
args <<
|
46
|
-
args <<
|
57
|
+
args << '-strict'
|
58
|
+
args << '-style'
|
47
59
|
args << style
|
48
|
-
args <<
|
60
|
+
args << '-localWorkers'
|
49
61
|
args << workers
|
50
|
-
args <<
|
62
|
+
args << '-war'
|
51
63
|
args << output_dir
|
52
64
|
if options[:compile_report_dir]
|
53
|
-
args <<
|
54
|
-
args <<
|
65
|
+
args << '-compileReport'
|
66
|
+
args << '-extra'
|
55
67
|
args << options[:compile_report_dir]
|
56
68
|
end
|
57
69
|
|
58
70
|
if options[:draft_compile]
|
59
|
-
args <<
|
71
|
+
args << '-draftCompile'
|
60
72
|
end
|
61
73
|
|
62
74
|
if options[:enable_closure_compiler].nil? || options[:enable_closure_compiler]
|
63
|
-
args <<
|
75
|
+
args << '-XenableClosureCompiler'
|
64
76
|
end
|
65
77
|
|
66
78
|
args += modules
|
67
79
|
|
68
80
|
properties = options[:properties] ? options[:properties].dup : {}
|
69
|
-
properties[
|
70
|
-
properties[
|
81
|
+
properties['gwt.persistentunitcache'] = 'true'
|
82
|
+
properties['gwt.persistentunitcachedir'] = unit_cache_dir
|
71
83
|
|
72
84
|
Java::Commands.java 'com.google.gwt.dev.Compiler', *(args + [{:classpath => cp, :properties => properties, :java_args => options[:java_args], :pathing_jar => false}])
|
73
85
|
end
|
@@ -81,10 +93,10 @@ module Buildr
|
|
81
93
|
cp = Buildr.artifacts(self.superdev_dependencies(options[:version])).each(&:invoke).map(&:to_s) + Buildr.artifacts(source_artifacts).each(&:invoke).map(&:to_s)
|
82
94
|
|
83
95
|
args = []
|
84
|
-
args <<
|
85
|
-
args <<
|
96
|
+
args << '-port' << (options[:port] || 5050)
|
97
|
+
args << '-workDir' << work_dir
|
86
98
|
(options[:src] || []).each do |src|
|
87
|
-
args <<
|
99
|
+
args << '-src' << src
|
88
100
|
end
|
89
101
|
args << module_name
|
90
102
|
|
@@ -111,12 +123,28 @@ module Buildr
|
|
111
123
|
|
112
124
|
unit_cache_dir = project._(:target, :gwt, :unit_cache_dir, output_key)
|
113
125
|
|
126
|
+
version = gwt_detect_version(dependencies) || Buildr::GWT.version
|
127
|
+
|
128
|
+
if project.iml?
|
129
|
+
|
130
|
+
existing_deps = project.compile.dependencies.collect do |d|
|
131
|
+
a = artifact(d)
|
132
|
+
a.invoke if a.respond_to?(:invoke)
|
133
|
+
a.to_s
|
134
|
+
end
|
135
|
+
Buildr::GWT.dependencies(version).each do |d|
|
136
|
+
a = artifact(d)
|
137
|
+
a.invoke if a.respond_to?(:invoke)
|
138
|
+
project.iml.main_dependencies << a.to_s unless existing_deps.include?(a.to_s)
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
114
142
|
task = project.file(output_dir) do
|
115
143
|
Buildr::GWT.gwtc_main(module_names,
|
116
144
|
(dependencies + artifacts).flatten.compact,
|
117
145
|
output_dir,
|
118
146
|
unit_cache_dir,
|
119
|
-
{:version =>
|
147
|
+
{:version => version}.merge(options))
|
120
148
|
end
|
121
149
|
task.enhance(dependencies)
|
122
150
|
task.enhance([project.compile])
|
@@ -137,8 +165,8 @@ module Buildr
|
|
137
165
|
end
|
138
166
|
end
|
139
167
|
|
140
|
-
desc
|
141
|
-
project.task(
|
168
|
+
desc 'Run Superdev mode'
|
169
|
+
project.task('superdev') do
|
142
170
|
work_dir = project._(:target, :gwt, :superdev)
|
143
171
|
mkdir_p work_dir
|
144
172
|
Buildr::GWT.gwt_superdev(module_name,
|
data/addon/buildr/jacoco.rb
CHANGED
@@ -18,7 +18,7 @@ module Buildr
|
|
18
18
|
# WARNING: Experimental and may change radically.
|
19
19
|
module JaCoCo
|
20
20
|
class << self
|
21
|
-
VERSION = '0.
|
21
|
+
VERSION = '0.7.2.201409121644'
|
22
22
|
|
23
23
|
def version
|
24
24
|
@version || Buildr.settings.build['jacoco'] || VERSION
|
@@ -37,9 +37,7 @@ module Buildr
|
|
37
37
|
"org.jacoco:org.jacoco.report:jar:#{version}",
|
38
38
|
"org.jacoco:org.jacoco.core:jar:#{version}",
|
39
39
|
"org.jacoco:org.jacoco.ant:jar:#{version}",
|
40
|
-
'asm:asm:jar:
|
41
|
-
'asm:asm-commons:jar:3.3.1',
|
42
|
-
'asm:asm-tree:jar:3.3.1'
|
40
|
+
'org.ow2.asm:asm-debug-all:jar:5.0.1'
|
43
41
|
]
|
44
42
|
end
|
45
43
|
end
|
data/addon/buildr/pmd.rb
CHANGED
@@ -17,7 +17,7 @@ module Buildr
|
|
17
17
|
# Provides the <code>pmd:rule:xml</code>, <code>pmd:rule:html</code>, <code>pmd:cpd:xml</code>
|
18
18
|
# and <code>pmd:cpd:html</code> tasks.
|
19
19
|
#
|
20
|
-
# Require explicitly using <code>require
|
20
|
+
# Require explicitly using <code>require 'buildr/pmd'</code>.
|
21
21
|
module Pmd
|
22
22
|
|
23
23
|
class << self
|
@@ -25,7 +25,7 @@ module Buildr
|
|
25
25
|
# The specs for requirements
|
26
26
|
def dependencies
|
27
27
|
[
|
28
|
-
'net.sourceforge.pmd:pmd:jar:5.1.
|
28
|
+
'net.sourceforge.pmd:pmd:jar:5.1.3',
|
29
29
|
'jaxen:jaxen:jar:1.1.1',
|
30
30
|
'commons-io:commons-io:jar:2.2',
|
31
31
|
'com.beust:jcommander:jar:1.27',
|
@@ -38,12 +38,22 @@ module Buildr
|
|
38
38
|
cp = Buildr.artifacts(dependencies).each(&:invoke).map(&:to_s)
|
39
39
|
(options[:rule_set_paths] || []).each {|p| cp << p}
|
40
40
|
|
41
|
-
|
41
|
+
rule_sets = rule_set_files.dup
|
42
|
+
|
43
|
+
Buildr.artifacts(options[:rule_set_artifacts] || []).each do |artifact|
|
44
|
+
a = artifact.to_s
|
45
|
+
dirname = File.dirname(a)
|
46
|
+
rule_sets << a[dirname.length + 1, a.length]
|
47
|
+
cp << File.dirname(a)
|
48
|
+
artifact.invoke
|
49
|
+
end
|
50
|
+
|
51
|
+
puts 'PMD: Analyzing source code...'
|
42
52
|
mkdir_p File.dirname(output_file_prefix)
|
43
53
|
|
44
|
-
Buildr.ant(
|
54
|
+
Buildr.ant('pmd-report') do |ant|
|
45
55
|
ant.taskdef :name=> 'pmd', :classpath => cp.join(';'), :classname => 'net.sourceforge.pmd.ant.PMDTask'
|
46
|
-
ant.pmd :shortFilenames => true, :rulesetfiles =>
|
56
|
+
ant.pmd :shortFilenames => true, :rulesetfiles => rule_sets.join(',') do
|
47
57
|
ant.formatter :type => format, :toFile => "#{output_file_prefix}.#{format}"
|
48
58
|
source_paths.each do |src|
|
49
59
|
ant.fileset :dir=> src, :includes=>'**/*.java'
|
@@ -59,10 +69,10 @@ module Buildr
|
|
59
69
|
minimum_token_count = options[:minimum_token_count] || 100
|
60
70
|
encoding = options[:encoding] || 'UTF-8'
|
61
71
|
|
62
|
-
puts
|
72
|
+
puts 'PMD-CPD: Analyzing source code...'
|
63
73
|
mkdir_p File.dirname(output_file_prefix)
|
64
74
|
|
65
|
-
Buildr.ant(
|
75
|
+
Buildr.ant('cpd-report') do |ant|
|
66
76
|
ant.taskdef :name=> 'cpd', :classpath => cp.join(';'), :classname => 'net.sourceforge.pmd.cpd.CPDTask'
|
67
77
|
ant.cpd :format => format, :minimumTokenCount => minimum_token_count, :encoding => encoding, :outputFile => "#{output_file_prefix}.#{format}" do
|
68
78
|
source_paths.each do |src|
|
@@ -85,7 +95,12 @@ module Buildr
|
|
85
95
|
attr_writer :rule_set_files
|
86
96
|
|
87
97
|
def rule_set_files
|
88
|
-
@rule_set_files ||= ['rulesets/java/basic.xml', 'rulesets/java/imports.xml', 'rulesets/java/unusedcode.xml', 'rulesets/java/finalizers.xml', 'rulesets/java/braces.xml']
|
98
|
+
@rule_set_files ||= (self.rule_set_artifacts.empty? ? ['rulesets/java/basic.xml', 'rulesets/java/imports.xml', 'rulesets/java/unusedcode.xml', 'rulesets/java/finalizers.xml', 'rulesets/java/braces.xml'] : [])
|
99
|
+
end
|
100
|
+
|
101
|
+
# Support specification of rule sets that are distributed as part of a maven repository
|
102
|
+
def rule_set_artifacts
|
103
|
+
@rule_set_artifacts ||= []
|
89
104
|
end
|
90
105
|
|
91
106
|
attr_writer :rule_set_paths
|
@@ -138,23 +153,23 @@ module Buildr
|
|
138
153
|
|
139
154
|
after_define do |project|
|
140
155
|
if project.pmd.enabled?
|
141
|
-
desc
|
142
|
-
project.task(
|
143
|
-
Buildr::Pmd.pmd(project.pmd.rule_set_files, 'xml', project.pmd.output_file_prefix, project.pmd.flat_source_paths, :rule_set_paths => project.pmd.rule_set_paths)
|
156
|
+
desc 'Generate pmd xml report.'
|
157
|
+
project.task('pmd:rule:xml') do
|
158
|
+
Buildr::Pmd.pmd(project.pmd.rule_set_files, 'xml', project.pmd.output_file_prefix, project.pmd.flat_source_paths, :rule_set_paths => project.pmd.rule_set_paths, :rule_set_artifacts => project.pmd.rule_set_artifacts)
|
144
159
|
end
|
145
160
|
|
146
|
-
desc
|
147
|
-
project.task(
|
148
|
-
Buildr::Pmd.pmd(project.pmd.rule_set_files, 'html', project.pmd.output_file_prefix, project.pmd.flat_source_paths, :rule_set_paths => project.pmd.rule_set_paths)
|
161
|
+
desc 'Generate pmd html report.'
|
162
|
+
project.task('pmd:rule:html') do
|
163
|
+
Buildr::Pmd.pmd(project.pmd.rule_set_files, 'html', project.pmd.output_file_prefix, project.pmd.flat_source_paths, :rule_set_paths => project.pmd.rule_set_paths, :rule_set_artifacts => project.pmd.rule_set_artifacts)
|
149
164
|
end
|
150
165
|
|
151
|
-
desc
|
152
|
-
project.task(
|
166
|
+
desc 'Generate pmd cpd xml report.'
|
167
|
+
project.task('pmd:cpd:xml') do
|
153
168
|
Buildr::Pmd.cpd('xml', project.pmd.cpd_output_file_prefix, project.pmd.flat_source_paths)
|
154
169
|
end
|
155
170
|
|
156
|
-
desc
|
157
|
-
project.task(
|
171
|
+
desc 'Generate pmd cpd text report.'
|
172
|
+
project.task('pmd:cpd:text') do
|
158
173
|
Buildr::Pmd.cpd('text', project.pmd.cpd_output_file_prefix, project.pmd.flat_source_paths)
|
159
174
|
end
|
160
175
|
end
|
data/buildr.gemspec
CHANGED
@@ -18,9 +18,10 @@ unless defined?(Buildr::VERSION)
|
|
18
18
|
$LOADED_FEATURES << 'buildr/version.rb'
|
19
19
|
end
|
20
20
|
|
21
|
-
# Rakefile needs to create spec for
|
22
|
-
#
|
23
|
-
|
21
|
+
# Rakefile needs to create spec for all platforms (ruby and java), using the
|
22
|
+
# BUILDR_PLATFORM environment variable. In all other cases, we figure it out
|
23
|
+
# from RUBY_PLATFORM.
|
24
|
+
$platform = ENV['BUILDR_PLATFORM'] || RUBY_PLATFORM[/java/] || Gem::Platform::CURRENT
|
24
25
|
|
25
26
|
Gem::Specification.new do |spec|
|
26
27
|
spec.name = 'buildr'
|
@@ -29,6 +30,7 @@ Gem::Specification.new do |spec|
|
|
29
30
|
spec.email = 'users@buildr.apache.org'
|
30
31
|
spec.homepage = 'http://buildr.apache.org/'
|
31
32
|
spec.summary = 'Build like you code'
|
33
|
+
spec.licenses = ['Apache-2.0']
|
32
34
|
spec.description = <<-TEXT
|
33
35
|
Apache Buildr is a build system for Java-based applications, including support
|
34
36
|
for Scala, Groovy and a growing number of JVM languages and tools. We wanted
|
@@ -63,8 +65,8 @@ for those one-off tasks, with a language that's a joy to use.
|
|
63
65
|
spec.add_dependency 'rubyzip', '0.9.9'
|
64
66
|
spec.add_dependency 'json_pure', '1.8.0'
|
65
67
|
spec.add_dependency 'hoe', '3.7.1'
|
66
|
-
spec.add_dependency 'rjb', '1.
|
67
|
-
spec.add_dependency 'atoulme-Antwrap', '
|
68
|
+
spec.add_dependency 'rjb', '1.5.1' if ($platform.to_s == 'x86-mswin32' || $platform.to_s == 'ruby')
|
69
|
+
spec.add_dependency 'atoulme-Antwrap', '0.7.5'
|
68
70
|
spec.add_dependency 'diff-lcs', '1.2.4'
|
69
71
|
spec.add_dependency 'rspec-expectations', '2.14.3'
|
70
72
|
spec.add_dependency 'rspec-mocks', '2.14.3'
|
@@ -74,7 +76,7 @@ for those one-off tasks, with a language that's a joy to use.
|
|
74
76
|
spec.add_dependency 'minitar', '0.5.4'
|
75
77
|
spec.add_dependency 'jruby-openssl', '~> 0.8.2' if $platform.to_s == 'java'
|
76
78
|
spec.add_dependency 'bundler'
|
77
|
-
spec.add_dependency 'orderedhash'
|
79
|
+
spec.add_dependency 'orderedhash', '0.0.6'
|
78
80
|
spec.add_dependency 'win32console' '1.3.2' if $platform.to_s == 'x86-mswin32'
|
79
81
|
|
80
82
|
# Unable to get this consistently working under jruby on windows
|