Package org.apache.maven.shared.filtering

Examples of org.apache.maven.shared.filtering.MavenResourcesExecution


    }

    // Alfresco configuration files
    // Mapped from configured resources to their respective target paths
    getLog().info("Adding configuration files");
    MavenResourcesExecution resourcesExecution;
    File targetConfigDirectory = new File(targetDirectory, "config");
    targetConfigDirectory.mkdir();
    try {
      if (StringUtils.isEmpty(encoding)) {
        getLog().warn(
            "File encoding has not been set, using platform encoding " + ReaderFactory.FILE_ENCODING
                + ", i.e. build is platform dependent!");
      }

      resourcesExecution = new MavenResourcesExecution(project.getResources(), targetConfigDirectory, project,
          encoding, null, Collections.<String>emptyList(), session);
      resourcesFiltering.filterResources(resourcesExecution);
    } catch (MavenFilteringException e) {
      throw new MojoExecutionException("Could not filter resources", e);
    }
View Full Code Here


    }

    // Alfresco configuration files
    // Mapped from configured resources to their respective target paths
    getLog().info("Adding configuration files");
    MavenResourcesExecution resourcesExecution;
    File targetConfigDirectory = new File(targetDirectory, "config");
    targetConfigDirectory.mkdir();
    try {
      if (StringUtils.isEmpty(encoding)) {
        getLog().warn(
            "File encoding has not been set, using platform encoding " + ReaderFactory.FILE_ENCODING
                + ", i.e. build is platform dependent!");
      }

      resourcesExecution = new MavenResourcesExecution(project.getResources(), targetConfigDirectory, project,
          encoding, null, Collections.<String> emptyList(), session);
      resourcesFiltering.filterResources(resourcesExecution);
    } catch (MavenFilteringException e) {
      throw new MojoExecutionException("Could not filter resources", e);
    }
View Full Code Here

    }

    // Alfresco configuration files
    // Mapped from configured resources to their respective target paths
    getLog().info("Adding configuration files");
    MavenResourcesExecution resourcesExecution;
    File targetConfigDirectory = new File(targetDirectory, "config");
    targetConfigDirectory.mkdir();
    try {
      if (StringUtils.isEmpty(encoding)) {
        getLog().warn(
            "File encoding has not been set, using platform encoding " + ReaderFactory.FILE_ENCODING
                + ", i.e. build is platform dependent!");
      }

      resourcesExecution = new MavenResourcesExecution(project.getResources(), targetConfigDirectory, project,
          encoding, null, Collections.<String> emptyList(), session);
      resourcesFiltering.filterResources(resourcesExecution);
    } catch (MavenFilteringException e) {
      throw new MojoExecutionException("Could not filter resources", e);
    }
