Sha256: 8e86891850f90282288f3beb6ee556f0b6c023200366e79de7c5cce4a0bdb55a

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

class Env

  def self.keytool_path
    if is_windows?
      "\"#{ENV["JAVA_HOME"]}/bin/keytool.exe\""
    else
      "keytool"
    end
  end

  def self.jarsigner_path
    if is_windows?
      "\"#{ENV["JAVA_HOME"]}/bin/jarsigner.exe\""
    else
      "jarsigner"
    end
  end

  def self.ant_path
    is_windows? ? "ant.bat" : "ant"
  end

  def self.is_windows?
    (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
calabash-android-0.4.10.pre2 lib/calabash-android/env.rb
calabash-android-0.4.10.pre1 lib/calabash-android/env.rb