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: JMkdir.java 6896 2005-06-07 08:21:28Z pelletib $
024: * --------------------------------------------------------------------------
025: */package org.objectweb.jonas.ant.jonasbase;
026:
027: import java.io.File;
028:
029: import org.apache.tools.ant.taskdefs.Mkdir;
030:
031: ;
032:
033: /**
034: * Defines creation directory task
035: * @author Benoit Pelletier
036: */
037: public class JMkdir extends Mkdir implements BaseTaskItf {
038:
039: /**
040: * configuration file used
041: */
042: private String configurationFile = null;
043:
044: /**
045: * Information for the logger
046: */
047: private String logInfo = null;
048:
049: /**
050: * JONAS_ROOT directory
051: */
052: private File jonasRoot = null;
053:
054: /**
055: * Sets the configuration file
056: * @param configurationFile The configurationFile to set.
057: */
058: public void setConfigurationFile(String configurationFile) {
059: this .configurationFile = configurationFile;
060: }
061:
062: /**
063: * @param destDir The destDir to set.
064: */
065: public void setDestDir(File destDir) {
066: setDir(destDir);
067: }
068:
069: /**
070: * Gets logger info (to be displayed)
071: * @return logger info
072: * @see org.objectweb.jonas.ant.jonasbase.BaseTaskItf#getLogInfo()
073: */
074: public String getLogInfo() {
075: return logInfo;
076: }
077:
078: /**
079: * Set the info to be displayed by the logger
080: * @param logInfo information to be displayed
081: * @see org.objectweb.jonas.ant.jonasbase.BaseTaskItf#setLogInfo(java.lang.String)
082: */
083: public void setLogInfo(String logInfo) {
084: this .logInfo = logInfo;
085: }
086:
087: /**
088: * @param jonasRoot The jonasRoot directory
089: */
090: public void setJonasRoot(File jonasRoot) {
091: this .jonasRoot = jonasRoot;
092: }
093:
094: /**
095: * @return the jonasRoot.
096: */
097: protected File getJonasRoot() {
098: return jonasRoot;
099: }
100: }
|