You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2018/04/16 20:59:11 UTC

[sling-ide-tooling] branch feature/SLING-5618 updated (bfb9237 -> adb0523)

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a change to branch feature/SLING-5618
in repository https://gitbox.apache.org/repos/asf/sling-ide-tooling.git.


    from bfb9237  SLING-5618 - Make the ResourceChangeCommandFactory independent from Eclipse
     new d4a0ccb  SLING-5618 - Make the ResourceChangeCommandFactory independent from Eclipse
     new adb0523  SLING-7585 - Fix Eclipse in-IDE errors after creating shared modules

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../internal/ResourceChangeCommandFactory.java     |  64 --------
 .../core/internal/SlingLaunchpadBehaviour.java     |  12 +-
 eclipse/eclipse-m2e-ui/META-INF/MANIFEST.MF        |   3 +-
 eclipse/eclipse-test/META-INF/MANIFEST.MF          |   1 +
 .../org/apache/sling/ide/test/impl/Activator.java  |  11 ++
 ...est.java => DefaultCommandFactoryImplTest.java} |  56 +++----
 .../ide/eclipse/ui/internal/ExportWizard.java      |   1 -
 .../ui/internal/ImportRepositoryContentAction.java |   1 -
 shared/modules/pom.xml                             |   1 -
 shared/modules/vlt-wrapper/bnd.bnd                 |  57 -------
 shared/modules/vlt-wrapper/pom.xml                 | 133 ---------------
 shared/p2/pom.xml                                  |   5 +-
 shared/p2/shared-feature/feature.xml               |   6 +-
 shared/p2/shared-feature/pom.xml                   |   6 +-
 .../p2/vlt-wrapper}/META-INF/LICENSE               |   0
 shared/p2/vlt-wrapper/META-INF/MANIFEST.MF         |  73 +++++++++
 .../p2/vlt-wrapper}/META-INF/NOTICE                |   2 +-
 shared/{modules => p2}/vlt-wrapper/README.md       |   0
 shared/p2/vlt-wrapper/build.properties             |  18 +++
 .../p2/vlt-wrapper}/lib/.gitignore                 |   0
 shared/p2/vlt-wrapper/pom.xml                      | 178 +++++++++++++++++++++
 21 files changed, 328 insertions(+), 300 deletions(-)
 delete mode 100644 eclipse/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/ResourceChangeCommandFactory.java
 rename eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/{ResourceChangeCommandFactoryTest.java => DefaultCommandFactoryImplTest.java} (83%)
 delete mode 100644 shared/modules/vlt-wrapper/bnd.bnd
 delete mode 100644 shared/modules/vlt-wrapper/pom.xml
 copy {eclipse/sightly-feature => shared/p2/vlt-wrapper}/META-INF/LICENSE (100%)
 create mode 100644 shared/p2/vlt-wrapper/META-INF/MANIFEST.MF
 copy {eclipse/eclipse-core => shared/p2/vlt-wrapper}/META-INF/NOTICE (87%)
 rename shared/{modules => p2}/vlt-wrapper/README.md (100%)
 create mode 100644 shared/p2/vlt-wrapper/build.properties
 copy {eclipse/eclipse-ui => shared/p2/vlt-wrapper}/lib/.gitignore (100%)
 create mode 100644 shared/p2/vlt-wrapper/pom.xml

-- 
To stop receiving notification emails like this one, please contact
rombert@apache.org.

[sling-ide-tooling] 02/02: SLING-7585 - Fix Eclipse in-IDE errors after creating shared modules

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch feature/SLING-5618
in repository https://gitbox.apache.org/repos/asf/sling-ide-tooling.git

commit adb052307c99d3a21232eaab48b6b855c66b3cf9
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Mon Apr 16 23:56:31 2018 +0300

    SLING-7585 - Fix Eclipse in-IDE errors after creating shared modules
    
    Move vlt-wrapper under shared/p2 . This artifact is only needed in Eclipse,
    where OSGi bundles need to come from p2 repos, so it's not really
    needed in the 'shared/modules' part. Additionally, the packages it
    exports are not available in Eclipse and cause compiler errors (although
    Tycho works fine).
    
    The module could have ended up under eclipse/, but in order to build
    the shared p2 feature we need a bundle providing javax.jcr.* and
    a couple of Jackrabbit packages, so we went with shared/p2.
---
 eclipse/eclipse-test/META-INF/MANIFEST.MF          |   1 +
 shared/modules/pom.xml                             |   1 -
 shared/modules/vlt-wrapper/bnd.bnd                 |  57 -------
 shared/modules/vlt-wrapper/pom.xml                 | 133 ---------------
 shared/p2/pom.xml                                  |   5 +-
 shared/p2/shared-feature/feature.xml               |   6 +-
 shared/p2/shared-feature/pom.xml                   |   6 +-
 .../feature.xml => vlt-wrapper/META-INF/LICENSE}   |  98 +++---------
 shared/p2/vlt-wrapper/META-INF/MANIFEST.MF         |  73 +++++++++
 shared/p2/vlt-wrapper/META-INF/NOTICE              |  11 ++
 shared/{modules => p2}/vlt-wrapper/README.md       |   0
 shared/p2/vlt-wrapper/build.properties             |  18 +++
 shared/p2/vlt-wrapper/lib/.gitignore               |   1 +
 shared/p2/vlt-wrapper/pom.xml                      | 178 +++++++++++++++++++++
 14 files changed, 313 insertions(+), 275 deletions(-)

diff --git a/eclipse/eclipse-test/META-INF/MANIFEST.MF b/eclipse/eclipse-test/META-INF/MANIFEST.MF
index 5cf871d..2913950 100644
--- a/eclipse/eclipse-test/META-INF/MANIFEST.MF
+++ b/eclipse/eclipse-test/META-INF/MANIFEST.MF
@@ -11,6 +11,7 @@ Require-Bundle: org.junit,
  org.eclipse.jdt.core,
  org.eclipse.jdt.launching,
  org.eclipse.wst.server.core,
+ org.eclipse.ui.navigator,
  org.apache.sling.ide.eclipse-core,
  org.apache.sling.ide.eclipse-ui,
  org.apache.sling.ide.eclipse-sightly-core,
diff --git a/shared/modules/pom.xml b/shared/modules/pom.xml
index a9c1920..3d11973 100644
--- a/shared/modules/pom.xml
+++ b/shared/modules/pom.xml
@@ -37,7 +37,6 @@
         <module>api</module>
         <module>impl-resource</module>
         <module>impl-vlt</module>
-        <module>vlt-wrapper</module>
         <module>artifacts</module>
     </modules>
 </project>
