buildr-ajc 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +17 -2
- data/Rakefile +1 -1
- data/lib/ajc.rb +11 -0
- metadata +2 -2
data/README
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
-
==
|
1
|
+
== Install
|
2
|
+
gem install buildr-ajc
|
2
3
|
|
3
|
-
|
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
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
|