001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 2004 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * Initial developer: Florent BENOIT
022: * --------------------------------------------------------------------------
023: * $Id: JCopy.java 5051 2004-07-01 16:19:19Z benoitf $
024: * --------------------------------------------------------------------------
025: */package org.objectweb.jonas.ant.jonasbase;
026:
027: import java.io.File;
028:
029: import org.apache.tools.ant.taskdefs.Copy;
030:
031: /**
032: * Defines common copy methods
033: * @author Florent Benoit
034: */
035: public class JCopy extends Copy implements BaseTaskItf {
036:
037: /**
038: * configuration file used
039: */
040: private String configurationFile = null;
041:
042: /**
043: * Information for the logger
044: */
045: private String logInfo = null;
046:
047: /**
048: * JONAS_ROOT directory
049: */
050: private File jonasRoot = null;
051:
052: /**
053: * Sets the configuration file
054: * @param configurationFile The configurationFile to set.
055: */
056: public void setConfigurationFile(String configurationFile) {
057: this .configurationFile = configurationFile;
058: }
059:
060: /**
061: * @param destDir The destDir to set.
062: */
063: public void setDestDir(File destDir) {
064: setTodir(destDir);
065: }
066:
067: /**
068: * Gets logger info (to be displayed)
069: * @return logger info
070: * @see org.objectweb.jonas.ant.jonasbase.BaseTaskItf#getLogInfo()
071: */
072: public String getLogInfo() {
073: return logInfo;
074: }
075:
076: /**
077: * Set the info to be displayed by the logger
078: * @param logInfo information to be displayed
079: * @see org.objectweb.jonas.ant.jonasbase.BaseTaskItf#setLogInfo(java.lang.String)
080: */
081: public void setLogInfo(String logInfo) {
082: this .logInfo = logInfo;
083: }
084:
085: /**
086: * @param jonasRoot The jonasRoot directory
087: */
088: public void setJonasRoot(File jonasRoot) {
089: this .jonasRoot = jonasRoot;
090: }
091:
092: /**
093: * @return the configurationFile.
094: */
095: protected String getConfigurationFile() {
096: return configurationFile;
097: }
098:
099: /**
100: * @return the jonasRoot.
101: */
102: protected File getJonasRoot() {
103: return jonasRoot;
104: }
105: }
|