Class: Ajc
Instance Attribute Summary collapse
-
#cp ⇒ Object
rt must be aspectJ runtime.
-
#inpath ⇒ Object
rt must be aspectJ runtime.
-
#outjar ⇒ Object
rt must be aspectJ runtime.
-
#rt ⇒ Object
rt must be aspectJ runtime.
-
#src ⇒ Object
rt must be aspectJ runtime.
Attributes inherited from JavaTask
Instance Method Summary collapse
- #command ⇒ Object
-
#initialize(path) ⇒ Ajc
constructor
A new instance of Ajc.
Methods inherited from JavaTask
Constructor Details
#initialize(path) ⇒ Ajc
Returns a new instance of Ajc.
4 5 6 7 |
# File 'lib/jake/ajc.rb', line 4 def initialize(path) super(path) @cp = [] end |
Instance Attribute Details
#cp ⇒ Object
rt must be aspectJ runtime
2 3 4 |
# File 'lib/jake/ajc.rb', line 2 def cp @cp end |
#inpath ⇒ Object
rt must be aspectJ runtime
2 3 4 |
# File 'lib/jake/ajc.rb', line 2 def inpath @inpath end |
#outjar ⇒ Object
rt must be aspectJ runtime
2 3 4 |
# File 'lib/jake/ajc.rb', line 2 def outjar @outjar end |
#rt ⇒ Object
rt must be aspectJ runtime
2 3 4 |
# File 'lib/jake/ajc.rb', line 2 def rt @rt end |
#src ⇒ Object
rt must be aspectJ runtime
2 3 4 |
# File 'lib/jake/ajc.rb', line 2 def src @src end |
Instance Method Details
#command ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/jake/ajc.rb', line 9 def command classpath = [] classpath << @rt inpath_arr = [] @src = Dir.glob(@src) @cp.each do |p| puts "Globbing #{p}" classpath << Dir.glob(p) puts "CP = #{classpath}" end @inpath.each do |p| puts "Globbing #{p}" inpath_arr << Dir.glob(p) puts "inpath = #{inpath_arr}" end "ajc -cp " + classpath.join(cp_separator).to_s + " -inpath " + inpath_arr.join(cp_separator).to_s + " -outjar " + @outjar + " -1.5 " + @src.join(' ').to_s end |