You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Victor Hugo Borja (JIRA)" <ji...@apache.org> on 2008/01/22 10:20:34 UTC

[jira] Created: (BUILDR-26) Ear Packaging improvements

Ear Packaging improvements
--------------------------

                 Key: BUILDR-26
                 URL: https://issues.apache.org/jira/browse/BUILDR-26
             Project: Buildr
          Issue Type: Improvement
          Components: Packaging
    Affects Versions: 1.3
            Reporter: Victor Hugo Borja
            Priority: Minor
             Fix For: 1.3


Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-26) Ear Packaging improvements

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

Victor Hugo Borja updated BUILDR-26:
------------------------------------

    Attachment: 0006-Expandable-PackagingTypes-and-EAR-descriptor-fix.patch

Lots of changes (merged with HEAD), see the 0006 patch for details. All HEAD specs passing, although more specs are comming.

- Fixed the EAR descriptor dependency problem. Choosed 2nd suggestion from Assaf. Thanks to Ingo for reporting it.

- Expandable archives (WAR, EAR)

- PackagingTypes inherited in project hierarchies. 

> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>             Fix For: 1.3
>
>         Attachments: 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch, 0002-EAR-packaging-additions.patch, 0003-Made-each-EAR-components-classpath-relative-to-the.patch, 0004-avoid-updating-parent-projects-manifest.patch, 0005-Generate-application.xml-under-the-project-s-target.patch, 0006-Expandable-PackagingTypes-and-EAR-descriptor-fix.patch, buildfile
>
>
> EAR descriptor must be generated under target as anything generated by buildr. 
> update_classpath method was modifying inherited manifest, thus causing EAR packages to contain Class-Path entries themselves, according to the specs ear packages may not have a Class-Path on their manifest. 
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-26) Ear Packaging improvements

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564576#action_12564576 ] 

Assaf Arkin commented on BUILDR-26:
-----------------------------------

>From Ingo Schmidt:

>> I am adding a WAR and an EJB to my EAR like so:
>>  package(:ear).add :war=>project("webapp-war").package(:war)
>>  package(:ear).add :ejb=>project("my-ejb").package(:jar)
>>  I run the build and the result is as expected. Now I comment out
>>  the line add the EJB to my EAR and run buildr again (no clean
>>  task). But my application.xml still has the entry for the EJB.
>>  Why is this so? I have seen this happen in other places in buildr,
>>  too. Too bad, I didn't write those cases down.

Here's a possible solution, need to see if it will work:

Add the buildfile (Rake.application.rakefile) as a prerequisite for the application.xml task, forcing this task to run every time the build file changes.  This will detect changes like removing a component, the downside is that it will re-build the EAR every single time the buildfile changes.

Improve on it by creating the XML in memory, comparing it to the contents of the existing application.xml, and only writing the file if there's a change.  That way, the application.xml task will run every time the buildfile changes, but the EAR task will only run if there's a substantial change to application.xml.


>> Is there any way to add a WAR to my EAR as open directory and not
>>   as *.war file?
>>  I need this because I don't think you can tell IIS to use a *.war file
>>  as document root...
>> Is there any way to change/modify the EAR task to do this for me?
>>  Would be very handy, because the EAR task so nicely builds the
>>  application.xml on the fly.
>>  Currently I need to unzip the WAR and modify application.xml by
>>  hand. It would just be so much nicer to have it all automated.

Ideas?

> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>             Fix For: 1.3
>
>         Attachments: 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch, 0002-EAR-packaging-additions.patch, 0003-Made-each-EAR-components-classpath-relative-to-the.patch, 0004-avoid-updating-parent-projects-manifest.patch, 0005-Generate-application.xml-under-the-project-s-target.patch, buildfile
>
>
> EAR descriptor must be generated under target as anything generated by buildr. 
> update_classpath method was modifying inherited manifest, thus causing EAR packages to contain Class-Path entries themselves, according to the specs ear packages may not have a Class-Path on their manifest. 
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-26) Ear Packaging improvements

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

Victor Hugo Borja updated BUILDR-26:
------------------------------------

    Attachment:     (was: 0005-Generate-application.xml-under-the-project-s-target.patch)

> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>             Fix For: 1.3
>
>         Attachments: buildfile
>
>
> EAR descriptor must be generated under target as anything generated by buildr. 
> update_classpath method was modifying inherited manifest, thus causing EAR packages to contain Class-Path entries themselves, according to the specs ear packages may not have a Class-Path on their manifest. 
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-26) Ear Packaging improvements

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

Victor Hugo Borja updated BUILDR-26:
------------------------------------

    Attachment: 0003-Made-each-EAR-components-classpath-relative-to-the.patch

[PATCH] 0003-Made-each-EAR-components-classpath-relative-to-the.patch
Made each EAR components' classpath relative to the shared libraries location.

According to http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html, the Class-Path entry must be a list of RELATIVE paths (from the Jar referencing other Jars).


> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch, 0002-EAR-packaging-additions.patch, 0003-Made-each-EAR-components-classpath-relative-to-the.patch
>
>
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-26) Ear Packaging improvements

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

