You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Gavin Bong (JIRA)" <ji...@apache.org> on 2008/08/13 05:39:44 UTC

[jira] Created: (BUILDR-129) In a buildfile with multiple projects, cannot selectively configure Main-Class for MANIFEST.MF

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.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (BUILDR-129) In a buildfile with multiple projects, cannot selectively configure Main-Class for MANIFEST.MF

Posted by "Victor Hugo Borja (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Victor Hugo Borja resolved BUILDR-129.
--------------------------------------

    Resolution: Fixed

This was caused by a bug, that was not creating a new manifest for each project, thus modifying a manifest on a child project was actually modifying the parent project's manifest . 

Fixed in http://github.com/vic/buildr/commit/f7bc272bf022e367f98a6fcd264950cfd7d70e5e
Specs in http://github.com/vic/buildr/commit/4d07d68e2d29718d40aa44103976c37d46431398

> 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.
-
You can reply to this email to add a comment to the issue online.