KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jdesktop > jdic > packager > impl > JnlpConstants


1 /*
2  * Copyright (C) 2004 Sun Microsystems, Inc. All rights reserved. Use is
3  * subject to license terms.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the Lesser GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18  * USA.
19  */

20
21 package org.jdesktop.jdic.packager.impl;
22
23 /**
24  * This constant interface keeps the constants used or shared by other classes.
25  */

26 public class JnlpConstants {
27     /**
28      * OS name for Linux.
29      */

30     public static final String JavaDoc OS_LINUX = "linux";
31     /**
32      * OS name for Solaris.
33      */

34     public static final String JavaDoc OS_SOLARIS = "sunos";
35     /**
36      * OS name for Windows.
37      */

38     public static final String JavaDoc OS_WINDOWS = "windows";
39
40     /**
41      * Default jnlp file extension.
42      */

43     public static final String JavaDoc JNLPFILE_EXTENSION = ".jnlp";
44
45     /**
46      * Default installation base location of license files on Unix.
47      * On Unix, if the user specified license files in command line,
48      * it will be installed under below parent path in the machine.
49      */

50     public static final String JavaDoc LICENSE_INSTALLATION_BASE_PATH =
51         "/usr/share/lib/javaws/licenses";
52
53     /**
54      * The resource directory.
55      */

56     public static final String JavaDoc PROPERTY_NAME_RESOURCEDIR
57         = "ResourceDir";
58     /**
59      * The package name.
60      */

61     public static final String JavaDoc PROPERTY_NAME_PACKAGENAME
62         = "PackageName";
63     /**
64      * The output directory.
65      */

66     public static final String JavaDoc PROPERTY_NAME_OUTPUTDIR
67         = "OutputDir";
68     /**
69      * The version number.
70      */

71     public static final String JavaDoc PROPERTY_NAME_VERSIONNO
72         = "Version";
73     /**
74      * The release number.
75      */

76     public static final String JavaDoc PROPERTY_NAME_RELEASENO
77         = "Release";
78     /**
79      * The license directory.
80      */

81     public static final String JavaDoc PROPERTY_NAME_LICENSEDIR
82         = "LicenseDir";
83     /**
84      * The banner jpeg file.
85      */

86     public static final String JavaDoc PROPERTY_NAME_BANNERJPGFILE
87         = "BannerJpgFile";
88     /**
89      * The panel jpeg file.
90      */

91     public static final String JavaDoc PROPERTY_NAME_PANELJPGFILE
92         = "PanelJpgFile";
93     /**
94      * The Microsoft SDK update directory.
95      */

96     public static final String JavaDoc PROPERTY_NAME_MS_SDK_PATH
97         = "MSSDKDir";
98     /**
99      * Specify whether a shortcut should be created after the installation.
100      */

101     public static final String JavaDoc PROPERTY_NAME_ENABLESHORTCUT
102         = "EnableShortcut";
103     /**
104      * Specify whether to create an association after the installation.
105      */

106     public static final String JavaDoc PROPERTY_NAME_ENABLEASSOCIATION
107         = "EnableAssociation";
108     /**
109      * Specify whether to install the JNLP application into system cache.
110      */

111     public static final String JavaDoc PROPERTY_NAME_ENABLESYSTEMCACHE
112         = "EnableSystemCache";
113     /**
114      * The relevant path for UISample.msi within Microsoft SDK update dir.
115      */

116     public static final String JavaDoc HIERACHY_TO_RAW_MSI
117         = "Samples\\SysMgmt\\msi\\database\\UISample.Msi";
118     /**
119      * The relevant path for the localization resource with Microsoft SDK
120      * update directory.
121      */

122     public static final String JavaDoc HIERACHY_TO_INTL
123         = "Samples\\SysMgmt\\msi\\database\\INTL";
124
125     // Information fields to be parsed in given jnlp file.
126
/**
127      * The codebase field of the JNLP file.
128      */

129     public static final String JavaDoc JNLP_FIELD_CODEBASE = "codebase";
130     /**
131      * The description field of the JNLP file.
132      */

133     public static final String JavaDoc JNLP_FIELD_DESCRIPTION = "description";
134     /**
135      * The title field of the JNLP file.
136      */

137     public static final String JavaDoc JNLP_FIELD_TITLE = "title";
138     /**
139      * The vendor field of the JNLP file.
140      */

141     public static final String JavaDoc JNLP_FIELD_VENDOR = "vendor";
142     /**
143      * The pesudo license field of the JNLP file.
144      * Note: There are no license tag defination for Jnlp files, we just
145      * create such pesudo field for easy operation.
146      */

147     public static final String JavaDoc JNLP_FIELD_LICENSE = "license";
148
149     // Locale Index for English Locale
150
/**
151      * English locale index.
152      */

153     public static final int LOCALE_EN = 0;
154     /**
155      * Localization locale list.
156      */

157     public static final String JavaDoc[] LOCALES = {
158         "en", "zh_CN", "ja", "zh_TW", "fr", "de", "it", "ko", "es", "sv"};
159     /**
160      * Corresponding localization file postfix for Microsoft lolizazation
161      * resource files (Action Text and Error table).
162      */

163     public static final String JavaDoc[] LOCALES_SUFFIX = {
164         "", "CHS", "JPN", "CHT", "FRA", "DEU", "ITA", "KOR", "ESN", "SVE"};
165     /**
166      * Block size for one time tranportation.
167      */

168     public static final int FILE_COPY_BLOCK_SIZE = 1024;
169     /**
170      * Default version number.
171      */

172     public static final String JavaDoc DEFAULT_VERSION_NUM = "1.0";
173     /**
174      * Default release number.
175      */

176     public static final String JavaDoc DEFAULT_RELEASE_NUM = "1";
177 }
178
Popular Tags