You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2009/01/29 13:44:59 UTC

[jira] Created: (SLING-845) Full build with integration test leaves sling folder in root

Full build with integration test leaves sling folder in root
------------------------------------------------------------

                 Key: SLING-845
                 URL: https://issues.apache.org/jira/browse/SLING-845
             Project: Sling
          Issue Type: Bug
          Components: Launchpad
            Reporter: Felix Meschberger
            Assignee: Felix Meschberger


When running a full build from trunk root including the integration tests, the sling directory used by the integration test web app is placed in the root folder. It would be better if this directory would be located in the target folder of the launchpad/testing module.

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


[jira] Commented: (SLING-845) Full build with integration test leaves sling folder in root

Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696069#action_12696069 ] 

Bertrand Delacretaz commented on SLING-845:
-------------------------------------------

In revision 762318, updated top-level pom.xml so that "mvn clean" deletes the "sling" folder that's created there when running a full build with integration tests.

> Full build with integration test leaves sling folder in root
> ------------------------------------------------------------
>
>                 Key: SLING-845
>                 URL: https://issues.apache.org/jira/browse/SLING-845
>             Project: Sling
>          Issue Type: Bug
>          Components: Launchpad
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>         Attachments: patch-clean-sling-dir.txt
>
>
> When running a full build from trunk root including the integration tests, the sling directory used by the integration test web app is placed in the root folder. It would be better if this directory would be located in the target folder of the launchpad/testing module.

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


[jira] Commented: (SLING-845) Full build with integration test leaves sling folder in root

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696000#action_12696000 ] 

Felix Meschberger commented on SLING-845:
-----------------------------------------

The problem is, that when redoing the launchpad launcher code, I completely disabled support for system properties to be used as framework properties for the Sling web application. The reason for this is, that a web application runs in a container and that muliple sling web applications may be running in the same servlet container. If all would be using system properties for configuration, they would in fact all use the same configuration, which may not be desired.

An at least partial solution is to have jetty:run provide the sling.home property to the web app. Starting with the maven jetty plugin 6.1.6 (we currently use 6.1.5), there is a new configuration option, which allows injecting context initial parameters. By injecting the sling.home context init param, we can provide the required property.

One thing, which remains to be fixed are the integration tests, which use the Maven Cargo plugin to launch a Jetty instance and deploy the Sling web app into it. The solution here might be to hook into the maven build lifecycle with our own setup:

   pre-integration-test: Launch the Sling standalone application in a separate process, providing the sling.home
             property as well as the port to use
   post-integration-test: Shutdown the started Sling standalone application by either killing the process (if possible)
             or sending a POST request to the Web Console to shutdown (this is possible with the new launcher in
             that stoping the system bundle also terminates the Sling standalone application).

In Rev. 762238 updated the parent pom referring to version 6.1.6 of the jetty plugin and in Rev. 762239 adapted the launchpad/webapp project to inject the parameter.



> Full build with integration test leaves sling folder in root
> ------------------------------------------------------------
>
>                 Key: SLING-845
>                 URL: https://issues.apache.org/jira/browse/SLING-845
>             Project: Sling
>          Issue Type: Bug
>          Components: Launchpad
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>         Attachments: patch-clean-sling-dir.txt
>
>
> When running a full build from trunk root including the integration tests, the sling directory used by the integration test web app is placed in the root folder. It would be better if this directory would be located in the target folder of the launchpad/testing module.

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


[jira] Updated: (SLING-845) Full build with integration test leaves sling folder in root

Posted by "James P. White (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James P. White updated SLING-845:
---------------------------------

    Attachment: patch-clean-sling-dir.txt

This doesn't relocate the sling dir to our target, but it does solve the related staleness problem (SLING-900) by removing it on clean.

> Full build with integration test leaves sling folder in root
> ------------------------------------------------------------
>
>                 Key: SLING-845
>                 URL: https://issues.apache.org/jira/browse/SLING-845
>             Project: Sling
>          Issue Type: Bug
>          Components: Launchpad
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>         Attachments: patch-clean-sling-dir.txt
>
>
> When running a full build from trunk root including the integration tests, the sling directory used by the integration test web app is placed in the root folder. It would be better if this directory would be located in the target folder of the launchpad/testing module.

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