1 /* 2 * $HeadURL: https://mindtreeinsight.svn.sourceforge.net/svnroot/mindtreeinsight/releng/maven-nsis-plugin/trunk/src/main/java/com/mindtree/techworks/insight/releng/mvn/nsis/resources/CopiedResources.java $ 3 * 4 * Copyright (c) 2007 MindTree Consulting Ltd. 5 * 6 * This file is part of Insight Release Engineering Tools. 7 * 8 * Insight Release Engineering Tools is free software: you can redistribute it 9 * and/or modify it under the terms of the GNU General Public License as 10 * published by the Free Software Foundation, either version 3 of the License, 11 * or (at your option) any later version. 12 * 13 * Insight Release Engineering Tools is distributed in the hope that it will be 14 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 16 * Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License along with 19 * Insight Release Engineering Tools. If not, see <http://www.gnu.org/licenses/>. 20 */ 21 package com.mindtree.techworks.insight.releng.mvn.nsis.resources; 22 23 import java.io.Serializable; 24 import java.util.ArrayList; 25 import java.util.List; 26 27 /** 28 * Bean used to pass information between the resource Mojo and the Velocity 29 * Mojo on resources copied over. 30 * 31 * The {@link #sectionName} attribute contains the name of the section for 32 * which the resources have been copied. This will remain blank for shared 33 * resources, such as license and notice files. 34 * 35 * @author <a href="mailto:bindul_bhowmik@mindtree.com">Bindul Bhowmik</a> 36 * @version $Revision: 87 $ $Date: 2007-12-28 04:19:31 -0700 (Fri, 28 Dec 2007) $ 37 * 38 */ 39 public class CopiedResources implements Serializable { 40 41 42 /** 43 * Used for object serialization 44 */ 45 private static final long serialVersionUID = 6216556676452746374L; 46 47 /** 48 * The name of the section for which the resources are being copied. 49 */ 50 private String sectionName; 51 52 /** 53 * The list of resources with relative path to the temporary directory. 54 */ 55 private List resources; 56 57 /** 58 * @return the sectionName 59 */ 60 public String getSectionName() { 61 return sectionName; 62 } 63 64 /** 65 * @param sectionName the sectionName to set 66 */ 67 public void setSectionName(String sectionName) { 68 this.sectionName = sectionName; 69 } 70 71 /** 72 * @return the resources 73 */ 74 public List getResources() { 75 return resources; 76 } 77 78 /** 79 * @param resources the resources to set 80 */ 81 public void setResources(List resources) { 82 this.resources = resources; 83 } 84 85 /** 86 * Adds a single resource 87 * @param resource The resource to add 88 */ 89 public void addResource(String resource) { 90 if (null == resources) { 91 resources = new ArrayList(); 92 } 93 94 resources.add(resource); 95 } 96 }