buildr-ajc 1.0.0 → 1.0.1

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.
Files changed (4) hide show
  1. data/README +17 -2
  2. data/Rakefile +1 -1
  3. data/lib/ajc.rb +11 -0
  4. metadata +2 -2
data/README CHANGED
@@ -1,3 +1,18 @@
1
- == buildr-ajc
1
+ == Install
2
+ gem install buildr-ajc
2
3
 
3
- You should document your project here.
4
+ == Usage
5
+ * Require +ajc+ in your +buildfile+:
6
+ require 'ajc'
7
+
8
+ * Add initial method to your +buildr+ project definition:
9
+ define 'aspects' do
10
+ compile_with_ajc
11
+ end
12
+
13
+ * Now while compiling the project, the +ajc+ compiler detects aspects in your project sources and weaves matching classes in your projetc sources and test sources
14
+
15
+ * Adding aspects from other libs (libs must be in dependencies of the project) by adding :aspectpath option as array of names that matching the required libs by simple text pattern \*name\* ( e.g. 'name' matches the-name-1.0.jar):
16
+ compile_with_aspectj :aspectpath => ['spring-aspects', 'my-aspects']
17
+
18
+ * Other options:
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ require 'spec/rake/spectask'
8
8
 
9
9
  spec = Gem::Specification.new do |s|
10
10
  s.name = 'buildr-ajc'
11
- s.version = '1.0.0'
11
+ s.version = '1.0.1'
12
12
  s.has_rdoc = true
13
13
  s.extra_rdoc_files = ['README', 'LICENSE']
14
14
  s.summary = 'java ajc compiler for buildr'
data/lib/ajc.rb CHANGED
@@ -94,6 +94,17 @@ end
94
94
 
95
95
  Buildr::Compiler << Buildr::Compiler::Ajc
96
96
 
97
+
98
+ # call this to enable java ajc compiler
99
+ #
100
+ # ==options
101
+ # * :aspectpath - array of matching lib names (e.g. 'aspects' matches 'other-aspects-1.2.jar')
102
+ # * :verbose - true if any value
103
+ # * :debug - true if any value
104
+ # * :source - fix to 1.6
105
+ # * :deprecation - true if any value
106
+ # * :warnings - true if any value
107
+ # * :debug - true if any value
97
108
  def compile_with_ajc(*opts)
98
109
  compile.using :ajc
99
110
  test.compile.using :ajc
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Nico Mainka