diff --git a/shared/modules/vlt-wrapper/bnd.bnd b/shared/modules/vlt-wrapper/bnd.bnd
deleted file mode 100644
index b27c029..0000000
--- a/shared/modules/vlt-wrapper/bnd.bnd
+++ /dev/null
@@ -1,57 +0,0 @@
-Bundle-ActivationPolicy: lazy
-
--exportcontents: javax.jcr,\
- javax.jcr.nodetype,\
- javax.jcr.lock,\
- javax.jcr.observation, \
- javax.jcr.query, \
- javax.jcr.query.qom, \
- javax.jcr.retention, \
- javax.jcr.security , \
- javax.jcr.util, \
- javax.jcr.version, \
- org.apache.jackrabbit.api,\
- org.apache.jackrabbit.api.management, \
- org.apache.jackrabbit.api.security.authorization, \
- org.apache.jackrabbit.api.security.principal, \
- org.apache.jackrabbit.api.security.user, \
- org.apache.jackrabbit.spi,\
- org.apache.jackrabbit.spi.commons.conversion,\
- org.apache.jackrabbit.spi.commons.namespace,\
- org.apache.jackrabbit.util,\
- org.apache.jackrabbit.vault.davex,\
- org.apache.jackrabbit.vault.fs,\
- org.apache.jackrabbit.vault.fs.api,\
- org.apache.jackrabbit.vault.fs.config,\
- org.apache.jackrabbit.vault.fs.filter,\
- org.apache.jackrabbit.vault.fs.impl,\
- org.apache.jackrabbit.vault.fs.impl.aggregator,\
- org.apache.jackrabbit.vault.fs.impl.io,\
- org.apache.jackrabbit.vault.fs.impl.io.legacycnd,\
- org.apache.jackrabbit.vault.fs.io,\
- org.apache.jackrabbit.vault.fs.spi,\
- org.apache.jackrabbit.vault.fs.spi.impl.jcr20,\
- org.apache.jackrabbit.vault.packaging,\
- org.apache.jackrabbit.vault.packaging.impl,\
- org.apache.jackrabbit.vault.util,\
- org.apache.jackrabbit.vault.util.xml.serialize,\
- org.apache.jackrabbit.vault.util.xml.xerces.dom,\
- org.apache.jackrabbit.vault.util.xml.xerces.util,\
- org.apache.jackrabbit.vault.util.xml.xerces.xni,\
- org.apache.jackrabbit.vault.util.xml.xerces.xni.parser
-
--includeresource: guava-*.jar;lib:=true,\
-    jackrabbit-*.jar;lib:=true, \
-    vault-*;lib:=true, \
-    org.apache.jackrabbit.vault-*.jar;lib:=true, \
-    http*.jar;lib:=true, \
-    jcr-*.jar;lib:=true
-
-Import-Package: sun.misc;resolution:=optional, \
- org.apache.commons.codec;version="[1.3.0,2)", \
- org.apache.commons.codec.binary;version="[1.3.0,2)", \
- org.apache.commons.io;version="[1.4,3)", \
- org.apache.commons.io.input;version="[1.4,3)", \
- org.apache.commons.io.output;version="[1.4,3)", \
- !org.apache.sling.*, \
- *
diff --git a/shared/modules/vlt-wrapper/pom.xml b/shared/modules/vlt-wrapper/pom.xml
deleted file mode 100644
index 5deb99b..0000000
--- a/shared/modules/vlt-wrapper/pom.xml
+++ /dev/null
@@ -1,133 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
-    license agreements. See the NOTICE file distributed with this work for additional 
-    information regarding copyright ownership. The ASF licenses this file to 
-    you under the Apache License, Version 2.0 (the "License"); you may not use 
-    this file except in compliance with the License. You may obtain a copy of 
-    the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
-    by applicable law or agreed to in writing, software distributed under the 
-    License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
-    OF ANY KIND, either express or implied. See the License for the specific 
-    language governing permissions and limitations under the License. -->
-<project
-    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
-    xmlns="http://maven.apache.org/POM/4.0.0"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-    <modelVersion>4.0.0</modelVersion>
-    <parent>
-        <groupId>org.apache.sling.ide</groupId>
-        <artifactId>sling-ide-shared-parent</artifactId>
-        <version>1.2.3-SNAPSHOT</version>
-        <relativePath>../parent/</relativePath>
-    </parent>
-
-    <artifactId>org.apache.sling.ide.vlt-wrapper</artifactId>
-    <name>Apache Sling IDE Tools FileVault wrapper</name>
-
-    <scm>
-        <connection>scm:git:https://gitbox.apache.org/repos/asf/sling-ide-tooling.git</connection>
-        <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/sling-ide-tooling.git</developerConnection>
-        <url>https://gitbox.apache.org/repos/asf?p=sling-ide-tooling.git</url>
-    </scm>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>biz.aQute.bnd</groupId>
-                <artifactId>bnd-maven-plugin</artifactId>
-            </plugin>
-        </plugins>
-    </build>
-
-    <dependencies>
-        <!-- START JCR dependencies -->
-        <dependency>
-            <groupId>javax.jcr</groupId>
-            <artifactId>jcr</artifactId>
-        </dependency>
-        <!-- END JCR dependencies -->
-
-        <!-- START Apache Jackrabbit dependencies -->
-        <dependency>
-            <groupId>org.apache.jackrabbit</groupId>
-            <artifactId>jackrabbit-api</artifactId>
-            <version>${jackrabbit.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.jackrabbit</groupId>
-            <artifactId>jackrabbit-webdav</artifactId>
-            <version>${jackrabbit.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.jackrabbit</groupId>
-            <artifactId>jackrabbit-spi-commons</artifactId>
-            <version>${jackrabbit.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.jackrabbit</groupId>
-            <artifactId>jackrabbit-jcr-commons</artifactId>
-            <version>${jackrabbit.version}</version>
-        </dependency>
-        <!-- transitive dependency of jackrabbit-jcr-commons -->
-        <dependency>
-            <groupId>com.google.guava</groupId>
-            <artifactId>guava</artifactId>
-            <version>15.0</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.jackrabbit</groupId>
-            <artifactId>jackrabbit-jcr2spi</artifactId>
-            <version>${jackrabbit.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.jackrabbit</groupId>
-            <artifactId>jackrabbit-jcr-client</artifactId>
-            <version>${jackrabbit.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.jackrabbit</groupId>
-            <artifactId>jackrabbit-spi</artifactId>
-            <version>${jackrabbit.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.jackrabbit</groupId>
-            <artifactId>jackrabbit-spi2dav</artifactId>
-            <version>${jackrabbit.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.httpcomponents</groupId>
-            <artifactId>httpmime</artifactId>
-            <version>4.5.3</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.httpcomponents</groupId>
-            <artifactId>httpclient</artifactId>
-            <version>4.5.3</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.httpcomponents</groupId>
-            <artifactId>httpcore</artifactId>
-            <version>4.4.6</version>
-        </dependency>
-        <!-- END Apache Jackrabbit dependencies -->
-
-        <!-- START Apache Jackrabbit FileVault dependencies -->
-        <dependency>
-            <groupId>org.apache.jackrabbit.vault</groupId>
-            <artifactId>vault-davex</artifactId>
-            <version>${vault.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.jackrabbit.vault</groupId>
-            <artifactId>org.apache.jackrabbit.vault</artifactId>
-            <version>${vault.version}</version>
-        </dependency>
-    </dependencies>
-
-    <properties>
-        <!-- must match the version being referenced in the pom.xml of filevault -->
-        <jackrabbit.version>2.16.1</jackrabbit.version>
-        <vault.version>3.1.44</vault.version>
-        <sling.java.version>8</sling.java.version>
-    </properties>
-</project>
diff --git a/shared/p2/pom.xml b/shared/p2/pom.xml
index a65f175..5362ea2 100644
--- a/shared/p2/pom.xml
+++ b/shared/p2/pom.xml
@@ -33,6 +33,7 @@
     </scm>
 
     <modules>
+        <module>vlt-wrapper</module>
         <module>shared-feature</module>
         <module>shared-repository</module>
     </modules>
@@ -46,8 +47,8 @@
         <repository>
             <id>orbit</id>
             <layout>p2</layout>
-            <url>http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository/</url>
-        </repository>
+            <url>http://download.eclipse.org/tools/orbit/downloads/drops/R20170516192513/repository</url>
+        </repository>    
     </repositories>
 
     <build>
diff --git a/shared/p2/shared-feature/feature.xml b/shared/p2/shared-feature/feature.xml
index e76ed1a..1d0a0e4 100644
--- a/shared/p2/shared-feature/feature.xml
+++ b/shared/p2/shared-feature/feature.xml
@@ -233,21 +233,21 @@
          unpack="false"/>
 
    <plugin
-         id="org.apache.sling.ide.vlt-wrapper"
+         id="org.apache.sling.ide.impl-vlt"
          download-size="0"
          install-size="0"
          version="0.0.0"
          unpack="false"/>
 
    <plugin
-         id="org.apache.sling.ide.impl-vlt"
+         id="org.apache.sling.ide.artifacts"
          download-size="0"
          install-size="0"
          version="0.0.0"
          unpack="false"/>
 
    <plugin
-         id="org.apache.sling.ide.artifacts"
+         id="org.apache.sling.ide.vlt-wrapper"
          download-size="0"
          install-size="0"
          version="0.0.0"
diff --git a/shared/p2/shared-feature/pom.xml b/shared/p2/shared-feature/pom.xml
index 24f7584..a22ba75 100644
--- a/shared/p2/shared-feature/pom.xml
+++ b/shared/p2/shared-feature/pom.xml
@@ -22,17 +22,17 @@
     </dependency>
     <dependency>
       <groupId>org.apache.sling.ide</groupId>
-      <artifactId>org.apache.sling.ide.vlt-wrapper</artifactId>
+      <artifactId>org.apache.sling.ide.impl-vlt</artifactId>
       <version>${project.version}</version>
     </dependency>
     <dependency>
       <groupId>org.apache.sling.ide</groupId>
-      <artifactId>org.apache.sling.ide.impl-vlt</artifactId>
+      <artifactId>org.apache.sling.ide.artifacts</artifactId>
       <version>${project.version}</version>
     </dependency>
     <dependency>
       <groupId>org.apache.sling.ide</groupId>
-      <artifactId>org.apache.sling.ide.artifacts</artifactId>
+      <artifactId>org.apache.sling.ide.vlt-wrapper</artifactId>
       <version>${project.version}</version>
     </dependency>
    </dependencies>
diff --git a/shared/p2/shared-feature/feature.xml b/shared/p2/vlt-wrapper/META-INF/LICENSE
similarity index 75%
copy from shared/p2/shared-feature/feature.xml
copy to shared/p2/vlt-wrapper/META-INF/LICENSE
index e76ed1a..d645695 100644
--- a/shared/p2/shared-feature/feature.xml
+++ b/shared/p2/vlt-wrapper/META-INF/LICENSE
@@ -1,28 +1,5 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or
-    more contributor license agreements. See the NOTICE file
-    distributed with this work for additional information regarding
-    copyright ownership. The ASF licenses this file to you under the
-    Apache License, Version 2.0 (the "License"); you may not use
-    this file except in compliance with the License. You may obtain
-    a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0 Unless required by
-    applicable law or agreed to in writing, software distributed
-    under the License is distributed on an "AS IS" BASIS, WITHOUT
-    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions
-    and limitations under the License.
--->
-<feature
-      id="org.apache.sling.ide.shared.feature"
-      label="Sling IDE Tools - Shared"
-      version="1.2.3.qualifier"
-      provider-name="The Apache Software Foundation">
-
-   <license url="http://www.apache.org/licenses/LICENSE-2.0">
-      Apache License
+
+                                 Apache License
                            Version 2.0, January 2004
                         http://www.apache.org/licenses/
 
@@ -30,38 +7,38 @@
 
    1. Definitions.
 
-      &quot;License&quot; shall mean the terms and conditions for use, reproduction,
+      "License" shall mean the terms and conditions for use, reproduction,
       and distribution as defined by Sections 1 through 9 of this document.
 
-      &quot;Licensor&quot; shall mean the copyright owner or entity authorized by
+      "Licensor" shall mean the copyright owner or entity authorized by
       the copyright owner that is granting the License.
 
-      &quot;Legal Entity&quot; shall mean the union of the acting entity and all
+      "Legal Entity" shall mean the union of the acting entity and all
       other entities that control, are controlled by, or are under common
       control with that entity. For the purposes of this definition,
-      &quot;control&quot; means (i) the power, direct or indirect, to cause the
+      "control" means (i) the power, direct or indirect, to cause the
       direction or management of such entity, whether by contract or
       otherwise, or (ii) ownership of fifty percent (50%) or more of the
       outstanding shares, or (iii) beneficial ownership of such entity.
 
-      &quot;You&quot; (or &quot;Your&quot;) shall mean an individual or Legal Entity
+      "You" (or "Your") shall mean an individual or Legal Entity
       exercising permissions granted by this License.
 
-      &quot;Source&quot; form shall mean the preferred form for making modifications,
+      "Source" form shall mean the preferred form for making modifications,
       including but not limited to software source code, documentation
       source, and configuration files.
 
-      &quot;Object&quot; form shall mean any form resulting from mechanical
+      "Object" form shall mean any form resulting from mechanical
       transformation or translation of a Source form, including but
       not limited to compiled object code, generated documentation,
       and conversions to other media types.
 
-      &quot;Work&quot; shall mean the work of authorship, whether in Source or
+      "Work" shall mean the work of authorship, whether in Source or
       Object form, made available under the License, as indicated by a
       copyright notice that is included in or attached to the work
       (an example is provided in the Appendix below).
 
-      &quot;Derivative Works&quot; shall mean any work, whether in Source or Object
+      "Derivative Works" shall mean any work, whether in Source or Object
       form, that is based on (or derived from) the Work and for which the
       editorial revisions, annotations, elaborations, or other modifications
       represent, as a whole, an original work of authorship. For the purposes
@@ -69,21 +46,21 @@
       separable from, or merely link (or bind by name) to the interfaces of,
       the Work and Derivative Works thereof.
 
-      &quot;Contribution&quot; shall mean any work of authorship, including
+      "Contribution" shall mean any work of authorship, including
       the original version of the Work and any modifications or additions
       to that Work or Derivative Works thereof, that is intentionally
       submitted to Licensor for inclusion in the Work by the copyright owner
       or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, &quot;submitted&quot;
+      the copyright owner. For the purposes of this definition, "submitted"
       means any form of electronic, verbal, or written communication sent
       to the Licensor or its representatives, including but not limited to
       communication on electronic mailing lists, source code control systems,
       and issue tracking systems that are managed by, or on behalf of, the
       Licensor for the purpose of discussing and improving the Work, but
       excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as &quot;Not a Contribution.&quot;
+      designated in writing by the copyright owner as "Not a Contribution."
 
-      &quot;Contributor&quot; shall mean Licensor and any individual or Legal Entity
+      "Contributor" shall mean Licensor and any individual or Legal Entity
       on behalf of whom a Contribution has been received by Licensor and
       subsequently incorporated within the Work.
 
@@ -127,7 +104,7 @@
           excluding those notices that do not pertain to any part of
           the Derivative Works; and
 
-      (d) If the Work includes a &quot;NOTICE&quot; text file as part of its
+      (d) If the Work includes a "NOTICE" text file as part of its
           distribution, then any Derivative Works that You distribute must
           include a readable copy of the attribution notices contained
           within such NOTICE file, excluding those notices that do not
@@ -166,7 +143,7 @@
 
    7. Disclaimer of Warranty. Unless required by applicable law or
       agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an &quot;AS IS&quot; BASIS,
+      Contributor provides its Contributions) on an "AS IS" BASIS,
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
       implied, including, without limitation, any warranties or conditions
       of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
@@ -202,55 +179,24 @@
    APPENDIX: How to apply the Apache License to your work.
 
       To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets &quot;[]&quot;
-      replaced with your own identifying information. (Don&apos;t include
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
       the brackets!)  The text should be enclosed in the appropriate
       comment syntax for the file format. We also recommend that a
       file or class name and description of purpose be included on the
-      same &quot;printed page&quot; as the copyright notice for easier
+      same "printed page" as the copyright notice for easier
       identification within third-party archives.
 
    Copyright [yyyy] [name of copyright owner]
 
-   Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
+   Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
 
        http://www.apache.org/licenses/LICENSE-2.0
 
    Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
+   distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-   </license>
-
-   <plugin
-         id="org.apache.sling.ide.api"
-         download-size="0"
-         install-size="0"
-         version="0.0.0"
-         unpack="false"/>
-
-   <plugin
-         id="org.apache.sling.ide.vlt-wrapper"
-         download-size="0"
-         install-size="0"
-         version="0.0.0"
-         unpack="false"/>
-
-   <plugin
-         id="org.apache.sling.ide.impl-vlt"
-         download-size="0"
-         install-size="0"
-         version="0.0.0"
-         unpack="false"/>
-
-   <plugin
-         id="org.apache.sling.ide.artifacts"
-         download-size="0"
-         install-size="0"
-         version="0.0.0"
-         unpack="false"/>
-</feature>
-
diff --git a/shared/p2/vlt-wrapper/META-INF/MANIFEST.MF b/shared/p2/vlt-wrapper/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..67ae9d5
--- /dev/null
+++ b/shared/p2/vlt-wrapper/META-INF/MANIFEST.MF
@@ -0,0 +1,73 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: org.apache.sling.ide.vlt-wrapper
+Bundle-Version: 1.2.3.qualifier
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-ClassPath: .,
+ lib/org.apache.jackrabbit.vault-3.1.44.jar,
+ lib/vault-davex-3.1.44.jar,
+ lib/jcr-2.0.jar,
+ lib/guava-15.0.jar,
+ lib/jackrabbit-api-2.16.1.jar,
+ lib/jackrabbit-spi2dav-2.16.1.jar,
+ lib/jackrabbit-spi-2.16.1.jar,
+ lib/jackrabbit-jcr-client-2.16.1.jar,
+ lib/jackrabbit-jcr2spi-2.16.1.jar,
+ lib/jackrabbit-jcr-commons-2.16.1.jar,
+ lib/jackrabbit-spi-commons-2.16.1.jar,
+ lib/jackrabbit-webdav-2.16.1.jar,
+ lib/httpmime-4.5.3.jar,
+ lib/httpclient-4.5.3.jar,
+ lib/httpcore-4.4.6.jar
+Export-Package: javax.jcr;version="2.0.0",
+ javax.jcr.nodetype;version="2.0.0",
+ javax.jcr.lock;version="2.0.0",
+ javax.jcr.observation;version="2.0.0",
+ javax.jcr.query;version="2.0.0",
+ javax.jcr.query.qom;version="2.0.0",
+ javax.jcr.retention;version="2.0.0",
+ javax.jcr.security;version="2.0.0",
+ javax.jcr.util;version="2.0.0",
+ javax.jcr.version;version="2.0.0",
+ org.apache.jackrabbit.api;version="2.16.0",
+ org.apache.jackrabbit.api.management;version="2.16.0",
+ org.apache.jackrabbit.api.security;version="2.16.0",
+ org.apache.jackrabbit.api.security.authorization;version="2.16.0", 
+ org.apache.jackrabbit.api.security.principal;version="2.16.0", 
+ org.apache.jackrabbit.api.security.user;version="2.16.0", 
+ org.apache.jackrabbit.spi.commons.conversion;version="2.16.0",
+ org.apache.jackrabbit.spi.commons.namespace;version="2.16.0",
+ org.apache.jackrabbit.util;version="2.16.0",
+ org.apache.jackrabbit.vault.davex;version="2.4.0",
+ org.apache.jackrabbit.vault.fs;version="2.4.0",
+ org.apache.jackrabbit.vault.fs.api;version="2.6.0",
+ org.apache.jackrabbit.vault.fs.config;version="2.5.0",
+ org.apache.jackrabbit.vault.fs.filter;version="2.4.0",
+ org.apache.jackrabbit.vault.fs.impl;version="2.4.0",
+ org.apache.jackrabbit.vault.fs.impl.aggregator;version="2.4.0",
+ org.apache.jackrabbit.vault.fs.impl.io;version="2.4.0",
+ org.apache.jackrabbit.vault.fs.impl.io.legacycnd;version="2.4.0",
+ org.apache.jackrabbit.vault.fs.io;version="2.4.0",
+ org.apache.jackrabbit.vault.fs.spi;version="2.4.0",
+ org.apache.jackrabbit.vault.fs.spi.impl.jcr20;version="2.4.0",
+ org.apache.jackrabbit.vault.packaging;version="2.4.0",
+ org.apache.jackrabbit.vault.packaging.impl;version="2.4.0",
+ org.apache.jackrabbit.vault.util;version="2.4.0",
+ org.apache.jackrabbit.vault.util.xml.serialize;version="2.4.0",
+ org.apache.jackrabbit.vault.util.xml.xerces.dom;version="2.4.0",
+ org.apache.jackrabbit.vault.util.xml.xerces.util;version="2.4.0",
+ org.apache.jackrabbit.vault.util.xml.xerces.xni;version="2.4.0",
+ org.apache.jackrabbit.vault.util.xml.xerces.xni.parser;version="2.4.0"
+Require-Bundle: org.eclipse.core.runtime
+Import-Package: org.apache.commons.collections,
+ org.apache.commons.collections.map,
+ org.apache.commons.collections.list,
+ org.apache.commons.collections.iterators,
+ org.apache.commons.logging,
+ org.apache.commons.codec,
+ org.apache.commons.codec.binary,
+ org.apache.commons.io,
+ org.apache.commons.io.output,
+ org.osgi.framework,
+ org.slf4j
diff --git a/shared/p2/vlt-wrapper/META-INF/NOTICE b/shared/p2/vlt-wrapper/META-INF/NOTICE
new file mode 100644
index 0000000..45dda0c
--- /dev/null
+++ b/shared/p2/vlt-wrapper/META-INF/NOTICE
@@ -0,0 +1,11 @@
+
+Sling IDE Tools: FileVault wrapper
+Copyright 2007-2014 The Apache Software Foundation
+
+Apache Sling is based on source code originally developed 
+by Day Software (http://www.day.com/).
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+
diff --git a/shared/modules/vlt-wrapper/README.md b/shared/p2/vlt-wrapper/README.md
similarity index 100%
rename from shared/modules/vlt-wrapper/README.md
rename to shared/p2/vlt-wrapper/README.md
diff --git a/shared/p2/vlt-wrapper/build.properties b/shared/p2/vlt-wrapper/build.properties
new file mode 100644
index 0000000..d3b5912
--- /dev/null
+++ b/shared/p2/vlt-wrapper/build.properties
@@ -0,0 +1,18 @@
+output.. = bin/
+bin.includes = META-INF/,\
+               .,\
+               lib/org.apache.jackrabbit.vault-3.1.44.jar,\
+               lib/vault-davex-3.1.44.jar,\
+               lib/jcr-2.0.jar,\
+               lib/guava-15.0.jar,\
+               lib/jackrabbit-api-2.16.1.jar,\
+               lib/jackrabbit-spi2dav-2.16.1.jar,\
+               lib/jackrabbit-spi-2.16.1.jar,\
+               lib/jackrabbit-jcr-client-2.16.1.jar,\
+               lib/jackrabbit-jcr2spi-2.16.1.jar,\
+               lib/jackrabbit-jcr-commons-2.16.1.jar,\
+               lib/jackrabbit-spi-commons-2.16.1.jar,\
+               lib/jackrabbit-webdav-2.16.1.jar,\
+               lib/httpmime-4.5.3.jar,\
+               lib/httpclient-4.5.3.jar,\
+               lib/httpcore-4.4.6.jar
diff --git a/shared/p2/vlt-wrapper/lib/.gitignore b/shared/p2/vlt-wrapper/lib/.gitignore
new file mode 100644
index 0000000..f23b948
--- /dev/null
+++ b/shared/p2/vlt-wrapper/lib/.gitignore
@@ -0,0 +1 @@
+*.jar
\ No newline at end of file
diff --git a/shared/p2/vlt-wrapper/pom.xml b/shared/p2/vlt-wrapper/pom.xml
new file mode 100644
index 0000000..d9e99f1
--- /dev/null
+++ b/shared/p2/vlt-wrapper/pom.xml
@@ -0,0 +1,178 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or
+    more contributor license agreements. See the NOTICE file
+    distributed with this work for additional information regarding
+    copyright ownership. The ASF licenses this file to you under the
+    Apache License, Version 2.0 (the "License"); you may not use
+    this file except in compliance with the License. You may obtain
+    a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0 Unless required by
+    applicable law or agreed to in writing, software distributed
+    under the License is distributed on an "AS IS" BASIS, WITHOUT
+    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions
+    and limitations under the License.
+-->
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.sling</groupId>
+        <artifactId>sling-ide-tooling-p2</artifactId>
+        <version>1.2.3-SNAPSHOT</version>
+    </parent>
+    <artifactId>org.apache.sling.ide.vlt-wrapper</artifactId>
+    <packaging>eclipse-plugin</packaging>
+    <name>Apache Sling IDE Tools FileVault wrapper</name>
+
+    <scm>
+        <connection>scm:git:https://gitbox.apache.org/repos/asf/sling-ide-tooling.git</connection>
+        <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/sling-ide-tooling.git</developerConnection>
+        <url>https://gitbox.apache.org/repos/asf?p=sling-ide-tooling.git</url>
+    </scm>
+    <build>
+        <!-- ensure that extra files are picked up by the maven-source-plugin -->
+        <resources>
+            <resource>
+                <directory>.</directory>
+                <includes>
+                    <include>build.properties</include>
+                    <include>META-INF/*</include>
+                </includes>
+            </resource>
+        </resources>
+        <plugins>
+            <plugin>
+                <artifactId>maven-clean-plugin</artifactId>
+                <configuration>
+                    <filesets>
+                        <fileset>
+                            <directory>lib</directory>
+                            <includes>
+                                <include>**/*.jar</include>
+                            </includes>
+                        </fileset>
+                    </filesets>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-source-plugin</artifactId>
+                <configuration>
+                    <archive>
+                        <manifestFile>META-INF/MANIFEST.MF</manifestFile>
+                    </archive>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <configuration>
+                    <artifactItems>
+                        <!-- START JCR dependencies -->
+                        <artifactItem>
+                            <groupId>javax.jcr</groupId>
+                            <artifactId>jcr</artifactId>
+                            <version>2.0</version>
+                        </artifactItem>
+                        <!-- END JCR dependencies -->
+
+                        <!-- START Apache Jackrabbit dependencies -->
+                        <artifactItem>
+                            <groupId>org.apache.jackrabbit</groupId>
+                            <artifactId>jackrabbit-api</artifactId>
+                            <version>${jackrabbit.version}</version>
+                        </artifactItem>
+                        <artifactItem>
+                            <groupId>org.apache.jackrabbit</groupId>
+                            <artifactId>jackrabbit-webdav</artifactId>
+                            <version>${jackrabbit.version}</version>
+                        </artifactItem>
+                        <artifactItem>
+                            <groupId>org.apache.jackrabbit</groupId>
+                            <artifactId>jackrabbit-spi-commons</artifactId>
+                            <version>${jackrabbit.version}</version>
+                        </artifactItem>
+                        <artifactItem>
+                            <groupId>org.apache.jackrabbit</groupId>
+                            <artifactId>jackrabbit-jcr-commons</artifactId>
+                            <version>${jackrabbit.version}</version>
+                        </artifactItem>
+                        <!-- transitive dependency of jackrabbit-jcr-commons -->
+                        <artifactItem>
+                            <groupId>com.google.guava</groupId>
+                            <artifactId>guava</artifactId>
+                            <version>15.0</version>
+                        </artifactItem>
+                        <artifactItem>
+                            <groupId>org.apache.jackrabbit</groupId>
+                            <artifactId>jackrabbit-jcr2spi</artifactId>
+                            <version>${jackrabbit.version}</version>
+                        </artifactItem>
+                        <artifactItem>
+                            <groupId>org.apache.jackrabbit</groupId>
+                            <artifactId>jackrabbit-jcr-client</artifactId>
+                            <version>${jackrabbit.version}</version>
+                        </artifactItem>
+                        <artifactItem>
+                            <groupId>org.apache.jackrabbit</groupId>
+                            <artifactId>jackrabbit-spi</artifactId>
+                            <version>${jackrabbit.version}</version>
+                        </artifactItem>
+                        <artifactItem>
+                            <groupId>org.apache.jackrabbit</groupId>
+                            <artifactId>jackrabbit-spi2dav</artifactId>
+                            <version>${jackrabbit.version}</version>
+                        </artifactItem>
+                        <artifactItem>
+                            <groupId>org.apache.httpcomponents</groupId>
+                            <artifactId>httpmime</artifactId>
+                            <version>4.5.3</version>
+                        </artifactItem>
+                        <artifactItem>
+                            <groupId>org.apache.httpcomponents</groupId>
+                            <artifactId>httpclient</artifactId>
+                            <version>4.5.3</version>
+                        </artifactItem>
+                        <artifactItem>
+                            <groupId>org.apache.httpcomponents</groupId>
+                            <artifactId>httpcore</artifactId>
+                            <version>4.4.6</version>
+                        </artifactItem>
+                        <!-- END Apache Jackrabbit dependencies -->
+
+                        <!-- START Apache Jackrabbit FileVault dependencies -->
+                        <artifactItem>
+                            <groupId>org.apache.jackrabbit.vault</groupId>
+                            <artifactId>vault-davex</artifactId>
+                            <version>${vault.version}</version>
+                        </artifactItem>
+                        <artifactItem>
+                            <groupId>org.apache.jackrabbit.vault</groupId>
+                            <artifactId>org.apache.jackrabbit.vault</artifactId>
+                            <version>${vault.version}</version>
+                        </artifactItem>
+                        <!-- END Apache Jackrabbit FileVault dependencies -->
+
+                    </artifactItems>
+                    <outputDirectory>lib</outputDirectory>
+                </configuration>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>copy</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+    <properties>
+        <!-- must match the version being referenced in the pom.xml of filevault -->
+        <jackrabbit.version>2.16.1</jackrabbit.version>
+        <vault.version>3.1.44</vault.version>
+    </properties>
+</project>

-- 
To stop receiving notification emails like this one, please contact
rombert@apache.org.

[sling-ide-tooling] 01/02: SLING-5618 - Make the ResourceChangeCommandFactory independent from Eclipse

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch feature/SLING-5618
in repository https://gitbox.apache.org/repos/asf/sling-ide-tooling.git

commit d4a0ccb6084a684ee1291395026cb50b18e2c058
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Fri Apr 13 18:04:38 2018 +0300

    SLING-5618 - Make the ResourceChangeCommandFactory independent from Eclipse
    
    Completely remove the ResourceChangeCommandFactory
---
 .../internal/ResourceChangeCommandFactory.java     | 64 ----------------------
 .../core/internal/SlingLaunchpadBehaviour.java     | 12 ++--
 eclipse/eclipse-m2e-ui/META-INF/MANIFEST.MF        |  3 +-
 .../org/apache/sling/ide/test/impl/Activator.java  | 11 ++++
 ...est.java => DefaultCommandFactoryImplTest.java} | 56 ++++++++++---------
 .../ide/eclipse/ui/internal/ExportWizard.java      |  1 -
 .../ui/internal/ImportRepositoryContentAction.java |  1 -
 7 files changed, 48 insertions(+), 100 deletions(-)

diff --git a/eclipse/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/ResourceChangeCommandFactory.java b/eclipse/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/ResourceChangeCommandFactory.java
deleted file mode 100644
index 4e6a9f8..0000000
--- a/eclipse/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/ResourceChangeCommandFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.sling.ide.eclipse.core.internal;
-
-import java.io.IOException;
-
-import org.apache.sling.ide.eclipse.core.EclipseResources;
-import org.apache.sling.ide.transport.Command;
-import org.apache.sling.ide.transport.Repository;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Status;
-
-/**
- * The <tt>ResourceChangeCommandFactory</tt> creates new {@link #Command commands} correspoding to resource addition,
- * change, or removal
- *
- * @deprecated - Use the {@link DefaultCommandFactory} instead. This class is present until the tests are migrated off it
- */
-@Deprecated
-public class ResourceChangeCommandFactory {
-
-    public Command<?> newCommandForAddedOrUpdated(Repository repository, IResource addedOrUpdated) throws CoreException {
-        
-        try {
-            return Activator.getDefault().getCommandFactory().newCommandForAddedOrUpdatedResource(repository, EclipseResources.create(addedOrUpdated));
-        } catch (IOException e) {
-            throw new CoreException(new Status(Status.ERROR, Activator.PLUGIN_ID, "Failed updating " + addedOrUpdated,
-                    e));
-        }
-    }
-
-    public Command<?> newCommandForRemovedResources(Repository repository, IResource removed) throws CoreException {
-        try {
-            return  Activator.getDefault().getCommandFactory().newCommandForRemovedResource(repository, EclipseResources.create(removed));
-        } catch (IOException e) {
-            throw new CoreException(new Status(Status.ERROR, Activator.PLUGIN_ID, "Failed removing" + removed, e));
-        }
-    }
-
-    public Command<Void> newReorderChildNodesCommand(Repository repository, IResource res) throws CoreException {
-        try {
-            return  Activator.getDefault().getCommandFactory().newReorderChildNodesCommand(repository, EclipseResources.create(res));
-        } catch (IOException e) {
-            throw new CoreException(new Status(Status.ERROR, Activator.PLUGIN_ID, "Failed reordering child nodes for "
-                    + res, e));
-        }
-    }
-
-}
diff --git a/eclipse/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java b/eclipse/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java
index 47aa0fe..d33145b 100644
--- a/eclipse/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java
+++ b/eclipse/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java
@@ -30,12 +30,14 @@ import java.util.Set;
 
 import org.apache.sling.ide.artifacts.EmbeddedArtifact;
 import org.apache.sling.ide.artifacts.EmbeddedArtifactLocator;
+import org.apache.sling.ide.eclipse.core.EclipseResources;
 import org.apache.sling.ide.eclipse.core.ISlingLaunchpadServer;
 import org.apache.sling.ide.eclipse.core.ServerUtil;
 import org.apache.sling.ide.log.Logger;
 import org.apache.sling.ide.osgi.OsgiClient;
 import org.apache.sling.ide.osgi.OsgiClientException;
 import org.apache.sling.ide.serialization.SerializationException;
+import org.apache.sling.ide.sync.content.SyncCommandFactory;
 import org.apache.sling.ide.transport.Batcher;
 import org.apache.sling.ide.transport.Command;
 import org.apache.sling.ide.transport.Repository;
@@ -65,7 +67,7 @@ import org.osgi.framework.Version;
 
 public class SlingLaunchpadBehaviour extends ServerBehaviourDelegateWithModulePublishSupport {
 
-    private ResourceChangeCommandFactory commandFactory;
+    private SyncCommandFactory commandFactory;
 	private ILaunch launch;
 	private JVMDebuggerConnection debuggerConnection;
 	
@@ -196,7 +198,7 @@ public class SlingLaunchpadBehaviour extends ServerBehaviourDelegateWithModulePu
         Logger logger = Activator.getDefault().getPluginLogger();
         
         if (commandFactory == null) {
-            commandFactory = new ResourceChangeCommandFactory();
+            commandFactory = Activator.getDefault().getCommandFactory();
         }
 
         logger.trace(traceOperation(kind, deltaKind, module));
@@ -566,7 +568,7 @@ public class SlingLaunchpadBehaviour extends ServerBehaviourDelegateWithModulePu
             return null;
         }
 
-        return commandFactory.newCommandForAddedOrUpdated(repository, res);
+        return commandFactory.newCommandForAddedOrUpdatedResource(repository, EclipseResources.create(res));
     }
 
     private Command<?> reorderChildNodesCommand(Repository repository, IModuleResource resource) throws CoreException,
@@ -578,7 +580,7 @@ public class SlingLaunchpadBehaviour extends ServerBehaviourDelegateWithModulePu
             return null;
         }
 
-        return commandFactory.newReorderChildNodesCommand(repository, res);
+        return commandFactory.newReorderChildNodesCommand(repository, EclipseResources.create(res));
     }
 
     private IResource getResource(IModuleResource resource) {
@@ -608,6 +610,6 @@ public class SlingLaunchpadBehaviour extends ServerBehaviourDelegateWithModulePu
             return null;
         }
 
-        return commandFactory.newCommandForRemovedResources(repository, deletedResource);
+        return commandFactory.newCommandForRemovedResource(repository, EclipseResources.create(deletedResource));
     }
 }
diff --git a/eclipse/eclipse-m2e-ui/META-INF/MANIFEST.MF b/eclipse/eclipse-m2e-ui/META-INF/MANIFEST.MF
index b0e67ef..1480c68 100644
--- a/eclipse/eclipse-m2e-ui/META-INF/MANIFEST.MF
+++ b/eclipse/eclipse-m2e-ui/META-INF/MANIFEST.MF
@@ -66,6 +66,5 @@ Import-Package: org.apache.commons.httpclient;version="3.1.0",
  org.osgi.framework;version="1.6.0",
  org.osgi.util.tracker;version="1.5.0"
 Bundle-ActivationPolicy: lazy
-Export-Package: org.apache.sling.ide.eclipse.m2e,org.apache.sling.ide.
- eclipse.ui.wizards.np
+Export-Package: org.apache.sling.ide.eclipse.ui.wizards.np
 SlingIDE-PluginLoggerEnabled: true
diff --git a/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/Activator.java b/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/Activator.java
index 5ccd3d5..60c983e 100644
--- a/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/Activator.java
+++ b/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/Activator.java
@@ -20,6 +20,7 @@ import org.apache.sling.ide.artifacts.EmbeddedArtifactLocator;
 import org.apache.sling.ide.eclipse.core.ServiceUtil;
 import org.apache.sling.ide.osgi.OsgiClientFactory;
 import org.apache.sling.ide.serialization.SerializationManager;
+import org.apache.sling.ide.sync.content.SyncCommandFactory;
 import org.eclipse.core.runtime.Plugin;
 import org.osgi.framework.BundleContext;
 import org.osgi.util.tracker.ServiceTracker;
@@ -34,6 +35,8 @@ public class Activator extends Plugin {
 
     private ServiceTracker<SerializationManager, SerializationManager> serializationManager;
 
+    private ServiceTracker <SyncCommandFactory, SyncCommandFactory> commandFactory;
+
     @Override
     public void start(BundleContext context) throws Exception {
         super.start(context);
@@ -46,6 +49,9 @@ public class Activator extends Plugin {
 
         serializationManager = new ServiceTracker<>(context, SerializationManager.class, null);
         serializationManager.open();
+        
+        commandFactory = new ServiceTracker<>(context, SyncCommandFactory.class, null);
+        commandFactory.open();
 
         INSTANCE = this;
     }
@@ -56,6 +62,7 @@ public class Activator extends Plugin {
         artifactLocator.close();
         osgiClientFactory.close();
         serializationManager.close();
+        commandFactory.close();
 
         INSTANCE = null;
 
@@ -80,4 +87,8 @@ public class Activator extends Plugin {
 
         return ServiceUtil.getNotNull(serializationManager);
     }
+
+    public SyncCommandFactory getCommandFactory() {
+        return ServiceUtil.getNotNull(commandFactory);
+    }
 }
diff --git a/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/ResourceChangeCommandFactoryTest.java b/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/DefaultCommandFactoryImplTest.java
similarity index 83%
rename from eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/ResourceChangeCommandFactoryTest.java
rename to eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/DefaultCommandFactoryImplTest.java
index c5a328d..7c7c89a 100644
--- a/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/ResourceChangeCommandFactoryTest.java
+++ b/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/DefaultCommandFactoryImplTest.java
@@ -31,7 +31,8 @@ import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
-import org.apache.sling.ide.eclipse.core.internal.ResourceChangeCommandFactory;
+import org.apache.sling.ide.eclipse.core.EclipseResources;
+import org.apache.sling.ide.sync.content.SyncCommandFactory;
 import org.apache.sling.ide.test.impl.helpers.ProjectAdapter;
 import org.apache.sling.ide.test.impl.helpers.SpyCommand;
 import org.apache.sling.ide.test.impl.helpers.SpyRepository;
@@ -47,13 +48,14 @@ import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
 
-public class ResourceChangeCommandFactoryTest {
+// TODO - move out of the eclipse-test module and make this a regular Maven test
+public class DefaultCommandFactoryImplTest {
 
     @Rule
     public TemporaryProject projectRule = new TemporaryProject();
     private IProject contentProject;
     private ProjectAdapter project;
-    private ResourceChangeCommandFactory factory;
+    private SyncCommandFactory factory;
     private Repository spyRepo;
 
     @Before
@@ -72,7 +74,7 @@ public class ResourceChangeCommandFactoryTest {
 
         Set<String> ignoredFileNames = new HashSet<>();
         ignoredFileNames.add(".gitignore");
-        factory = new ResourceChangeCommandFactory();
+        factory = Activator.getDefault().getCommandFactory();
 
         spyRepo = new SpyRepository();
     }
@@ -85,11 +87,11 @@ public class ResourceChangeCommandFactoryTest {
             project.createOrUpdateFile(Path.fromPortableString("jcr_root/content/test-root/nested/.gitignore"),
                     inputStream);
         }
-        SpyCommand<?> command = (SpyCommand<?>) factory.newCommandForAddedOrUpdated(spyRepo,
-                contentProject.findMember("jcr_root/content/test-root/nested/.gitignore"));
+        SpyCommand<?> command = (SpyCommand<?>) factory.newCommandForAddedOrUpdatedResource(spyRepo,
+                EclipseResources.create(contentProject.findMember("jcr_root/content/test-root/nested/.gitignore")));
         assertNull(command);
-        command = (SpyCommand<?>) factory.newCommandForRemovedResources(spyRepo,
-                contentProject.findMember("jcr_root/content/test-root/nested/.gitignore"));
+        command = (SpyCommand<?>) factory.newCommandForRemovedResource(spyRepo,
+                EclipseResources.create(contentProject.findMember("jcr_root/content/test-root/nested/.gitignore")));
         assertNull(command);
     }
 
@@ -101,30 +103,30 @@ public class ResourceChangeCommandFactoryTest {
             project.createOrUpdateFile(Path.fromPortableString("jcr_root/content/test-root/nested/gitignore"),
                     inputStream);
         }
-        SpyCommand<?> command = (SpyCommand<?>) factory.newCommandForAddedOrUpdated(spyRepo,
-                contentProject.findMember("jcr_root/content/test-root/nested/gitignore"));
+        SpyCommand<?> command = (SpyCommand<?>) factory.newCommandForAddedOrUpdatedResource(spyRepo,
+                EclipseResources.create(contentProject.findMember("jcr_root/content/test-root/nested/gitignore")));
         assertThat("command.path", command.getPath(), nullValue());
         assertThat("command.resource.path", command.getResourceProxy().getPath(), equalTo("/content/test-root/nested/gitignore"));
         assertThat("command.resource.properties", command.getResourceProxy().getProperties(),
                 equalTo(singletonMap("jcr:primaryType", (Object) "nt:file")));
         assertThat("command.kind", command.getSpyKind(), equalTo(SpyCommand.Kind.ADD_OR_UPDATE));
         
-        command = (SpyCommand<?>) factory.newCommandForRemovedResources(spyRepo,
-                contentProject.findMember("jcr_root/content/test-root/nested/gitignore"));
+        command = (SpyCommand<?>) factory.newCommandForRemovedResource(spyRepo,
+                EclipseResources.create(contentProject.findMember("jcr_root/content/test-root/nested/gitignore")));
         assertThat("command.path", command.getPath(), equalTo("/content/test-root/nested/gitignore"));
         assertThat("command.kind", command.getSpyKind(), equalTo(SpyCommand.Kind.DELETE));
     }
 
     @Test
-    public void commandForAddedOrUpdatedNtFolder() throws CoreException {
+    public void commandForAddedOrUpdatedNtFolder() throws CoreException, IOException {
 
         // create a sling:Folder at /content/test-root/nested
         InputStream childContentXml = getClass().getResourceAsStream("sling-folder-nodetype.xml");
         project.createOrUpdateFile(Path.fromPortableString("jcr_root/content/test-root/nested/.content.xml"),
                 childContentXml);
 
-        SpyCommand<?> command = (SpyCommand<?>) factory.newCommandForAddedOrUpdated(spyRepo,
-                contentProject.findMember("jcr_root/content/test-root"));
+        SpyCommand<?> command = (SpyCommand<?>) factory.newCommandForAddedOrUpdatedResource(spyRepo,
+                EclipseResources.create(contentProject.findMember("jcr_root/content/test-root")));
 
         assertThat("command.path", command.getPath(), nullValue());
         assertThat("command.resource.path", command.getResourceProxy().getPath(), equalTo("/content/test-root"));
@@ -135,15 +137,15 @@ public class ResourceChangeCommandFactoryTest {
     }
 
     @Test
-    public void commandForAddedOrUpdatedSlingFolder() throws CoreException {
+    public void commandForAddedOrUpdatedSlingFolder() throws CoreException, IOException {
 
         // create a sling:Folder at /content/test-root/nested
         InputStream childContentXml = getClass().getResourceAsStream("sling-folder-nodetype-with-title.xml");
         project.createOrUpdateFile(Path.fromPortableString("jcr_root/content/test-root/nested/.content.xml"),
                 childContentXml);
 
-        SpyCommand<?> command = (SpyCommand<?>) factory.newCommandForAddedOrUpdated(spyRepo,
-                contentProject.findMember("jcr_root/content/test-root/nested"));
+        SpyCommand<?> command = (SpyCommand<?>) factory.newCommandForAddedOrUpdatedResource(spyRepo,
+                EclipseResources.create(contentProject.findMember("jcr_root/content/test-root/nested")));
 
         Map<String, Object> props = new HashMap<>();
         props.put("jcr:primaryType", "sling:Folder");
@@ -157,7 +159,7 @@ public class ResourceChangeCommandFactoryTest {
     }
 
     @Test
-    public void commandForSlingOrderedFolder_children() throws CoreException {
+    public void commandForSlingOrderedFolder_children() throws CoreException, IOException {
 
         // create a sling:OrderedFolder at /content/test-root
         project.createOrUpdateFile(Path.fromPortableString("jcr_root/content/test-root/.content.xml"), getClass()
@@ -165,8 +167,8 @@ public class ResourceChangeCommandFactoryTest {
         // create the child folder listed in the .content.xml file
         contentProject.getFolder("jcr_root/content/test-root/folder").create(true, true, new NullProgressMonitor());
 
-        SpyCommand<?> command = (SpyCommand<?>) factory.newCommandForAddedOrUpdated(spyRepo,
-                contentProject.findMember("jcr_root/content/test-root"));
+        SpyCommand<?> command = (SpyCommand<?>) factory.newCommandForAddedOrUpdatedResource(spyRepo,
+                EclipseResources.create(contentProject.findMember("jcr_root/content/test-root")));
 
         List<ResourceProxy> children = command.getResourceProxy().getChildren();
 
@@ -174,14 +176,14 @@ public class ResourceChangeCommandFactoryTest {
     }
 
     @Test
-    public void commandForSlingOrderedFolder_childrenMissingFromFilesystem() throws CoreException {
+    public void commandForSlingOrderedFolder_childrenMissingFromFilesystem() throws CoreException, IOException {
 
         // create a sling:OrderedFolder at /content/test-root
         project.createOrUpdateFile(Path.fromPortableString("jcr_root/content/test-root/.content.xml"), getClass()
                 .getResourceAsStream("sling-ordered-folder-with-children.xml"));
 
-        SpyCommand<?> command = (SpyCommand<?>) factory.newCommandForAddedOrUpdated(spyRepo,
-                contentProject.findMember("jcr_root/content/test-root"));
+        SpyCommand<?> command = (SpyCommand<?>) factory.newCommandForAddedOrUpdatedResource(spyRepo,
+                EclipseResources.create(contentProject.findMember("jcr_root/content/test-root")));
 
         List<ResourceProxy> children = command.getResourceProxy().getChildren();
 
@@ -189,7 +191,7 @@ public class ResourceChangeCommandFactoryTest {
     }
 
     @Test
-    public void commandForSlingOrderedFolder_extraChildrenInTheFilesystem() throws CoreException {
+    public void commandForSlingOrderedFolder_extraChildrenInTheFilesystem() throws CoreException, IOException {
 
         // create a sling:OrderedFolder at /content/test-root
         project.createOrUpdateFile(Path.fromPortableString("jcr_root/content/test-root/.content.xml"), getClass()
@@ -199,8 +201,8 @@ public class ResourceChangeCommandFactoryTest {
         // create an extra folder not listed in the .content.xml file
         contentProject.getFolder("jcr_root/content/test-root/folder2").create(true, true, new NullProgressMonitor());
 
-        SpyCommand<?> command = (SpyCommand<?>) factory.newCommandForAddedOrUpdated(spyRepo,
-                contentProject.findMember("jcr_root/content/test-root"));
+        SpyCommand<?> command = (SpyCommand<?>) factory.newCommandForAddedOrUpdatedResource(spyRepo,
+                EclipseResources.create(contentProject.findMember("jcr_root/content/test-root")));
 
         List<ResourceProxy> children = command.getResourceProxy().getChildren();
 
diff --git a/eclipse/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ExportWizard.java b/eclipse/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ExportWizard.java
index e647e34..2f3611c 100644
--- a/eclipse/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ExportWizard.java
+++ b/eclipse/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ExportWizard.java
@@ -21,7 +21,6 @@ import java.lang.reflect.InvocationTargetException;
 
 import org.apache.sling.ide.eclipse.core.EclipseResources;
 import org.apache.sling.ide.eclipse.core.ServerUtil;
-import org.apache.sling.ide.eclipse.core.internal.ResourceChangeCommandFactory;
 import org.apache.sling.ide.eclipse.ui.WhitelabelSupport;
 import org.apache.sling.ide.sync.content.SyncCommandFactory;
 import org.apache.sling.ide.transport.Command;
diff --git a/eclipse/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ImportRepositoryContentAction.java b/eclipse/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ImportRepositoryContentAction.java
index e5e9196..d3ef371 100644
--- a/eclipse/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ImportRepositoryContentAction.java
+++ b/eclipse/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ImportRepositoryContentAction.java
@@ -33,7 +33,6 @@ import org.apache.sling.ide.eclipse.core.EclipseResources;
 import org.apache.sling.ide.eclipse.core.ProjectUtil;
 import org.apache.sling.ide.eclipse.core.ResourceUtil;
 import org.apache.sling.ide.eclipse.core.ServerUtil;
-import org.apache.sling.ide.eclipse.core.internal.ResourceChangeCommandFactory;
 import org.apache.sling.ide.eclipse.core.progress.ProgressUtils;
 import org.apache.sling.ide.filter.Filter;
 import org.apache.sling.ide.filter.FilterResult;

-- 
To stop receiving notification emails like this one, please contact
rombert@apache.org.