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.compapp.projects.jbi.api;
043:
044: import java.util.List;
045: import java.util.ArrayList;
046:
047: /**
048: * DOCUMENT ME!
049: *
050: * @author
051: * @version
052: */
053: public class JbiProjectConstants {
054:
055: /**
056: * jbiasa folder
057: */
058: public static final String FOLDER_JBIASA = "jbiasa"; // NOI18N
059:
060: /**
061: * jbiServiceUnits folder
062: */
063: public static final String FOLDER_JBISERVICEUNITS = "jbiServiceUnits"; // NOI18N
064:
065: /**
066: * jbiServiceUnits folder
067: */
068: public static final String FOLDER_JBIPROJECTS = "projs/caps"; // NOI18N
069:
070: /**
071: * Jbi package root sources type.
072: *
073: * @see org.netbeans.api.project.Sources
074: */
075: public static final String SOURCES_TYPE_JBI = "java"; // NOI18N
076:
077: /**
078: * Standard artifact type representing a JAR file, presumably used as a Java library of some
079: * kind.
080: *
081: * @see org.netbeans.api.project.ant.AntArtifact
082: */
083: public static final String ARTIFACT_TYPE_JBI_ASA = "CAPS.asa"; // NOI18N
084:
085: /**
086: * Standard artifact type representing a JAR file, presumably used as a Java library of some
087: * kind.
088: *
089: * @see org.netbeans.api.project.ant.AntArtifact
090: */
091: public static final String ARTIFACT_TYPE_JBI_AU = "CAPS.au"; // NOI18N
092:
093: /**
094: * Standard command for running Javadoc on a project.
095: *
096: * @see org.netbeans.spi.project.ActionProvider
097: */
098: public static final String COMMAND_JAVADOC = "javadoc"; // NOI18N
099:
100: /**
101: * Standard command for reloading a class in a foreign VM and continuing debugging.
102: *
103: * @see org.netbeans.spi.project.ActionProvider
104: */
105: public static final String COMMAND_DEBUG_FIX = "debug.fix"; // NOI18N
106:
107: /**
108: * DOCUMENT ME!
109: */
110: public static final String COMMAND_DEPLOY = "redeploy"; // NOI18N
111:
112: /**
113: * DOCUMENT ME!
114: */
115: public static final String COMMAND_REDEPLOY = "redeploy"; // NOI18N
116:
117: /**
118: * DOCUMENT ME!
119: */
120: public static final String COMMAND_UNDEPLOY = "undeploy"; // NOI18N
121:
122: /**
123: * DOCUMENT ME!
124: */
125: public static final String COMMAND_JBIBUILD = "jbiserver-build"; // NOI18N
126:
127: /**
128: * DOCUMENT ME!
129: */
130: public static final String COMMAND_JBICLEANCONFIG = "jbi-clean-config"; // NOI18N
131:
132: /**
133: * DOCUMENT ME!
134: */
135: public static final String COMMAND_JBICLEANBUILD = "jbiserver-clean_build"; // NOI18N
136:
137: /**
138: * DOCUMENT ME!
139: */
140: public static final String COMMAND_VALIDATEPORTMAPS = "validate-portmaps"; // NOI18N
141:
142: // Start Test Framework
143: /**
144: * DOCUMENT ME!
145: */
146: public static final String COMMAND_TEST = "test"; // NOI18N
147: public static final String COMMAND_TEST_SINGLE = "test-single"; // NOI18N
148: public static final String COMMAND_DEBUG_SINGLE = "debug-single"; // NOI18N
149: // End Test Framework
150:
151: public static final String SU_BUILD_ARTIFACT_RELATIVE_PATH = "build/SEDeployment.jar"; //NOI18N
152: // J2EE add-on...
153: public static final String JAVA_EE_SE_COMPONENT_NAME = "sun-javaee-engine"; // NOI18N
154: public static final String JAVA_EE_EAR_COMPONENT_ARCHIVE = "j2ee_ear_archive"; // NOI18N
155: public static final String JAVA_EE_EAR_ARCHIVE = "ear"; //NOI18N
156: public static final List<String> JAVA_EE_AA_TYPES = new ArrayList<String>();
157: static {
158: // For both EJB and Web Projects use the same target
159: JbiProjectConstants.JAVA_EE_AA_TYPES
160: .add(JAVA_EE_EAR_COMPONENT_ARCHIVE);
161: JbiProjectConstants.JAVA_EE_AA_TYPES.add(JAVA_EE_EAR_ARCHIVE);
162: };
163:
164: private JbiProjectConstants() {
165: }
166: }
|