Victor Hugo Borja updated BUILDR-26:
------------------------------------

    Attachment: 0005-Generate-application.xml-under-the-project-s-target.patch

> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch, 0002-EAR-packaging-additions.patch, 0003-Made-each-EAR-components-classpath-relative-to-the.patch, 0004-avoid-updating-parent-projects-manifest.patch, 0005-Generate-application.xml-under-the-project-s-target.patch
>
>
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-26) Ear Packaging improvements

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565497#action_12565497 ] 

Assaf Arkin commented on BUILDR-26:
-----------------------------------

Can you split this in two independent patches?  The EAR would be easy to apply.

PackagingType is a major change, should be its own issue, discussed separately.

> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>             Fix For: 1.3
>
>         Attachments: 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch, 0002-EAR-packaging-additions.patch, 0003-Made-each-EAR-components-classpath-relative-to-the.patch, 0004-avoid-updating-parent-projects-manifest.patch, 0005-Generate-application.xml-under-the-project-s-target.patch, 0006-Expandable-PackagingTypes-and-EAR-descriptor-fix.patch, buildfile
>
>
> EAR descriptor must be generated under target as anything generated by buildr. 
> update_classpath method was modifying inherited manifest, thus causing EAR packages to contain Class-Path entries themselves, according to the specs ear packages may not have a Class-Path on their manifest. 
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (BUILDR-26) Ear Packaging improvements

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

Assaf Arkin resolved BUILDR-26.
-------------------------------

    Resolution: Fixed

> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>             Fix For: 1.3
>
>         Attachments: 0001-Outstanding-EAR-packaging-bug-fixes.patch, buildfile
>
>
> EAR descriptor must be generated under target as anything generated by buildr. 
> update_classpath method was modifying inherited manifest, thus causing EAR packages to contain Class-Path entries themselves, according to the specs ear packages may not have a Class-Path on their manifest. 
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-26) Ear Packaging improvements

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

Victor Hugo Borja updated BUILDR-26:
------------------------------------

    Attachment: 0001-Outstanding-EAR-packaging-bug-fixes.patch

Attachment: 0001-Outstanding-EAR-packaging-bug-fixes.patch

This patch includes only high priority bug fixes for EAR packaging, new features/improvements added by previous patches will be submitted on their own JIRA issues as needed.



> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>             Fix For: 1.3
>
>         Attachments: 0001-Outstanding-EAR-packaging-bug-fixes.patch, buildfile
>
>
> EAR descriptor must be generated under target as anything generated by buildr. 
> update_classpath method was modifying inherited manifest, thus causing EAR packages to contain Class-Path entries themselves, according to the specs ear packages may not have a Class-Path on their manifest. 
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-26) Ear Packaging improvements

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

Victor Hugo Borja updated BUILDR-26:
------------------------------------

    Attachment: 0002-EAR-packaging-additions.patch

[PATCH]  0002-EAR-packaging-additions.patch
EAR packaging additions:

    - Modified Project#packages to take a list of package filters
      renamed :type option to :as, adding components to EAR is more natural.

      # Add all jars produced by remoteInterfaces as ejbs on the EAR
      package(:ear).add project('remoteInterfaces').packages(:type => :jar), :as => :ejb

    - Modified packaging.textile to add more examples using the new packages selectors
    - push became an alias for the add method.
    - Multiple component types can be added at once using type=>component mapping style:

      package(:ear).add :war => project('coolWebservice').package(:war),
                        :ejb => projects('fooInterface', 'barInterface') # add jars produced by both projects as EJBs

    - Added more EAR spec examples

> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch, 0002-EAR-packaging-additions.patch, 0003-Made-each-EAR-components-classpath-relative-to-the.patch
>
>
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-26) Ear Packaging improvements

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

Victor Hugo Borja updated BUILDR-26:
------------------------------------

    Attachment:     (was: 0004-avoid-updating-parent-projects-manifest.patch)

> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>             Fix For: 1.3
>
>         Attachments: 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch, 0002-EAR-packaging-additions.patch, 0003-Made-each-EAR-components-classpath-relative-to-the.patch, 0005-Generate-application.xml-under-the-project-s-target.patch, buildfile
>
>
> EAR descriptor must be generated under target as anything generated by buildr. 
> update_classpath method was modifying inherited manifest, thus causing EAR packages to contain Class-Path entries themselves, according to the specs ear packages may not have a Class-Path on their manifest. 
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-26) Ear Packaging improvements

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

Victor Hugo Borja updated BUILDR-26:
------------------------------------

    Attachment: 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch

[PATCH] 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch
Fixed ZipTask to pass 'Buildr::Packaging war should ignore webapp directory if missing' example.

> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch
>
>
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-26) Ear Packaging improvements

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561547#action_12561547 ] 

Assaf Arkin commented on BUILDR-26:
-----------------------------------

"For the bundled optional packages mechanism, each web module uses the manifest file and Class-Path attribute to point to the same location for the JAR file bundled within the EAR file."

The examples also shows two paths that are relative to the EAR:
http://java.sun.com/j2ee/verified/packaging.html


> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch, 0002-EAR-packaging-additions.patch, 0003-Made-each-EAR-components-classpath-relative-to-the.patch
>
>
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-26) Ear Packaging improvements

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

Victor Hugo Borja updated BUILDR-26:
------------------------------------

       Priority: Major  (was: Minor)
    Description: 
EAR descriptor must be generated under target as anything generated by buildr. 

update_classpath method was modifying inherited manifest, thus causing EAR packages to contain Class-Path entries themselves, according to the specs ear packages may not have a Class-Path on their manifest. 

Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

  was:Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html.

     Issue Type: Bug  (was: Improvement)

> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>             Fix For: 1.3
>
>         Attachments: 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch, 0002-EAR-packaging-additions.patch, 0003-Made-each-EAR-components-classpath-relative-to-the.patch, 0004-avoid-updating-parent-projects-manifest.patch, 0005-Generate-application.xml-under-the-project-s-target.patch, buildfile
>
>
> EAR descriptor must be generated under target as anything generated by buildr. 
> update_classpath method was modifying inherited manifest, thus causing EAR packages to contain Class-Path entries themselves, according to the specs ear packages may not have a Class-Path on their manifest. 
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-26) Ear Packaging improvements

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

Victor Hugo Borja updated BUILDR-26:
------------------------------------

    Attachment:     (was: 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch)

> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>             Fix For: 1.3
>
>         Attachments: buildfile
>
>
> EAR descriptor must be generated under target as anything generated by buildr. 
> update_classpath method was modifying inherited manifest, thus causing EAR packages to contain Class-Path entries themselves, according to the specs ear packages may not have a Class-Path on their manifest. 
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-26) Ear Packaging improvements

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

Victor Hugo Borja updated BUILDR-26:
------------------------------------

    Attachment: buildfile

Assaf, 

Sorry for the very-late response, I've been a little busy at work. 

I've made a very simple buildfile to test deployment of ear packages using buildr with all attached patches. It seems JAVAEE 5 application servers require Class-Path entries to be relative to each component. 

Please read the comments on the end of the buildifle. 

If you want to deploy them yourself, you can either run the package task or download the ears from  app*/target directories at

     http://lainsoft.org/pub/vic/poc/



> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch, 0002-EAR-packaging-additions.patch, 0003-Made-each-EAR-components-classpath-relative-to-the.patch, 0004-avoid-updating-parent-projects-manifest.patch, 0005-Generate-application.xml-under-the-project-s-target.patch, buildfile
>
>
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-26) Ear Packaging improvements

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

Victor Hugo Borja updated BUILDR-26:
------------------------------------

    Attachment: 0004-avoid-updating-parent-projects-manifest.patch

> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch, 0002-EAR-packaging-additions.patch, 0003-Made-each-EAR-components-classpath-relative-to-the.patch, 0004-avoid-updating-parent-projects-manifest.patch, 0005-Generate-application.xml-under-the-project-s-target.patch
>
>
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-26) Ear Packaging improvements

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

Victor Hugo Borja updated BUILDR-26:
------------------------------------

    Attachment:     (was: 0003-Made-each-EAR-components-classpath-relative-to-the.patch)

> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>             Fix For: 1.3
>
>         Attachments: buildfile
>
>
> EAR descriptor must be generated under target as anything generated by buildr. 
> update_classpath method was modifying inherited manifest, thus causing EAR packages to contain Class-Path entries themselves, according to the specs ear packages may not have a Class-Path on their manifest. 
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-26) Ear Packaging improvements

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

Victor Hugo Borja updated BUILDR-26:
------------------------------------

    Attachment:     (was: 0002-EAR-packaging-additions.patch)

> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>             Fix For: 1.3
>
>         Attachments: buildfile
>
>
> EAR descriptor must be generated under target as anything generated by buildr. 
> update_classpath method was modifying inherited manifest, thus causing EAR packages to contain Class-Path entries themselves, according to the specs ear packages may not have a Class-Path on their manifest. 
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-26) Ear Packaging improvements

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

Victor Hugo Borja updated BUILDR-26:
------------------------------------

    Attachment:     (was: 0006-Expandable-PackagingTypes-and-EAR-descriptor-fix.patch)

> Ear Packaging improvements
> --------------------------
>
>                 Key: BUILDR-26
>                 URL: https://issues.apache.org/jira/browse/BUILDR-26
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>             Fix For: 1.3
>
>         Attachments: 0001-Fixed-ZipTask-to-pass-Buildr-Packaging-war-should.patch, 0002-EAR-packaging-additions.patch, 0003-Made-each-EAR-components-classpath-relative-to-the.patch, 0005-Generate-application.xml-under-the-project-s-target.patch, buildfile
>
>
> EAR descriptor must be generated under target as anything generated by buildr. 
> update_classpath method was modifying inherited manifest, thus causing EAR packages to contain Class-Path entries themselves, according to the specs ear packages may not have a Class-Path on their manifest. 
> Improvements on EAR package DSL, also fixed Class-Path generated entries according to the Jar specification at http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.