Details

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

      Issue Links

        Activity

        Hide
        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
        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
        Fred Bricon
        added a comment -

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

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

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

        Show
        Fred Bricon
        added a comment - So we need an API to read/write these patterns to a project preferences file.
        Hide
        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
        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
        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
        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
        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
        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
            Reporter:
            Max Rydahl Andersen
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: