Package org.apache.maven.model

Examples of org.apache.maven.model.Resource.addExclude()


            if ( getResourceTargetPath() != null )
            {
                resource.setTargetPath( getResourceTargetPath() );
            }
            resource.setDirectory( absoluteGeneratedPath.getPath() );
            resource.addExclude( "**/*.java" );
            getProject().addTestResource( resource );
        }
    }

    protected String getGenerated()
View Full Code Here


            addNonPartialsToResources(getTopDirectory(),resourceNonGenerated);
        } catch (CodeGenException e) {
            throw new MojoExecutionException("Couldn't add non partial specifications to resources");
        }
        if (resourceNonGenerated.getIncludes().isEmpty()) {
            resourceNonGenerated.addExclude("**/*");
        }
        Resource resourceGenerated = new Resource();
        final File specificationOutputDir = getSpecificationOutput();
        resourceGenerated.setDirectory(specificationOutputDir.getPath());
        resourceGenerated.addInclude("**/*.json");
 
View Full Code Here

      }
    }

    if (resourcesExclude != null) {
      for (String resourceExclude : resourcesExclude) {
        resource.addExclude(resourceExclude);
      }

      resource.addExclude("build/**");
      resource.addExclude("dist/**");
      resource.addExclude("target/**");
 
View Full Code Here

    if (resourcesExclude != null) {
      for (String resourceExclude : resourcesExclude) {
        resource.addExclude(resourceExclude);
      }

      resource.addExclude("build/**");
      resource.addExclude("dist/**");
      resource.addExclude("target/**");
    }

    String fullTargetPath = getFullTargetPath(targetPath);
View Full Code Here

      for (String resourceExclude : resourcesExclude) {
        resource.addExclude(resourceExclude);
      }

      resource.addExclude("build/**");
      resource.addExclude("dist/**");
      resource.addExclude("target/**");
    }

    String fullTargetPath = getFullTargetPath(targetPath);

View Full Code Here

        resource.addExclude(resourceExclude);
      }

      resource.addExclude("build/**");
      resource.addExclude("dist/**");
      resource.addExclude("target/**");
    }

    String fullTargetPath = getFullTargetPath(targetPath);

    resource.setTargetPath(fullTargetPath);
View Full Code Here

    File resourcesDirectory = new File(getProjectFolder(), directory);

    @SuppressWarnings("unchecked")
    Resource resource = findOrCreateResource(getProject().getResources(), resourcesDirectory.getAbsolutePath());

    resource.addExclude("*.lproj/**");

    if (flattenResources()) {
      resource.addInclude("*");
      resource.addInclude("*.wo/**");
      resource.addInclude("*.eomodeld/**");
 
View Full Code Here

            Resource resource = new Resource();
            resource.setDirectory(home.getAbsolutePath());
            resource.addInclude("gems/**");
            resource.addInclude("specifications/**");
            // no java sources since resins application server tries to compile those
            resource.addExclude("gems/**/*.java");
            project.getBuild().getResources().add(resource);
        }

        if (this.includeLibDirectoryInResources) {
            if (jrubyVerbose) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.