You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Peter Donald (JIRA)" <ji...@apache.org> on 2011/06/22 12:11:26 UTC
[jira] [Closed] (BUILDR-129) In a buildfile with multiple projects,
cannot selectively configure Main-Class for MANIFEST.MF
[ https://issues.apache.org/jira/browse/BUILDR-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Donald closed BUILDR-129.
-------------------------------
> In a buildfile with multiple projects, cannot selectively configure Main-Class for MANIFEST.MF
> ----------------------------------------------------------------------------------------------
>
> Key: BUILDR-129
> URL: https://issues.apache.org/jira/browse/BUILDR-129
> Project: Buildr
> Issue Type: Bug
> Affects Versions: 1.3.2
> Environment: Ubuntu Dapper
> Linux gavin-ubuntu 2.6.15-51-386 #1 PREEMPT Tue Feb 12 16:52:52 UTC 2008 i686 GNU/Linu
> Ruby 1.8.6
> Antwrap (0.7.0)
> archive-tar-minitar (0.5.2)
> builder (2.1.2)
> buildr (1.3.2)
> highline (1.4.0)
> hoe (1.6.0)
> net-sftp (2.0.1)
> net-ssh (2.0.3)
> rake (0.8.1)
> rdoc (2.0.0)
> rjb (1.1.2)
> rspec (1.1.4)
> rubyforge (1.0.0)
> rubyzip (0.9.1)
> xml-simple (1.0.11)
> Reporter: Gavin Bong
>
> Copied from http://www.nabble.com/Adding-module-specific-Main-Class-td18940801.html
> I have two modules 'client' and 'server' but I only want the Main-Class manifest entry to be added for the server module.
> The following buildfile snippet is not working. I believe I have some scoping issue. Thanks.
> desc "The Simplemina project"
> define "simplemina" do
> # project.version = VERSION_NUMBER
> # project.group = GROUP
> # manifest["Implementation-Vendor"] = COPYRIGHT
> # compile.options.target = 1.5
> desc 'Client code'
> define 'client' do
> project.version = VERSION_NUMBER
> project.group = GROUP
> manifest["Implementation-Vendor"] = COPYRIGHT
> compile.options.target = 1.5
> package:jar
> end
> desc 'Server code'
> define 'server' do
> project.version = VERSION_NUMBER
> project.group = GROUP
> manifest["Implementation-Vendor"] = COPYRIGHT
> compile.options.target = 1.5
> manifest["Main-Class"] = 'org.apache.mina.example.haiku.HaikuValidationServer'
> compile.with MINACORE, MINACODEC, SLF4JAPI
> package:jar
> end
> end
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira