Sha256: 5b4a249871cda407de317544847bbbaec4f277d20c344000686b972aa7e3ca33
Contents?: true
Size: 1.42 KB
Versions: 56
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 => 'pkg/gherkin.exe' desc 'Make a .NET .dll' task :dll => 'pkg/gherkin.dll' file 'pkg/gherkin.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 file 'pkg/gherkin.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") 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' 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
56 entries across 56 versions & 1 rubygems