Sha256: afd2c436074e4cbff4314ccb66bdc68722d832a5661cba387f7c4ae196b16841

Contents?: true

Size: 1.19 KB

Versions: 9

Compression:

Stored size: 1.19 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.

module Buildr #:nodoc:
  module PackageAsTestJar
    def package_as_test_jar_spec(spec) #:nodoc:
      spec.merge(:type => :jar, :classifier => 'test-jar')
    end

    def package_as_test_jar(file_name) #:nodoc:
      ZipTask.define_task(file_name).tap do |zip|
        zip.include :from => [test.compile.target, test.resources.target].compact
      end
    end
  end
end

class Buildr::Project
  include Buildr::PackageAsTestJar
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
buildr-1.4.14-java lib/buildr/packaging/test_jar.rb
buildr-1.4.14-x86-mswin32 lib/buildr/packaging/test_jar.rb
buildr-1.4.14 lib/buildr/packaging/test_jar.rb
buildr-1.4.13 lib/buildr/packaging/test_jar.rb
buildr-1.4.13-x86-mswin32 lib/buildr/packaging/test_jar.rb
buildr-1.4.13-java lib/buildr/packaging/test_jar.rb
buildr-1.4.12 lib/buildr/packaging/test_jar.rb
buildr-1.4.12-x86-mswin32 lib/buildr/packaging/test_jar.rb
buildr-1.4.12-java lib/buildr/packaging/test_jar.rb