KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > tools > ant > managers > JBIAntTaskAbstract


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2005 EBM Websourcing, http://www.ebmwebsourcing.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id: AntTaskJBI.java 09:01:14 ddesjardins $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.tools.ant.managers;
23
24 import org.apache.tools.ant.Task;
25
26 /**
27  * This class is used to give the main parameters of the Ant tasks
28  *
29  * @author ddesjardins - eBMWebsourcing
30  */

31 public abstract class JBIAntTaskAbstract extends Task {
32
33     /**
34      * Fail on error
35      */

36     protected String JavaDoc failOnError = "true";
37
38     /**
39      * Host jmx
40      */

41     protected String JavaDoc host = "localhost";
42
43     /**
44      * Password for security
45      */

46     protected String JavaDoc password = "";
47
48     /**
49      * Port jmx
50      */

51     protected String JavaDoc port = "8081";
52
53     /**
54      * User name for security
55      */

56     protected String JavaDoc username = "";
57
58     public void setFailOnError(String JavaDoc failOnError) {
59         this.failOnError = failOnError;
60     }
61
62     public void setHost(String JavaDoc host) {
63         this.host = host;
64     }
65
66     public void setPassword(String JavaDoc password) {
67         this.password = password;
68     }
69
70     public void setPort(String JavaDoc port) {
71         this.port = port;
72     }
73
74     public void setUsername(String JavaDoc username) {
75         this.username = username;
76     }
77
78 }
79
Popular Tags