root / import / ext3D / trunk / install-extension3d / IzPack / src / lib / com / izforge / izpack / UpdateCheck.java @ 15280
History | View | Annotate | Download (2.59 KB)
1 |
/*
|
---|---|
2 |
* $Id: UpdateCheck.java,v 1.1 2006/06/14 07:29:07 cesar Exp $
|
3 |
* IzPack
|
4 |
* Copyright (C) 2001 Johannes Lehtinen
|
5 |
*
|
6 |
* File : Pack.java
|
7 |
* Description : Contains informations about a pack file.
|
8 |
* Author's email : johannes.lehtinen@iki.fi
|
9 |
* Author's Website : http://www.iki.fi/jle/
|
10 |
*
|
11 |
* This program is free software; you can redistribute it and/or
|
12 |
* modify it under the terms of the GNU General Public License
|
13 |
* as published by the Free Software Foundation; either version 2
|
14 |
* of the License, or any later version.
|
15 |
*
|
16 |
* This program is distributed in the hope that it will be useful,
|
17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
19 |
* GNU General Public License for more details.
|
20 |
*
|
21 |
* You should have received a copy of the GNU General Public License
|
22 |
* along with this program; if not, write to the Free Software
|
23 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
24 |
*/
|
25 |
package com.izforge.izpack; |
26 |
|
27 |
import java.io.Serializable; |
28 |
import java.util.ArrayList; |
29 |
|
30 |
/**
|
31 |
* Encloses information about an update check.
|
32 |
*
|
33 |
* @author Tino Schwarze <tino.schwarze@community4you.de>
|
34 |
*/
|
35 |
public class UpdateCheck implements Serializable |
36 |
{ |
37 |
/** ant-fileset-like list of include patterns, based on INSTALL_PATH if relative */
|
38 |
public ArrayList includesList = null; |
39 |
|
40 |
/** ant-fileset-like list of exclude patterns, based on INSTALL_PATH if relative */
|
41 |
public ArrayList excludesList = null; |
42 |
|
43 |
/** Whether pattern matching is performed case-sensitive */
|
44 |
boolean caseSensitive = true; |
45 |
|
46 |
/** Constructs a new uninitialized instance. */
|
47 |
public UpdateCheck() { }
|
48 |
|
49 |
/**
|
50 |
* Constructs and initializes a new instance.
|
51 |
*
|
52 |
* @param includes The patterns to include in the check.
|
53 |
* @param excludes The patterns to exclude from the check.
|
54 |
*/
|
55 |
public UpdateCheck(ArrayList includes, ArrayList excludes) |
56 |
{ |
57 |
this.includesList = includes;
|
58 |
this.excludesList = excludes;
|
59 |
} |
60 |
|
61 |
/**
|
62 |
* Constructs and initializes a new instance.
|
63 |
*
|
64 |
* @param includes The patterns to include in the check.
|
65 |
* @param excludes The patterns to exclude from the check.
|
66 |
* @param casesensitive If "yes", matches are performed case sensitive.
|
67 |
*/
|
68 |
public UpdateCheck(ArrayList includes, ArrayList excludes, String casesensitive) |
69 |
{ |
70 |
this.includesList = includes;
|
71 |
this.excludesList = excludes;
|
72 |
this.caseSensitive = ((casesensitive != null) && casesensitive.equalsIgnoreCase("yes")); |
73 |
} |
74 |
|
75 |
} |
76 |
|