001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package org.netbeans.modules.visualweb.project.jsf.api;
043:
044: /** Constants used for JSF projects
045: *
046: * @author dey
047: */
048: public class JsfProjectConstants {
049:
050: private JsfProjectConstants() {
051: }
052:
053: /**
054: * JSF Project version produced by this release
055: */
056: public static final String CURRENT_JSF_PROJECT_VERSION = "2.0"; // NOI18N
057:
058: /**
059: * JSF Project version prior to Thresher (imported project)
060: */
061: public static final String REEF_JSF_PROJECT_VERSION = "1.0"; // NOI18N
062:
063: /**
064: * Document root (source folders for JSPs, HTML ...)
065: */
066: public static final String PATH_DOC_ROOT = "web"; // NOI18N
067:
068: /**
069: * Resources folder
070: */
071: public static final String PATH_RESOURCES = "web/resources"; // NOI18N
072:
073: /**
074: * WEB-INF folder
075: */
076: public static final String PATH_WEB_INF = "web/WEB-INF"; // NOI18N
077:
078: /**
079: * Libraries folder
080: */
081: public static final String PATH_LIBRARIES = "lib"; // NOI18N
082:
083: /**
084: * Source structures
085: */
086: public static final String WEB_DOCBASE_DIR = "web.docbase.dir"; // NOI18N
087: public static final String SRC_DIR = "src.dir"; // NOI18N
088: public static final String SRC_STRUCT_BLUEPRINTS = "BluePrints"; // NOI18N
089: public static final String SRC_STRUCT_JAKARTA = "Jakarta"; // NOI18N
090:
091: /**
092: * Page bean property
093: */
094: public final static String PROP_JSF_PAGEBEAN_PACKAGE = "jsf.pagebean.package"; // NOI18N
095:
096: /**
097: * Context path
098: */
099: public static final String PROP_CONTEXT_PATH = "jsf.contextPath"; // NOI18N
100:
101: /**
102: * Start Page
103: */
104: public static final String PROP_START_PAGE = "jsf.startPage"; // NOI18N
105:
106: /**
107: * Project version
108: */
109: public static final String PROP_JSF_PROJECT_VERSION = "jsf.project.version"; // NOI18N
110:
111: /**
112: * Project libraries
113: */
114: public static final String PROP_JSF_PROJECT_LIBRARIES_DIR = "jsf.project.libraries.dir"; // NOI18N
115:
116: /**
117: * Current theme
118: */
119: public static final String PROP_CURRENT_THEME = "jsf.current.theme"; // NOI18N
120:
121: /**
122: * Special No-Start-Page
123: */
124: public final static String NO_START_PAGE = "__no_start_page__"; // NOI18N
125:
126: /**
127: * Document root root sources type (source folders for JSPs, HTML ...)
128: * @see org.netbeans.api.project.Sources
129: */
130: public static final String TYPE_DOC_ROOT = "doc_root"; // NOI18N
131:
132: /**
133: * This property is needed for template manipulation
134: * BEFORE the project is created.
135: * -David Botterill 5/19/2005
136: */
137: public static final String PROJECT_SUPPORTS_PORTLETS = "project.supports.portlets"; // NO18N
138:
139: /**
140: * This property is needed for portal server deployment
141: * - David Botterill 7/27/2005
142: */
143: public static final String PORTLET_NAME = "portlet.name"; // NO18N
144:
145: /**
146: * This property is needed for portal server deployment
147: * - David Botterill 8//32005
148: */
149: public static final String PORTLET_CONTEXTPATH = "portlet.context_path"; // NO18N
150:
151: /**
152: * Filesystem boilerplate to use for creating user JSF project templates
153: */
154: public static final String USER_TEMPLATE_FS_BOILERPLATE = "org-netbeans-modules-visualweb-project-jsf-template/boilerplate"; // NO18N
155:
156: /**
157: * Filesystem root folder for creating user JSF project templates
158: */
159: public static final String USER_TEMPLATE_FS_ROOT = "Templates/Project/MyTemplates"; // NO18N
160:
161: /**
162: * File attribute tag for the template path
163: */
164: public static final String USER_TEMPLATE_DIR_TAG = "templateDir"; // NO18N
165:
166: }
|