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.
Files changed (65) hide show
  1. data/CHANGELOG +41 -0
  2. data/Rakefile +0 -6
  3. data/addon/buildr/bnd.rb +13 -3
  4. data/addon/buildr/checkstyle.rb +1 -1
  5. data/addon/buildr/git_auto_version.rb +33 -0
  6. data/addon/buildr/{gwt.rake → gwt.rb} +0 -0
  7. data/addon/buildr/jacoco.rb +194 -0
  8. data/buildr.buildfile +1 -1
  9. data/buildr.gemspec +23 -16
  10. data/doc/_layouts/default.html +0 -2
  11. data/doc/contributing.textile +47 -0
  12. data/doc/download.textile +24 -0
  13. data/doc/index.textile +43 -23
  14. data/doc/languages.textile +65 -6
  15. data/doc/more_stuff.textile +12 -0
  16. data/doc/packaging.textile +2 -0
  17. data/doc/settings_profiles.textile +1 -1
  18. data/lib/buildr.rb +0 -4
  19. data/lib/buildr/core/application.rb +41 -8
  20. data/lib/buildr/core/build.rb +102 -1
  21. data/lib/buildr/core/cc.rb +14 -8
  22. data/lib/buildr/core/generate.rb +148 -7
  23. data/lib/buildr/core/util.rb +3 -3
  24. data/lib/buildr/ide/eclipse.rb +114 -0
  25. data/lib/buildr/ide/idea.rb +95 -1
  26. data/lib/buildr/java/commands.rb +1 -1
  27. data/lib/buildr/java/rjb.rb +5 -4
  28. data/lib/buildr/packaging/artifact.rb +1 -1
  29. data/lib/buildr/packaging/ziptask.rb +2 -2
  30. data/lib/buildr/scala.rb +1 -1
  31. data/lib/buildr/scala/bdd.rb +9 -2
  32. data/lib/buildr/scala/compiler.rb +94 -4
  33. data/lib/buildr/scala/doc.rb +17 -5
  34. data/lib/buildr/scala/tests.rb +15 -4
  35. data/lib/buildr/version.rb +1 -1
  36. data/rakelib/all-in-one.rake +50 -47
  37. data/rakelib/checks.rake +4 -4
  38. data/rakelib/doc.rake +85 -88
  39. data/rakelib/metrics.rake +9 -9
  40. data/rakelib/package.rake +13 -34
  41. data/rakelib/release.rake +11 -12
  42. data/rakelib/rspec.rake +71 -76
  43. data/rakelib/stage.rake +25 -51
  44. data/spec/addon/bnd_spec.rb +61 -7
  45. data/spec/core/build_spec.rb +117 -0
  46. data/spec/core/cc_spec.rb +36 -22
  47. data/spec/core/common_spec.rb +3 -2
  48. data/spec/core/compile_spec.rb +3 -3
  49. data/spec/core/generate_from_eclipse_spec.rb +280 -0
  50. data/spec/java/bdd_spec.rb +2 -2
  51. data/spec/java/packaging_spec.rb +2 -1
  52. data/spec/packaging/archive_spec.rb +25 -2
  53. data/spec/packaging/artifact_spec.rb +2 -2
  54. data/spec/sandbox.rb +3 -2
  55. data/spec/scala/compiler_spec.rb +41 -0
  56. data/spec/scala/doc_spec.rb +22 -3
  57. data/spec/scala/scala.rb +2 -2
  58. data/spec/scala/tests_spec.rb +2 -2
  59. metadata +223 -194
  60. data/addon/buildr/jdepend.rb.orig +0 -178
  61. data/doc/installing.textile.orig +0 -282
  62. data/doc/more_stuff.textile.orig +0 -1004
  63. data/lib/buildr/ide/eclipse/java.rb +0 -49
  64. data/lib/buildr/ide/eclipse/plugin.rb +0 -67
  65. 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