Sha256: 4f33633323eb46d0b4f04ec1da048e6fc2ba72fe82bb80c7f5da45ac328edab8
Contents?: true
Size: 1.63 KB
Versions: 1
Compression:
Stored size: 1.63 KB
Contents
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with this # work for additional information regarding copyright ownership. The ASF # licenses this file to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. require File.join(File.dirname(__FILE__), '../spec_helpers') describe Buildr4OSGi::CompilerSupport::ExternalC do before :all do Buildr::Compiler.compilers.delete Buildr::Compiler::Javac Buildr::Compiler.compilers.delete Buildr4OSGi::CompilerSupport::OSGiC end describe "should compile a Java project just in the same way javac does" do javac_spec = File.read(File.join(File.dirname(__FILE__), "..", "..", "buildr", "spec", "java", "compiler_spec.rb")) javac_spec = javac_spec.match(Regexp.escape("require File.join(File.dirname(__FILE__), '../spec_helpers')\n")).post_match javac_spec.gsub!("javac", "externalc") javac_spec.gsub!("nowarn", "warn:none") eval(javac_spec) end after :all do Buildr::Compiler.compilers << Buildr::Compiler::Javac Buildr::Compiler.compilers.unshift Buildr4OSGi::CompilerSupport::OSGiC end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
buildr4osgi-0.9.3 | spec/compile/external_spec.rb |