001package org.apache.maven.tools.plugin.extractor.annotations.scanner; 002 003/* 004 * Licensed to the Apache Software Foundation (ASF) under one 005 * or more contributor license agreements. See the NOTICE file 006 * distributed with this work for additional information 007 * regarding copyright ownership. The ASF licenses this file 008 * to you under the Apache License, Version 2.0 (the 009 * "License"); you may not use this file except in compliance 010 * with the License. You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, 015 * software distributed under the License is distributed on an 016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 017 * KIND, either express or implied. See the License for the 018 * specific language governing permissions and limitations 019 * under the License. 020 */ 021 022import org.apache.maven.artifact.Artifact; 023import org.apache.maven.project.MavenProject; 024 025import java.io.File; 026import java.util.ArrayList; 027import java.util.Arrays; 028import java.util.HashSet; 029import java.util.List; 030import java.util.Set; 031 032/** 033 * @author Olivier Lamy 034 * @since 3.0 035 */ 036public class MojoAnnotationsScannerRequest 037{ 038 private List<File> classesDirectories = new ArrayList<File>(); 039 040 private Set<Artifact> dependencies = new HashSet<Artifact>(); 041 042 private List<String> includePatterns = Arrays.asList( "**/*.class" ); 043 044 private List<File> sourceDirectories = new ArrayList<File>(); 045 046 private MavenProject project; 047 048 public MojoAnnotationsScannerRequest() 049 { 050 // no o 051 } 052 053 public List<File> getClassesDirectories() 054 { 055 return classesDirectories; 056 } 057 058 public void setClassesDirectories( List<File> classesDirectories ) 059 { 060 this.classesDirectories = classesDirectories; 061 } 062 063 public Set<Artifact> getDependencies() 064 { 065 return dependencies; 066 } 067 068 public void setDependencies( Set<Artifact> dependencies ) 069 { 070 this.dependencies = dependencies; 071 } 072 073 public List<String> getIncludePatterns() 074 { 075 return includePatterns; 076 } 077 078 public void setIncludePatterns( List<String> includePatterns ) 079 { 080 this.includePatterns = includePatterns; 081 } 082 083 public List<File> getSourceDirectories() 084 { 085 return sourceDirectories; 086 } 087 088 public void setSourceDirectories( List<File> sourceDirectories ) 089 { 090 this.sourceDirectories = sourceDirectories; 091 } 092 093 public MavenProject getProject() 094 { 095 return project; 096 } 097 098 public void setProject( MavenProject project ) 099 { 100 this.project = project; 101 } 102}