KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > invicta > InvictaConstants


1 package net.sf.invicta;
2
3 /**
4  * A repository of common constants used by various
5  * classed of Invicta.
6  */

7 public class InvictaConstants {
8
9     // Name of the system property that specifies where debug messages
10
// should be displayed.
11
public static String JavaDoc DEBUG_SYSTEM_PROPERTY = "invicta.debug";
12
13     // Delimiter between items of a string with comma-separated list.
14
public static String JavaDoc LIST_DELIMITER = ",";
15     
16     // Prefix and suffix of a reference to a property in a propery value.
17
public final static String JavaDoc PROPERTY_VARIABLE_PREFIX = "${";
18     public final static String JavaDoc PROPERTY_VARIABLE_SUFFIX = "}";
19     
20     // Default name of properties file.
21
public final static String JavaDoc DEFAULT_PROPERTIES_FILE = "invicta.properties";
22     
23     // Name of the optional property of the properties file name.
24
public final static String JavaDoc PROPERTIES_FILE_NAME_PROPERTY =
25         "invicta.properties.file";
26         
27     // Default name of the output properties file (used for comparing in the
28
// next Invicta execution).
29
public final static String JavaDoc DEFAULT_OUTPUT_PROPERTIES_FILE =
30         ".invicta.output.properties";
31
32     // Name of the optional property of the output properties file name.
33
public final static String JavaDoc OUTPUT_PROPERTIES_FILE_NAME_PROPERTY =
34         "invicta.output.properties.file";
35
36     // Property name of the list of project definition locations.
37
public final static String JavaDoc PROPERTY_DEFINITION_LIST =
38         "invicta.definition.locations";
39     
40     // Property name of the list of type definition locations.
41
public final static String JavaDoc PROPERTY_TYPE_LIST =
42         "invicta.type.locations";
43
44     // Name of the optional property of forcing Invicta processing (even if no
45
// settings were changed).
46
public final static String JavaDoc PROPERTY_FORCE_RUN =
47         "invicta.force.run";
48
49     // Name of the optional property of Invicta Jar file, that is used for
50
// regonizing a change of Invicta version that should force processing.
51
public final static String JavaDoc PROPERTY_JAR_FILE =
52         "invicta.jar.file";
53
54     // Name of the output property of the timestamp of Invicta Jar file.
55
public final static String JavaDoc OUTPUT_PROPERTY_JAR_FILE =
56         ".invicta.output.jar.file";
57
58     // Name (and prefix) of the output property of the names and timestamps
59
// of all project definition files.
60
public final static String JavaDoc OUTPUT_PROPERTY_DEFINITION_FILES =
61         ".invicta.output.definition.files";
62         
63     // Name (and prefix) of the output property of the names and timestamps
64
// of all project definition files.
65
public final static String JavaDoc OUTPUT_PROPERTY_TYPE_FILES =
66         ".invicta.output.type.files";
67     
68     // A separator between words of the key (name) of an Invicta property.
69
public final static String JavaDoc PROPERTY_SEPARATOR = ".";
70
71     // The file extension of type or project definition files that should
72
// be search in a destination location.
73
public final static String JavaDoc DEFINITION_FILE_EXTENSION = ".xml";
74     
75     // A 'high' value that is used for recognizing a recursion loop
76
// caused by a cycle of dependencies.
77
public final static int MAX_RESOLVE_LEVEL = 1000;
78
79     // Delimiter between dependency items in the depends attribute of an
80
// ANT target (template).
81
public final static String JavaDoc DEPEND_LIST_DELIMITER = ",";
82     
83     // A delimiter between words of an ANT target (template).
84
public final static String JavaDoc TARGET_DELIMITER = ".";
85     
86     // Prefix of a call to a template handler, used for recognizing that
87
// a dependency of a target template is a call to a handler and not
88
// an actual local target name.
89
public final static String JavaDoc TARGET_DEPENDENCY_SPECIAL_PREFIX = "%";
90     
91     public final static String JavaDoc COMPONENT_NAME_TEMPLATE = "%{componentName}";
92     
93     // Prefix and suffix of an ANT property.
94
public final static String JavaDoc ANT_PROPERTY_PREFIX = "${";
95     public final static String JavaDoc ANT_PROPERTY_SUFFIX = "}";
96
97     // A separator between words in the key of an ANT property.
98
public final static String JavaDoc ANT_PROPERTY_SEPARATOR = ".";
99
100     // Name of properties of a type definition that specify the default
101
// relative directories of a compnent where its products are located or distributed.
102
public final static String JavaDoc PRODUCT_DIR_PROPERTY = "product.dir";
103     public final static String JavaDoc DIST_PRODUCT_DIR_PROPERTY = "dist.product.dir";
104     
105     public final static String JavaDoc DEFAULT_LIBRARIES_TYPE = "Libraries";
106     public static final String JavaDoc DEFAULT_GLOBAL_COMPONENT_TYPE = "Global";
107     public static final String JavaDoc DEFAULT_GLOBAL_COMPONENT_NAME = ".global";
108
109     public final static String JavaDoc FILE_SEPARATOR = "/";
110     public final static char FILE_SEPARATOR_CHAR = '/';
111 }
112
Popular Tags