buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Bargnesi <abargn...@gmail.com>
Subject jar signing after packaging of jar
Date Tue, 19 Mar 2013 20:37:37 GMT
Hey folks,

I am trying to sign a jar after it is packaged so that the target artifact
is a signed jar.

I created a separate task to do the work:

task :sign_task do
  signing = Buildr.settings.build['signing']
  store, aka, pass = signing.values_at('keystore', 'alias', 'storepass')
  projects.each do |prj|
    prj.packages.select{ |pkg| pkg.to_s.end_with?('.jar')}.each do |pkg|
      ant('signjar') do |signjar|
        signjar.signjar :jar=>pkg, :alias=>aka, :keystore=>store,
                        :storepass=>pass
      end
    end
  end
end

but this isn't hooked into the jar's packaging.  How can this be
accomplished?

Thanks!
Anthony Bargnesi

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message