1 /* 2 * (C) Copyright 2006-2014 Nuxeo SA (http://nuxeo.com/) and contributors. 3 * 4 * All rights reserved. This program and the accompanying materials 5 * are made available under the terms of the GNU Lesser General Public License 6 * (LGPL) version 2.1 which accompanies this distribution, and is available at 7 * http://www.gnu.org/licenses/lgpl-2.1.html 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * Contributors: 15 * bstefanescu 16 */ 17 package org.nuxeo.build.ant.artifact; 18 19 import org.apache.tools.ant.types.DataType; 20 import org.nuxeo.build.maven.filter.NotFilter; 21 import org.nuxeo.build.maven.filter.OrFilter; 22 23 /** 24 * TODO NXBT-258 25 */ 26 public class Excludes extends DataType { 27 28 private OrFilter orFilter = new OrFilter(); 29 30 private NotFilter filter = new NotFilter(orFilter); 31 32 public NotFilter getFilter() { 33 return filter; 34 } 35 36 public void addArtifact(ArtifactPattern f) { 37 orFilter.addFilter(f.getFilter()); 38 } 39 }