swung-weave-buildr 1.0.19 → 1.0.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,7 @@
1
1
  module Buildr
2
2
  module SwungWeave
3
3
  private
4
- VERSION="1.0.19"
5
- ASM_ARTIFACT="asm:asm-all:jar:3.3"
6
- GROUP="org.realityforge.swung-weave"
4
+ VERSION='1.0.20'
5
+ GROUP='org.realityforge.swung-weave'
7
6
  end
8
7
  end
@@ -36,9 +36,9 @@ module Buildr
36
36
 
37
37
  def dependencies
38
38
  [
39
+ # We do not need asm as it is merged into the tool jar
39
40
  self.api_artifact,
40
- "#{GROUP}:swung-weave-tool:jar:#{VERSION}",
41
- ASM_ARTIFACT
41
+ "#{GROUP}:swung-weave-tool:jar:#{VERSION}"
42
42
  ]
43
43
  end
44
44
  end
@@ -46,6 +46,20 @@ module Buildr
46
46
  def swung_weave_enhance
47
47
  SwungWeave.enhance(compile.target.to_s)
48
48
  end
49
+
50
+ def swung_weave(buildr_project = nil)
51
+ if buildr_project.nil? && Buildr.application.current_scope.size > 0
52
+ buildr_project = Buildr.project(Buildr.application.current_scope.join(':'))
53
+ end
54
+
55
+ if buildr_project.iml?
56
+ buildr_project.iml.add_facet('SwungWeave', 'SwungWeave') do |facet|
57
+ facet.configuration
58
+ end
59
+ end
60
+ buildr_project.compile { buildr_project.swung_weave_enhance }
61
+ buildr_project.compile.with Buildr::SwungWeave.dependencies
62
+ end
49
63
  end
50
64
  end
51
65
 
metadata CHANGED
@@ -1,60 +1,60 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: swung-weave-buildr
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.20
4
5
  prerelease:
5
- version: 1.0.19
6
6
  platform: ruby
7
- authors:
8
- - Peter Donald
7
+ authors:
8
+ - Peter Donald
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-06-05 00:00:00 Z
12
+ date: 2014-05-05 00:00:00.000000000 Z
14
13
  dependencies: []
14
+ description: ! 'Buildr extension to process bytecode using swung-weaver. Swung weaver
15
+ is
15
16
 
16
- description: |
17
- Buildr extension to process bytecode using swung-weaver. Swung weaver is
18
17
  bytecode weaving of annotated UI classes to ensure all UI updates occur
18
+
19
19
  in the Event Dispatch Thread
20
20
 
21
- email:
22
- - peter@realityforge.org
21
+ '
22
+ email:
23
+ - peter@realityforge.org
23
24
  executables: []
24
-
25
25
  extensions: []
26
-
27
26
  extra_rdoc_files: []
28
-
29
27
  files: []
30
-
31
28
  homepage: http://github.com/realityforge/swung_weave
32
29
  licenses: []
33
-
34
30
  post_install_message:
35
- rdoc_options:
36
- - --title
37
- - "SwungWeave: Buildr extension"
38
- require_paths:
39
- - lib
40
- required_ruby_version: !ruby/object:Gem::Requirement
31
+ rdoc_options:
32
+ - --title
33
+ - ! 'SwungWeave: Buildr extension'
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
41
37
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: "0"
46
- required_rubygems_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ! '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ segments:
43
+ - 0
44
+ hash: 2863759541983221022
45
+ required_rubygems_version: !ruby/object:Gem::Requirement
47
46
  none: false
48
- requirements:
49
- - - ">="
50
- - !ruby/object:Gem::Version
51
- version: "0"
47
+ requirements:
48
+ - - ! '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ segments:
52
+ - 0
53
+ hash: 2863759541983221022
52
54
  requirements: []
53
-
54
55
  rubyforge_project:
55
- rubygems_version: 1.8.15
56
+ rubygems_version: 1.8.23
56
57
  signing_key:
57
58
  specification_version: 3
58
59
  summary: Buildr extension to run the swung_weave tool
59
60
  test_files: []
60
-