KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > ant > jonasbase > JTouch


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 2004 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * 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,v 1.1 2005/06/07 08:21:27 pelletib Exp $
24  * --------------------------------------------------------------------------
25  */

26
27 package org.objectweb.jonas.ant.jonasbase;
28
29 import java.io.File JavaDoc;
30
31 import org.apache.tools.ant.taskdefs.Touch;
32
33 /**
34  * Defines creation file task
35  * @author Benoit Pelletier
36  */

37 public class JTouch extends Touch implements BaseTaskItf {
38
39     /**
40      * configuration file used
41      */

42     private String JavaDoc configurationFile = null;
43
44     /**
45      * Information for the logger
46      */

47     private String JavaDoc logInfo = null;
48
49     /**
50      * JONAS_ROOT directory
51      */

52     private File JavaDoc jonasRoot = null;
53
54     /**
55      * Sets the configuration file
56      * @param configurationFile The configurationFile to set.
57      */

58     public void setConfigurationFile(String JavaDoc configurationFile) {
59         this.configurationFile = configurationFile;
60     }
61
62     /**
63      * @param destDir The destDir to set.
64      */

65     public void setDestDir(File JavaDoc destDir) {
66         setFile(destDir);
67     }
68
69     /**
70      * Gets logger info (to be displayed)
71      * @return logger info
72      * @see org.objectweb.jonas.ant.jonasbase.BaseTaskItf#getLogInfo()
73      */

74     public String JavaDoc getLogInfo() {
75         return logInfo;
76     }
77
78     /**
79      * Set the info to be displayed by the logger
80      * @param logInfo information to be displayed
81      * @see org.objectweb.jonas.ant.jonasbase.BaseTaskItf#setLogInfo(java.lang.String)
82      */

83     public void setLogInfo(String JavaDoc logInfo) {
84         this.logInfo = logInfo;
85     }
86
87     /**
88      * @param jonasRoot The jonasRoot directory
89      */

90     public void setJonasRoot(File JavaDoc jonasRoot) {
91         this.jonasRoot = jonasRoot;
92     }
93
94     /**
95      * @return the jonasRoot.
96      */

97     protected File JavaDoc getJonasRoot() {
98         return jonasRoot;
99     }
100 }
Popular Tags