Author: vanto
Date: Fri Jan 14 15:05:54 2011
New Revision: 1059035

URL: http://svn.apache.org/viewvc?rev=1059035&view=rev
Log:
make nexus and buildr release happy.

Modified:
    ode/branches/ode-1.3.5.x/Rakefile

Modified: ode/branches/ode-1.3.5.x/Rakefile
URL: 
http://svn.apache.org/viewvc/ode/branches/ode-1.3.5.x/Rakefile?rev=1059035&r1=1059034&r2=1059035&view=diff
==============================================================================
--- ode/branches/ode-1.3.5.x/Rakefile (original)
+++ ode/branches/ode-1.3.5.x/Rakefile Fri Jan 14 15:05:54 2011
@@ -474,6 +474,14 @@ define "ode" do
         bnd['-exportcontents'] = ""
         bnd['Include-Resource'] = _('src/main/resources')
       end
+      
+      # This project does not contain java classes, hence there are no 
javadocs. 
+      # But since Nexus will complain about a missing javadoc artifact, we 
make sure that an empty one is created.
+      package(:javadoc).enhance { mkdir_p _("target/doc") }
+      
+      # we package sources and javadocs separately to give them a custom id
+      package(:sources, :id => "helloworld-bundle")
+      package(:javadoc, :id => "helloworld-bundle")
     end
     
     define "ping-pong-osgi" do
@@ -488,6 +496,10 @@ define "ode" do
         bnd['Export-Package'] = "org.apache.ode.ping"
         bnd['Include-Resource'] = _('src/main/resources')
       end
+      
+      # we package sources and javadocs separately to give them a custom id
+      package(:sources, :id => "ping-pong-bundle")
+      package(:javadoc, :id => "ping-pong-bundle")
     end
   end
 
@@ -596,8 +608,9 @@ define "ode" do
      package(:jar).with :manifest=>_("src/main/resources/META-INF/MANIFEST.MF")
   end
 
-  package_with_sources
-  package_with_javadoc unless ENV["JAVADOC"] =~ /^(no|off|false|skip)$/i
+  # sources and javadocs of jbi-karaf-examples are packaged separately.
+  package_with_sources :except => ["jbi-karaf-examples:helloworld2-osgi", 
"jbi-karaf-examples:ping-pong-osgi"]
+  package_with_javadoc :except => ["jbi-karaf-examples:helloworld2-osgi", 
"jbi-karaf-examples:ping-pong-osgi"] unless ENV["JAVADOC"] =~ 
/^(no|off|false|skip)$/i
 
   # sign artifacts
   gpg_sign_before_upload


Reply via email to