Details

    • Type: Sub-task
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.3.0.Beta1
    • Component/s: server
    • Labels:
      None

      Gliffy Diagrams

        Issue Links

          Activity

          Hide
          fbricon Fred Bricon added a comment -

          So with maven, exclusions take precedence. If you do :

          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-war-plugin</artifactId>
              <version>2.1.1</version>
              <configuration>
                  <packagingIncludes>**/*.jar</packagingIncludes>
                  <packagingExcludes>**/*.jar</packagingExcludes>
              </configuration>
          </plugin>
          

          or

          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-war-plugin</artifactId>
              <version>2.1.1</version>
              <configuration>
                  <packagingIncludes>**/*</packagingIncludes>
                  <packagingExcludes>**/*.jar</packagingExcludes>
              </configuration>
          </plugin>
          

          Then the jars are excluded

          Show
          fbricon Fred Bricon added a comment - So with maven, exclusions take precedence. If you do : < plugin > < groupId >org.apache.maven.plugins</ groupId > < artifactId >maven-war-plugin</ artifactId > < version >2.1.1</ version > < configuration > < packagingIncludes >**/*.jar</ packagingIncludes > < packagingExcludes >**/*.jar</ packagingExcludes > </ configuration > </ plugin > or < plugin > < groupId >org.apache.maven.plugins</ groupId > < artifactId >maven-war-plugin</ artifactId > < version >2.1.1</ version > < configuration > < packagingIncludes >**/*</ packagingIncludes > < packagingExcludes >**/*.jar</ packagingExcludes > </ configuration > </ plugin > Then the jars are excluded
          Hide
          fbricon Fred Bricon added a comment -

          For ANT pattern matching, if needed, you can use Spring's AntPathMatcher. Source is available here.

          Show
          fbricon Fred Bricon added a comment - For ANT pattern matching, if needed, you can use Spring's AntPathMatcher . Source is available here .
          Hide
          fbricon Fred Bricon added a comment -

          So we need an API to read/write these patterns to a project preferences file.

          Show
          fbricon Fred Bricon added a comment - So we need an API to read/write these patterns to a project preferences file.
          Hide
          rob.stryker Rob Stryker added a comment -

          This has been committed with unit tests. The method for others to set a project's includes and excludes pattern is inside the component.xml file.

          Examples are:
          IVirtualComponent vc = ComponentCore.createComponent(IProject);
          vc.setMetaProperty("component.inclusion.patterns", "*/");
          vc.setMetaProperty("component.exclusion.patterns", "*/.txt");

          That should be enough to trigger this functionality.

          Show
          rob.stryker Rob Stryker added a comment - This has been committed with unit tests. The method for others to set a project's includes and excludes pattern is inside the component.xml file. Examples are: IVirtualComponent vc = ComponentCore.createComponent(IProject); vc.setMetaProperty("component.inclusion.patterns", "* / "); vc.setMetaProperty("component.exclusion.patterns", "* / .txt"); That should be enough to trigger this functionality.
          Hide
          rob.stryker Rob Stryker added a comment -

          Apparently the multiple star's didn't take well in comments, but, i'm sure you know i mean (star)(star)(slash)(Star) etc.

          Show
          rob.stryker Rob Stryker added a comment - Apparently the multiple star's didn't take well in comments, but, i'm sure you know i mean (star)(star)(slash)(Star) etc.
          Hide
          fbricon Fred Bricon added a comment -

          I fixed platform dependent path comparisons that didn't work on Windows.
          Also don't scan anything if no patterns are set.

          With that fixes, I could check that GWT client classes are not deployed on AS7. Now need to make the appropriate changes to m2e-wtp (set the right metadatas to the web component).

          Show
          fbricon Fred Bricon added a comment - I fixed platform dependent path comparisons that didn't work on Windows. Also don't scan anything if no patterns are set. With that fixes, I could check that GWT client classes are not deployed on AS7. Now need to make the appropriate changes to m2e-wtp (set the right metadatas to the web component).

            People

            • Assignee:
              rob.stryker Rob Stryker
              Reporter:
              maxandersen Max Rydahl Andersen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development