001: /*******************************************************************************
002: * Copyright (c) 2000, 2006 IBM Corporation and others.
003: * All rights reserved. This program and the accompanying materials
004: * are made available under the terms of the Eclipse Public License v1.0
005: * which accompanies this distribution, and is available at
006: * http://www.eclipse.org/legal/epl-v10.html
007: *
008: * Contributors:
009: * IBM - Initial API and implementation
010: *******************************************************************************/package org.eclipse.pde.internal.build;
011:
012: /**
013: * Generic constants for this plug-in classes.
014: */
015: public interface IPDEBuildConstants {
016:
017: /** PDE Core plug-in id */
018: public static final String PI_BOOT = "org.eclipse.core.boot"; //$NON-NLS-1$
019: public static final String PI_BOOT_JAR_NAME = "boot.jar"; //$NON-NLS-1$
020: public static final String PI_PDEBUILD = "org.eclipse.pde.build"; //$NON-NLS-1$
021: public static final String PI_RUNTIME = "org.eclipse.core.runtime"; //$NON-NLS-1$
022: public static final String PI_RUNTIME_JAR_NAME = "runtime.jar"; //$NON-NLS-1$
023:
024: /** file names */
025: public final static String PROPERTIES_FILE = "build.properties"; //$NON-NLS-1$
026: public final static String PERMISSIONS_FILE = "permissions.properties"; //$NON-NLS-1$
027: public final static String ABOUT_HTML_FILE = "about.html"; //$NON-NLS-1$
028: public final static String FEATURE_PROPERTIES_FILE = "feature.properties"; //$NON-NLS-1$
029: public final static String SOURCE_PLUGIN_ATTRIBUTE = "sourcePlugin"; //$NON-NLS-1$
030: public final static String MANIFEST_FOLDER = "META-INF"; //$NON-NLS-1$
031: public final static String MANIFEST = "MANIFEST.MF"; //$NON-NLS-1$
032:
033: // default values
034: public final static String DEFAULT_BUILD_SCRIPT_FILENAME = "build.xml"; //$NON-NLS-1$
035: public final static String DEFAULT_FEATURE_LOCATION = "features"; //$NON-NLS-1$
036: public final static String DEFAULT_FETCH_SCRIPT_FILENAME = "fetch.xml"; //$NON-NLS-1$
037: public final static String DEFAULT_ASSEMBLE_FILENAME = "assemble.xml"; //$NON-NLS-1$
038: public final static String DEFAULT_PLUGIN_LOCATION = "plugins"; //$NON-NLS-1$
039: public final static String DEFAULT_TEMPLATE_SCRIPT_FILENAME = "template.xml"; //$NON-NLS-1$
040: public final static String GENERIC_VERSION_NUMBER = "0.0.0"; //$NON-NLS-1$
041: public final static String ANY_STRING = "ANY"; //$NON-NLS-1$
042: public final static String DEFAULT_ASSEMBLE_NAME = "assemble"; //$NON-NLS-1$
043: public final static String DEFAULT_ASSEMBLE_ALL = "all.xml"; //$NON-NLS-1$
044: public final static String DEFAULT_CUSTOM_TARGETS = "customTargets"; //$NON-NLS-1$
045: public final static String DEFAULT_RETRIEVE_FILENAME_DESCRIPTOR = "retrieve.xml"; //$NON-NLS-1$
046: public final static String DEFAULT_ISV_DOC_PLUGIN_SUFFIX = "doc.isv"; //$NON-NLS-1$
047: public final static String DEFAULT_SOURCE_PLUGIN_SUFFIX = "source"; //$NON-NLS-1$
048: public final static String DEFAULT_PACKAGER_DIRECTORY_FILENAME_DESCRIPTOR = "packager.directory.txt"; //$NON-NLS-1$
049: public final static String DEFAULT_UNZIPPER_FILENAME_DESCRIPTOR = "unzipper.xml"; //$NON-NLS-1$
050: public final static String DEFAULT_PLUGIN_REPOTAG_FILENAME_DESCRIPTOR = "pluginVersions.properties"; //$NON-NLS-1$
051: public final static String DEFAULT_FEATURE_REPOTAG_FILENAME_DESCRIPTOR = "featureVersions.properties"; //$NON-NLS-1$
052: public final static String DEFAULT_PLUGINS_POSTPROCESSINGSTEPS_FILENAME_DESCRIPTOR = "plugins.postProcessingSteps.properties"; //$NON-NLS-1$
053: public final static String DEFAULT_FEATURES_POSTPROCESSINGSTEPS_FILENAME_DESCRIPTOR = "features.postProcessingSteps.properties"; //$NON-NLS-1$
054: public final static String DEFAULT_CUSTOM_BUILD_CALLBACKS_FILE = "customBuildCallbacks.xml"; //$NON-NLS-1$
055: public final static String DEFAULT_PRODUCT_ROOT_FILES_DIR = "productRootFiles"; //$NON-NLS-1$
056:
057: public final static String DEFAULT_PLUGIN_VERSION_FILENAME_PREFIX = "finalPluginsVersions"; //$NON-NLS-1$
058: public final static String DEFAULT_FEATURE_VERSION_FILENAME_PREFIX = "finalFeaturesVersions"; //$NON-NLS-1$
059: public final static String PROPERTIES_FILE_SUFFIX = ".properties"; //$NON-NLS-1$
060:
061: // Tag replaced in files
062: public final static String REPLACED_PLUGIN_ID = "PLUGIN_ID"; //$NON-NLS-1$
063: public final static String REPLACED_PLUGIN_VERSION = "PLUGIN_VERSION"; //$NON-NLS-1$
064: public final static String REPLACED_FRAGMENT_VERSION = "FRAGMENT_VERSION"; //$NON-NLS-1$
065: public final static String REPLACED_FRAGMENT_ID = "FRAGMENT_ID"; //$NON-NLS-1$
066: public final static String REPLACED_PLATFORM_FILTER = "PLATFORM_FILTER"; //$NON-NLS-1$
067:
068: // status constants
069: public final static int EXCEPTION_FEATURE_MISSING = 1;
070: public final static int EXCEPTION_BUILDDIRECTORY_LOCATION_MISSING = 2;
071: public final static int EXCEPTION_MALFORMED_URL = 3;
072: public final static int EXCEPTION_MODEL_PARSE = 4;
073: public final static int EXCEPTION_PLUGIN_MISSING = 5;
074: public final static int EXCEPTION_READ_DIRECTORY = 6;
075: public final static int EXCEPTION_WRITING_SCRIPT = 7;
076: public final static int EXCEPTION_ELEMENT_MISSING = 8;
077: public final static int EXCEPTION_ENTRY_MISSING = 9;
078: public final static int EXCEPTION_READING_FILE = 10;
079: public final static int EXCEPTION_SOURCE_LOCATION_MISSING = 11;
080: public final static int EXCEPTION_WRITING_FILE = 12;
081: public final static int EXCEPTION_INVALID_JAR_ORDER = 13;
082: public final static int EXCEPTION_CLASSPATH_CYCLE = 14;
083: public final static int EXCEPTION_STATE_PROBLEM = 15;
084: public final static int EXCEPTION_GENERIC = 16;
085: public final static int EXCEPTION_FEATURE_PARSE = 17;
086: public final static int WARNING_MISSING_SOURCE = 20;
087: public final static int WARNING_ELEMENT_NOT_FETCHED = 21;
088: public final static int EXCEPTION_CONFIG_FORMAT = 22;
089: public final static int EXCEPTION_PRODUCT_FORMAT = 23;
090: public final static int EXCEPTION_PRODUCT_FILE = 24;
091: public final static int WARNING_PLUGIN_ALTERED = 25;
092:
093: //User object keys. BundleDescription.getUserObject()
094: public final static String IS_COMPILED = "isCompiler"; //$NON-NLS-1$
095: public final static String PLUGIN_ENTRY = "pluginEntry"; //$NON-NLS-1$
096: public final static String WITH_DOT = "withDot"; //$NON-NLS-1$
097:
098: //Filter properties
099: public final static String OSGI_WS = "osgi.ws"; //$NON-NLS-1$
100: public final static String OSGI_OS = "osgi.os"; //$NON-NLS-1$
101: public final static String OSGI_ARCH = "osgi.arch"; //$NON-NLS-1$
102: public final static String OSGI_NL = "osgi.nl"; //$NON-NLS-1$
103:
104: //Eclipse specific manifest headers
105: public final static String EXTENSIBLE_API = "Eclipse-ExtensibleAPI"; //$NON-NLS-1$
106: public final static String PATCH_FRAGMENT = "Eclipse-PatchFragment"; //$NON-NLS-1$
107:
108: // fetch task extension point
109: public final static String EXT_FETCH_TASK_FACTORIES = "org.eclipse.pde.build.fetchFactories"; //$NON-NLS-1$
110: public final static String ATTR_ID = "id"; //$NON-NLS-1$
111: public final static String ATTR_CLASS = "class"; //$NON-NLS-1$
112: public final static String ELEM_FACTORY = "factory"; //$NON-NLS-1$
113:
114: //container feature used in building .product files
115: public final static String CONTAINER_FEATURE = "org.eclipse.pde.build.container.feature"; //$NON-NLS-1$
116: }
|