01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 2004 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: * Initial developer: Florent BENOIT
22: * --------------------------------------------------------------------------
23: * $Id: JTouch.java 6896 2005-06-07 08:21:28Z pelletib $
24: * --------------------------------------------------------------------------
25: */package org.objectweb.jonas.ant.jonasbase;
26:
27: import java.io.File;
28:
29: import org.apache.tools.ant.taskdefs.Touch;
30:
31: /**
32: * Defines creation file task
33: * @author Benoit Pelletier
34: */
35: public class JTouch extends Touch implements BaseTaskItf {
36:
37: /**
38: * configuration file used
39: */
40: private String configurationFile = null;
41:
42: /**
43: * Information for the logger
44: */
45: private String logInfo = null;
46:
47: /**
48: * JONAS_ROOT directory
49: */
50: private File jonasRoot = null;
51:
52: /**
53: * Sets the configuration file
54: * @param configurationFile The configurationFile to set.
55: */
56: public void setConfigurationFile(String configurationFile) {
57: this .configurationFile = configurationFile;
58: }
59:
60: /**
61: * @param destDir The destDir to set.
62: */
63: public void setDestDir(File destDir) {
64: setFile(destDir);
65: }
66:
67: /**
68: * Gets logger info (to be displayed)
69: * @return logger info
70: * @see org.objectweb.jonas.ant.jonasbase.BaseTaskItf#getLogInfo()
71: */
72: public String getLogInfo() {
73: return logInfo;
74: }
75:
76: /**
77: * Set the info to be displayed by the logger
78: * @param logInfo information to be displayed
79: * @see org.objectweb.jonas.ant.jonasbase.BaseTaskItf#setLogInfo(java.lang.String)
80: */
81: public void setLogInfo(String logInfo) {
82: this .logInfo = logInfo;
83: }
84:
85: /**
86: * @param jonasRoot The jonasRoot directory
87: */
88: public void setJonasRoot(File jonasRoot) {
89: this .jonasRoot = jonasRoot;
90: }
91:
92: /**
93: * @return the jonasRoot.
94: */
95: protected File getJonasRoot() {
96: return jonasRoot;
97: }
98: }
|