buildr 1.4.7-x86-mswin32 → 1.4.8-x86-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +41 -0
- data/Rakefile +0 -6
- data/addon/buildr/bnd.rb +13 -3
- data/addon/buildr/checkstyle.rb +1 -1
- data/addon/buildr/git_auto_version.rb +33 -0
- data/addon/buildr/{gwt.rake → gwt.rb} +0 -0
- data/addon/buildr/jacoco.rb +194 -0
- data/buildr.buildfile +1 -1
- data/buildr.gemspec +23 -16
- data/doc/_layouts/default.html +0 -2
- data/doc/contributing.textile +47 -0
- data/doc/download.textile +24 -0
- data/doc/index.textile +43 -23
- data/doc/languages.textile +65 -6
- data/doc/more_stuff.textile +12 -0
- data/doc/packaging.textile +2 -0
- data/doc/settings_profiles.textile +1 -1
- data/lib/buildr.rb +0 -4
- data/lib/buildr/core/application.rb +41 -8
- data/lib/buildr/core/build.rb +102 -1
- data/lib/buildr/core/cc.rb +14 -8
- data/lib/buildr/core/generate.rb +148 -7
- data/lib/buildr/core/util.rb +3 -3
- data/lib/buildr/ide/eclipse.rb +114 -0
- data/lib/buildr/ide/idea.rb +95 -1
- data/lib/buildr/java/commands.rb +1 -1
- data/lib/buildr/java/rjb.rb +5 -4
- data/lib/buildr/packaging/artifact.rb +1 -1
- data/lib/buildr/packaging/ziptask.rb +2 -2
- data/lib/buildr/scala.rb +1 -1
- data/lib/buildr/scala/bdd.rb +9 -2
- data/lib/buildr/scala/compiler.rb +94 -4
- data/lib/buildr/scala/doc.rb +17 -5
- data/lib/buildr/scala/tests.rb +15 -4
- data/lib/buildr/version.rb +1 -1
- data/rakelib/all-in-one.rake +50 -47
- data/rakelib/checks.rake +4 -4
- data/rakelib/doc.rake +85 -88
- data/rakelib/metrics.rake +9 -9
- data/rakelib/package.rake +13 -34
- data/rakelib/release.rake +11 -12
- data/rakelib/rspec.rake +71 -76
- data/rakelib/stage.rake +25 -51
- data/spec/addon/bnd_spec.rb +61 -7
- data/spec/core/build_spec.rb +117 -0
- data/spec/core/cc_spec.rb +36 -22
- data/spec/core/common_spec.rb +3 -2
- data/spec/core/compile_spec.rb +3 -3
- data/spec/core/generate_from_eclipse_spec.rb +280 -0
- data/spec/java/bdd_spec.rb +2 -2
- data/spec/java/packaging_spec.rb +2 -1
- data/spec/packaging/archive_spec.rb +25 -2
- data/spec/packaging/artifact_spec.rb +2 -2
- data/spec/sandbox.rb +3 -2
- data/spec/scala/compiler_spec.rb +41 -0
- data/spec/scala/doc_spec.rb +22 -3
- data/spec/scala/scala.rb +2 -2
- data/spec/scala/tests_spec.rb +2 -2
- metadata +223 -194
- data/addon/buildr/jdepend.rb.orig +0 -178
- data/doc/installing.textile.orig +0 -282
- data/doc/more_stuff.textile.orig +0 -1004
- data/lib/buildr/ide/eclipse/java.rb +0 -49
- data/lib/buildr/ide/eclipse/plugin.rb +0 -67
- data/lib/buildr/ide/eclipse/scala.rb +0 -64
@@ -1,49 +0,0 @@
|
|
1
|
-
# Licensed to the Apache Software Foundation (ASF) under one or more
|
2
|
-
# contributor license agreements. See the NOTICE file distributed with this
|
3
|
-
# work for additional information regarding copyright ownership. The ASF
|
4
|
-
# licenses this file to you under the Apache License, Version 2.0 (the
|
5
|
-
# "License"); you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
12
|
-
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
13
|
-
# License for the specific language governing permissions and limitations under
|
14
|
-
# the License.
|
15
|
-
|
16
|
-
module Buildr
|
17
|
-
module Eclipse
|
18
|
-
module Java
|
19
|
-
include Extension
|
20
|
-
|
21
|
-
NATURE = 'org.eclipse.jdt.core.javanature'
|
22
|
-
CONTAINER = 'org.eclipse.jdt.launching.JRE_CONTAINER'
|
23
|
-
BUILDER = 'org.eclipse.jdt.core.javabuilder'
|
24
|
-
|
25
|
-
after_define do |project|
|
26
|
-
eclipse = project.eclipse
|
27
|
-
|
28
|
-
# smart defaults
|
29
|
-
if project.compile.language == :java || project.test.compile.language == :java
|
30
|
-
eclipse.natures = NATURE if eclipse.natures.empty?
|
31
|
-
eclipse.classpath_containers = CONTAINER if eclipse.classpath_containers.empty?
|
32
|
-
eclipse.builders = BUILDER if eclipse.builders.empty?
|
33
|
-
end
|
34
|
-
|
35
|
-
# :java nature explicitly set
|
36
|
-
if eclipse.natures.include? :java
|
37
|
-
eclipse.natures += [NATURE] unless eclipse.natures.include? NATURE
|
38
|
-
eclipse.classpath_containers += [CONTAINER] unless eclipse.classpath_containers.include? CONTAINER
|
39
|
-
eclipse.builders += [BUILDER] unless eclipse.builders.include? BUILDER
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
class Buildr::Project
|
48
|
-
include Buildr::Eclipse::Java
|
49
|
-
end
|
@@ -1,67 +0,0 @@
|
|
1
|
-
# Licensed to the Apache Software Foundation (ASF) under one or more
|
2
|
-
# contributor license agreements. See the NOTICE file distributed with this
|
3
|
-
# work for additional information regarding copyright ownership. The ASF
|
4
|
-
# licenses this file to you under the Apache License, Version 2.0 (the
|
5
|
-
# "License"); you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
12
|
-
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
13
|
-
# License for the specific language governing permissions and limitations under
|
14
|
-
# the License.
|
15
|
-
|
16
|
-
module Buildr
|
17
|
-
module Eclipse
|
18
|
-
module Plugin
|
19
|
-
include Extension
|
20
|
-
|
21
|
-
NATURE = 'org.eclipse.pde.PluginNature'
|
22
|
-
CONTAINER = 'org.eclipse.pde.core.requiredPlugins'
|
23
|
-
BUILDERS = ['org.eclipse.pde.ManifestBuilder', 'org.eclipse.pde.SchemaBuilder']
|
24
|
-
|
25
|
-
after_define do |project|
|
26
|
-
eclipse = project.eclipse
|
27
|
-
|
28
|
-
# smart defaults
|
29
|
-
if eclipse.natures.empty? && (
|
30
|
-
(File.exists? project.path_to("plugin.xml")) ||
|
31
|
-
(File.exists? project.path_to("OSGI-INF")) ||
|
32
|
-
(File.exists?(project.path_to("META-INF/MANIFEST.MF")) && File.read(project.path_to("META-INF/MANIFEST.MF")).match(/^Bundle-SymbolicName:/)))
|
33
|
-
eclipse.natures = [NATURE, Buildr::Eclipse::Java::NATURE]
|
34
|
-
eclipse.classpath_containers = [CONTAINER, Buildr::Eclipse::Java::CONTAINER] if eclipse.classpath_containers.empty?
|
35
|
-
eclipse.builders = BUILDERS + [Buildr::Eclipse::Java::BUILDER] if eclipse.builders.empty?
|
36
|
-
end
|
37
|
-
|
38
|
-
# :plugin nature explicitly set
|
39
|
-
if eclipse.natures.include? :plugin
|
40
|
-
unless eclipse.natures.include? NATURE
|
41
|
-
# plugin nature must be before java nature
|
42
|
-
eclipse.natures += [Buildr::Eclipse::Java::NATURE] unless eclipse.natures.include? Buildr::Eclipse::Java::NATURE
|
43
|
-
index = eclipse.natures.index(Buildr::Eclipse::Java::NATURE) || -1
|
44
|
-
eclipse.natures = eclipse.natures.insert(index, NATURE)
|
45
|
-
end
|
46
|
-
unless eclipse.classpath_containers.include? CONTAINER
|
47
|
-
# plugin container must be before java container
|
48
|
-
index = eclipse.classpath_containers.index(Buildr::Eclipse::Java::CONTAINER) || -1
|
49
|
-
eclipse.classpath_containers = eclipse.classpath_containers.insert(index, CONTAINER)
|
50
|
-
end
|
51
|
-
unless (eclipse.builders.include?(BUILDERS[0]) && eclipse.builders.include?(BUILDERS[1]))
|
52
|
-
# plugin builder must be before java builder
|
53
|
-
index = eclipse.classpath_containers.index(Buildr::Eclipse::Java::BUILDER) || -1
|
54
|
-
eclipse.builders = eclipse.builders.insert(index, BUILDERS[1]) unless eclipse.builders.include? BUILDERS[1]
|
55
|
-
index = eclipse.classpath_containers.index(BUILDERS[1]) || -1
|
56
|
-
eclipse.builders = eclipse.builders.insert(index, BUILDERS[0]) unless eclipse.builders.include? BUILDERS[0]
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
class Buildr::Project
|
66
|
-
include Buildr::Eclipse::Plugin
|
67
|
-
end
|
@@ -1,64 +0,0 @@
|
|
1
|
-
# Licensed to the Apache Software Foundation (ASF) under one or more
|
2
|
-
# contributor license agreements. See the NOTICE file distributed with this
|
3
|
-
# work for additional information regarding copyright ownership. The ASF
|
4
|
-
# licenses this file to you under the Apache License, Version 2.0 (the
|
5
|
-
# "License"); you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
12
|
-
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
13
|
-
# License for the specific language governing permissions and limitations under
|
14
|
-
# the License.
|
15
|
-
|
16
|
-
module Buildr
|
17
|
-
module Eclipse
|
18
|
-
module Scala
|
19
|
-
include Extension
|
20
|
-
|
21
|
-
NATURE = 'ch.epfl.lamp.sdt.core.scalanature'
|
22
|
-
CONTAINER = 'ch.epfl.lamp.sdt.launching.SCALA_CONTAINER'
|
23
|
-
BUILDER = 'ch.epfl.lamp.sdt.core.scalabuilder'
|
24
|
-
|
25
|
-
after_define :eclipse => :eclipse_scala
|
26
|
-
after_define :eclipse_scala do |project|
|
27
|
-
eclipse = project.eclipse
|
28
|
-
# smart defaults
|
29
|
-
if eclipse.natures.empty? && (project.compile.language == :scala || project.test.compile.language == :scala)
|
30
|
-
eclipse.natures = [NATURE, Buildr::Eclipse::Java::NATURE]
|
31
|
-
eclipse.classpath_containers = [CONTAINER, Buildr::Eclipse::Java::CONTAINER] if eclipse.classpath_containers.empty?
|
32
|
-
eclipse.builders = BUILDER if eclipse.builders.empty?
|
33
|
-
eclipse.exclude_libs += Buildr::Scala::Scalac.dependencies
|
34
|
-
end
|
35
|
-
|
36
|
-
# :scala nature explicitly set
|
37
|
-
if eclipse.natures.include? :scala
|
38
|
-
unless eclipse.natures.include? NATURE
|
39
|
-
# scala nature must be before java nature
|
40
|
-
eclipse.natures += [Buildr::Eclipse::Java::NATURE] unless eclipse.natures.include? Buildr::Eclipse::Java::NATURE
|
41
|
-
index = eclipse.natures.index(Buildr::Eclipse::Java::NATURE) || -1
|
42
|
-
eclipse.natures = eclipse.natures.insert(index, NATURE)
|
43
|
-
end
|
44
|
-
unless eclipse.classpath_containers.include? CONTAINER
|
45
|
-
# scala container must be before java container
|
46
|
-
index = eclipse.classpath_containers.index(Buildr::Eclipse::Java::CONTAINER) || -1
|
47
|
-
eclipse.classpath_containers = eclipse.classpath_containers.insert(index, CONTAINER)
|
48
|
-
end
|
49
|
-
unless eclipse.builders.include? BUILDER
|
50
|
-
# scala builder overrides java builder
|
51
|
-
eclipse.builders -= [Buildr::Eclipse::Java::BUILDER]
|
52
|
-
eclipse.builders += [BUILDER]
|
53
|
-
end
|
54
|
-
eclipse.exclude_libs += Buildr::Scala::Scalac.dependencies
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
|
-
class Buildr::Project
|
63
|
-
include Buildr::Eclipse::Scala
|
64
|
-
end
|