Sha256: 8e7ce538ce7db2e1f30990bc9d6799e46f1a619a4a70790107a6b27749f53531

Contents?: true

Size: 1.42 KB

Versions: 50

Compression:

Stored size: 1.42 KB

Contents

# To test out the pure Java main program on .NET, execute:
#
#   rake ikvm
#
# Just print dots:
#
#   [mono] pkg/gherkin.exe features
#
# Pretty print all to STDOUT:
#
#   [mono] pkg/gherkin.exe features pretty
#
# To test out the pure C# main program on .NET, execute:
#
#   rake ikvm (you need this to generate all the .dll files needed for the next step)
#
# Then build ikvm/Gherkin.sln. Then:
#
#   [mono] mono ikvm/Gherkin/bin/Debug/Gherkin.exe features/steps_parser.feature
#
namespace :ikvm do
  desc 'Make a .NET .exe'
  task :exe => 'lib/gherkin.jar' do
    mkdir_p 'release' unless File.directory?('release')
    sh("mono /usr/local/ikvm/bin/ikvmc.exe -target:exe lib/gherkin.jar -out:release/gherkin-#{GHERKIN_VERSION}.exe")
  end

  desc 'Make a .NET .dll'
  task :dll => 'lib/gherkin.jar' do
    mkdir_p 'release' unless File.directory?('release')
    sh("mono /usr/local/ikvm/bin/ikvmc.exe -target:library lib/gherkin.jar -out:release/gherkin-#{GHERKIN_VERSION}.dll")
    cp "release/gherkin-#{GHERKIN_VERSION}.dll", 'lib/gherkin.dll'
  end

  desc 'Copy the IKVM .dll files over to the pkg dir'
  task :copy_ikvm_dlls do
    Dir['/usr/local/ikvm/bin/{IKVM.OpenJDK.Core,IKVM.OpenJDK.Text,IKVM.OpenJDK.Security,IKVM.Runtime}.dll'].each do |dll|
      cp dll, 'release'
      cp dll, 'lib'
    end
  end
end

task :ikvm => ['ikvm:copy_ikvm_dlls', 'ikvm:exe', 'ikvm:dll'] do
  sh "mono release/gherkin-#{GHERKIN_VERSION}.exe features"
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
gherkin-2.1.5 tasks/ikvm.rake
gherkin-2.1.5-i386-mswin32 tasks/ikvm.rake
gherkin-2.1.5-i386-mingw32 tasks/ikvm.rake
gherkin-2.1.5-universal-dotnet tasks/ikvm.rake
gherkin-2.1.5-java tasks/ikvm.rake
gherkin-2.1.4 tasks/ikvm.rake
gherkin-2.1.4-i386-mswin32 tasks/ikvm.rake
gherkin-2.1.4-i386-mingw32 tasks/ikvm.rake
gherkin-2.1.4-universal-dotnet tasks/ikvm.rake
gherkin-2.1.4-java tasks/ikvm.rake
gherkin-2.1.3 tasks/ikvm.rake
gherkin-2.1.3-i386-mswin32 tasks/ikvm.rake
gherkin-2.1.3-i386-mingw32 tasks/ikvm.rake
gherkin-2.1.3-universal-dotnet tasks/ikvm.rake
gherkin-2.1.3-java tasks/ikvm.rake
gherkin-2.1.2 tasks/ikvm.rake
gherkin-2.1.2-i386-mswin32 tasks/ikvm.rake
gherkin-2.1.2-i386-mingw32 tasks/ikvm.rake
gherkin-2.1.2-universal-dotnet tasks/ikvm.rake
gherkin-2.1.2-java tasks/ikvm.rake