You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (JIRA)" <ji...@apache.org> on 2013/10/10 11:27:43 UTC

[jira] [Commented] (SLING-3019) Provide a mechanism to install a bundle based on a directory

    [ https://issues.apache.org/jira/browse/SLING-3019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13791349#comment-13791349 ] 

Robert Munteanu commented on SLING-3019:
----------------------------------------

[~cziegler], [~egli] - I've taken a look at the implementation and I'm wondering why we make Sling update the bundle based on the local directory, instead of building the jar on the client side and then uploading it.

Thinking in that direction, couldn't we reuse the Felix/JCR Install mechanisms for uploading bundles?

The reason I'm asking is that this incremental deploy only works on localhost, and for remote deployments we can only use Maven deployment, which is IMO too slow ( and also still not done right, see SLING-3134  for instance).

> Provide a mechanism to install a bundle based on a directory
> ------------------------------------------------------------
>
>                 Key: SLING-3019
>                 URL: https://issues.apache.org/jira/browse/SLING-3019
>             Project: Sling
>          Issue Type: New Feature
>          Components: IDE
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>
> With an IDE integration and incremental builds, it would be great to have a mechanism to install/update a bundle based on the output directory of a project.
> I'll start with a prototype of a bundle which receives post requests containing the path of a local directory. The servlet will then either install or update the bundle from that directory
> For this to work, the scr descriptor files of a project should go into a bundle. So configure the scr plugin like this:
>             <plugin>
>                 <groupId>org.apache.felix</groupId>
>                 <artifactId>maven-scr-plugin</artifactId>
>                 <configuration>
>                    <outputDirectory>${project.build.directory}/classes</outputDirectory>
>                 </configuration>
>             </plugin>



--
This message was sent by Atlassian JIRA
(v6.1#6144)