View Full Code Here

    {
        if ( filterWrappers == null )
        {
            try
            {
                MavenResourcesExecution mavenResourcesExecution = new MavenResourcesExecution();
                mavenResourcesExecution.setEscapeString( escapeString );
                filterWrappers =
                    mavenFileFilter.getDefaultFilterWrappers( project, filters, escapedBackslashesInFilePath,
                                                              this.session, mavenResourcesExecution );
            }
            catch ( MavenFilteringException e )
View Full Code Here

    {
        if ( filterWrappers == null )
        {
            try
            {
                MavenResourcesExecution mavenResourcesExecution = new MavenResourcesExecution();
                mavenResourcesExecution.setEscapeString( escapeString );
                filterWrappers =
                    mavenFileFilter.getDefaultFilterWrappers( project, filters, escapedBackslashesInFilePath,
                                                              this.session, mavenResourcesExecution );
            }
            catch ( MavenFilteringException e )
View Full Code Here

    }

    // Alfresco configuration files
    // Mapped from configured resources to their respective target paths
    getLog().info("Adding configuration files");
    MavenResourcesExecution resourcesExecution;
    File targetConfigDirectory = new File(targetDirectory, "config");
    targetConfigDirectory.mkdir();
    try {
      if (StringUtils.isEmpty(encoding)) {
        getLog().warn(
            "File encoding has not been set, using platform encoding " + ReaderFactory.FILE_ENCODING
                + ", i.e. build is platform dependent!");
      }

      resourcesExecution = new MavenResourcesExecution(project.getResources(), targetConfigDirectory, project,
          encoding, null, Collections.<String>emptyList(), session);
      resourcesFiltering.filterResources(resourcesExecution);
    } catch (MavenFilteringException e) {
      throw new MojoExecutionException("Could not filter resources", e);
    }
View Full Code Here

            new OverlayManager( overlays, project, dependentWarIncludes, dependentWarExcludes, currentProjectOverlay );
        final List packagingTasks = getPackagingTasks( overlayManager );
        List defaultFilterWrappers = null;
        try
        {
            MavenResourcesExecution mavenResourcesExecution = new MavenResourcesExecution();
            mavenResourcesExecution.setEscapeString( escapeString );

            defaultFilterWrappers = mavenFileFilter.getDefaultFilterWrappers( project, filters,
                                                                              escapedBackslashesInFilePath,
                                                                              this.session, mavenResourcesExecution );
View Full Code Here

    }

    // Alfresco configuration files
    // Mapped from configured resources to their respective target paths
    getLog().info("Adding configuration files");
    MavenResourcesExecution resourcesExecution;
    File targetConfigDirectory = new File(targetDirectory, "config");
    targetConfigDirectory.mkdir();
    try {
      if (StringUtils.isEmpty(encoding)) {
        getLog().warn(
            "File encoding has not been set, using platform encoding " + ReaderFactory.FILE_ENCODING
                + ", i.e. build is platform dependent!");
      }

      resourcesExecution = new MavenResourcesExecution(project.getResources(), targetConfigDirectory, project,
          encoding, null, Collections.<String> emptyList(), session);
      resourcesFiltering.filterResources(resourcesExecution);
    } catch (MavenFilteringException e) {
      throw new MojoExecutionException("Could not filter resources", e);
    }
View Full Code Here

            new OverlayManager( overlays, project, dependentWarIncludes, dependentWarExcludes, currentProjectOverlay );
        final List<WarPackagingTask> packagingTasks = getPackagingTasks( overlayManager );
        List<FileUtils.FilterWrapper> defaultFilterWrappers = null;
        try
        {
            MavenResourcesExecution mavenResourcesExecution = new MavenResourcesExecution();
            mavenResourcesExecution.setEscapeString( escapeString );
            mavenResourcesExecution.setSupportMultiLineFiltering( supportMultiLineFiltering );
            mavenResourcesExecution.setMavenProject( project );
            mavenResourcesExecution.setFilters( filters );
            mavenResourcesExecution.setEscapedBackslashesInFilePath( escapedBackslashesInFilePath );
            mavenResourcesExecution.setMavenSession( this.session );
            mavenResourcesExecution.setEscapeString( this.escapeString );
            mavenResourcesExecution.setSupportMultiLineFiltering( supportMultiLineFiltering );

            defaultFilterWrappers = mavenFileFilter.getDefaultFilterWrappers( mavenResourcesExecution );

        }
        catch ( MavenFilteringException e )
View Full Code Here

            {
                // EJB-34 Filter ejb-jar.xml
                if ( filterDeploymentDescriptor )
                {
                    getLog().debug( "Filtering deployment descriptor." );
                    MavenResourcesExecution mavenResourcesExecution = new MavenResourcesExecution();
                    mavenResourcesExecution.setEscapeString( escapeString );
                    List filterWrappers = mavenFileFilter.getDefaultFilterWrappers( project, filters,
                                                                                    escapeBackslashesInFilePath,
                                                                                    this.session,
                                                                                    mavenResourcesExecution );
View Full Code Here

TOP

Related Classes of org.apache.maven.shared.filtering.MavenResourcesExecution

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.