Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/manifest.mfjet')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/manifest.mfjet53
1 files changed, 0 insertions, 53 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/manifest.mfjet b/plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/manifest.mfjet
deleted file mode 100644
index 8b9fd5290..000000000
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/manifest.mfjet
+++ /dev/null
@@ -1,53 +0,0 @@
-<%@ jet package="org.eclipse.gmf.graphdef.codegen.standalone.templates" class="ManifestMFGenerator"
- imports="java.util.* org.eclipse.gmf.graphdef.codegen.*"%>
-<%
-final Object[] passedArgs = (Object[]) argument;
-final StandaloneGenerator.Config config = (StandaloneGenerator.Config) passedArgs[0];
-final String[] requiredBundles = (String[]) passedArgs[1];
-
-
-class ListComposer {
- public String composeList(Collection strings){
- StringBuffer result = new StringBuffer();
- for (Iterator it = strings.iterator(); it.hasNext();){
- result.append(" "); //do not miss required space here
- result.append(it.next());
- if (it.hasNext()){
- result.append(", " + NL);
- }
- }
- return result.toString();
- }
-}
-
-final ListComposer listComposer = new ListComposer();
-%>
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: <%=config.getPluginID()%>; singleton:=true
-Bundle-Version: 1.0.0
-Bundle-Vendor: %providerName
-Bundle-Activator: <%=config.getPluginActivatorPackageName()%>.<%=config.getPluginActivatorClassName()%>
-Bundle-Localization: plugin
-<%
- HashSet exportedPackages = new HashSet();
- if (config.getMainPackageName() != null && config.getMainPackageName().trim().length() > 0) {
- exportedPackages.add(config.getMainPackageName());
- }
- exportedPackages.add(config.getPluginActivatorPackageName());
-%>
-Export-Package: <%=listComposer.composeList(exportedPackages)%>
-<%
-final Set allRequiredBundles = new LinkedHashSet();
-allRequiredBundles.add("org.eclipse.gef");
-allRequiredBundles.add("org.eclipse.draw2d");
-allRequiredBundles.add("org.eclipse.osgi");
-allRequiredBundles.add("org.eclipse.core.runtime");
-allRequiredBundles.addAll(java.util.Arrays.asList(requiredBundles));
-if (config.needsMapMode()) {
- allRequiredBundles.add("org.eclipse.gmf.runtime.draw2d.ui");
-}
-%>
-Require-Bundle: <%=listComposer.composeList(allRequiredBundles)%>
-Eclipse-LazyStart: true

Back to the top