You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2013/10/26 03:45:46 UTC

svn commit: r1535908 - in /buildr/trunk: CHANGELOG lib/buildr/packaging/test_jar.rb spec/java/packaging_spec.rb

Author: donaldp
Date: Sat Oct 26 01:45:46 2013
New Revision: 1535908

URL: http://svn.apache.org/r1535908
Log:
Updated the 'test_jar' package type to have a classifier of 'tests' and thus match maven conventions.

Modified:
    buildr/trunk/CHANGELOG
    buildr/trunk/lib/buildr/packaging/test_jar.rb
    buildr/trunk/spec/java/packaging_spec.rb

Modified: buildr/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=1535908&r1=1535907&r2=1535908&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Sat Oct 26 01:45:46 2013
@@ -1,4 +1,6 @@
 1.4.15 (Pending)
+* Change: Updated the 'test_jar' package type to have a
+          classifier of 'tests' and thus match maven conventions.
 * Fixed:  BUILDR-689 - Ensure that war file includes generated
           assets rather than the "source" assets that may have
           been filtered.

Modified: buildr/trunk/lib/buildr/packaging/test_jar.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/packaging/test_jar.rb?rev=1535908&r1=1535907&r2=1535908&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/packaging/test_jar.rb (original)
+++ buildr/trunk/lib/buildr/packaging/test_jar.rb Sat Oct 26 01:45:46 2013
@@ -16,7 +16,7 @@
 module Buildr #:nodoc:
   module PackageAsTestJar
     def package_as_test_jar_spec(spec) #:nodoc:
-      spec.merge(:type => :jar, :classifier => 'test-jar')
+      spec.merge(:type => :jar, :classifier => 'tests')
     end
 
     def package_as_test_jar(file_name) #:nodoc:

Modified: buildr/trunk/spec/java/packaging_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/java/packaging_spec.rb?rev=1535908&r1=1535907&r2=1535908&view=diff
==============================================================================
--- buildr/trunk/spec/java/packaging_spec.rb (original)
+++ buildr/trunk/spec/java/packaging_spec.rb Sat Oct 26 01:45:46 2013
@@ -1244,10 +1244,10 @@ describe Packaging, 'test_jar' do
   it_should_behave_like 'packaging'
   before { @packaging, @package_type = :test_jar, :jar }
 
-  it 'should create package of type :jar and classifier \'test-jar\'' do
+  it 'should create package of type :jar and classifier \'tests\'' do
     define 'foo', :version=>'1.0' do
       package(:test_jar).type.should eql(:jar)
-      package(:test_jar).classifier.should eql('test-jar')
+      package(:test_jar).classifier.should eql('tests')
       package(:test_jar).name.should match(/foo-1.0-test-jar.jar$/)
     end
   end