Class: Java::Options

Inherits:
Object show all
Defined in:
lib/buildr/java/deprecated.rb

Instance Method Summary collapse

Instance Method Details

#java_argsObject

Deprecated: Use ENV instead.



128
129
130
131
# File 'lib/buildr/java/deprecated.rb', line 128

def java_args
  Buildr.application.deprecated "Use ENV['JAVA_OPTS'] instead"
  (ENV["JAVA_OPTS"] || ENV["JAVA_OPTIONS"]).to_s.split
end

#java_args=(args) ⇒ Object

Deprecated: Use ENV instead.



134
135
136
137
# File 'lib/buildr/java/deprecated.rb', line 134

def java_args=(args)
  Buildr.application.deprecated "Use ENV['JAVA_OPTS'] instead"
  ENV['JAVA_OPTS'] = Array(args).join(' ')
end