01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999-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(s): Florent BENOIT & Ludovic BERT
22: * --------------------------------------------------------------------------
23: * $Id: LogEntry.java 5141 2004-07-16 13:57:50Z benoitf $
24: * --------------------------------------------------------------------------
25: */package org.objectweb.jonas_lib.deployment.work;
26:
27: //import java
28: import java.io.File;
29:
30: /**
31: * Class wich represent an entry in a log file : a original associate with its
32: * work copy
33: * @author Florent Benoit
34: * @author Ludovic Bert
35: * @author Benoit PELLETIER
36: */
37: public class LogEntry {
38:
39: /**
40: * The original file
41: */
42: private File original = null;
43:
44: /**
45: * The copy file / directory
46: */
47: private File copy = null;
48:
49: /**
50: * Constructor of a log entry.
51: * @param original the file to copy
52: * @param copy name of the copy
53: */
54: public LogEntry(File original, File copy) {
55: super ();
56: this .original = original;
57: this .copy = copy;
58: }
59:
60: /**
61: * Return the ear file of this ear log entry.
62: * @return the ear file of this ear log entry.
63: */
64: public File getOriginal() {
65: return original;
66: }
67:
68: /**
69: * Return the unpacked directory.
70: * @return the unpacked directory.
71: */
72: public File getCopy() {
73: return copy;
74: }
75:
76: }
|