buildr-ajc 1.0.1 → 1.0.2
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.
- data/README.rdoc +28 -0
- data/Rakefile +4 -4
- data/lib/ajc.rb +1 -1
- metadata +5 -5
- data/README +0 -18
data/README.rdoc
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
== Install
|
2
|
+
gem install buildr-ajc
|
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 project 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
|
19
|
+
* :aspectpath - array of matching lib names (e.g. 'aspects' matches 'other-aspects-1.2.jar')
|
20
|
+
* :verbose - true if any value
|
21
|
+
* :debug - true if any value
|
22
|
+
* :source - fix to 1.6
|
23
|
+
* :deprecation - true if any value
|
24
|
+
* :warnings - true if any value
|
25
|
+
* :debug - true if any value
|
26
|
+
|
27
|
+
== Example
|
28
|
+
See +apspect+ folder in project.
|
data/Rakefile
CHANGED
@@ -8,15 +8,15 @@ 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.
|
11
|
+
s.version = '1.0.2'
|
12
12
|
s.has_rdoc = true
|
13
|
-
s.extra_rdoc_files = ['README', 'LICENSE']
|
13
|
+
s.extra_rdoc_files = ['README.rdoc', 'LICENSE']
|
14
14
|
s.summary = 'java ajc compiler for buildr'
|
15
15
|
s.description = s.summary
|
16
16
|
s.author = 'Nico Mainka'
|
17
17
|
s.email = 'nico.maninka@gmail.com'
|
18
18
|
# s.executables = ['your_executable_here']
|
19
|
-
s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
|
19
|
+
s.files = %w(LICENSE README.rdoc Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
|
20
20
|
s.require_path = "lib"
|
21
21
|
s.bindir = "bin"
|
22
22
|
end
|
@@ -30,7 +30,7 @@ end
|
|
30
30
|
Rake::RDocTask.new do |rdoc|
|
31
31
|
files =['README', 'LICENSE', 'lib/**/*.rb']
|
32
32
|
rdoc.rdoc_files.add(files)
|
33
|
-
rdoc.main = "README" # page to start on
|
33
|
+
rdoc.main = "README.rdoc" # page to start on
|
34
34
|
rdoc.title = "buildr-ajc Docs"
|
35
35
|
rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
|
36
36
|
rdoc.options << '--line-numbers'
|
data/lib/ajc.rb
CHANGED
@@ -109,8 +109,8 @@ def compile_with_ajc(*opts)
|
|
109
109
|
compile.using :ajc
|
110
110
|
test.compile.using :ajc
|
111
111
|
|
112
|
-
hash_opts = {}
|
113
112
|
hash_opts ||= opts.last if Hash === opts.last
|
113
|
+
puts "++++ #{hash_opts.inspect}"
|
114
114
|
compile.using hash_opts
|
115
115
|
|
116
116
|
hash_opts[:test_apspectpath] = compile.target.to_s
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 2
|
9
|
+
version: 1.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Nico Mainka
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-11-
|
17
|
+
date: 2010-11-14 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
@@ -25,11 +25,11 @@ executables: []
|
|
25
25
|
extensions: []
|
26
26
|
|
27
27
|
extra_rdoc_files:
|
28
|
-
- README
|
28
|
+
- README.rdoc
|
29
29
|
- LICENSE
|
30
30
|
files:
|
31
31
|
- LICENSE
|
32
|
-
- README
|
32
|
+
- README.rdoc
|
33
33
|
- Rakefile
|
34
34
|
- lib/ajc.rb
|
35
35
|
has_rdoc: true
|
data/README
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
== Install
|
2
|
-
gem install buildr-ajc
|
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:
|