Author: snjeza
Date: 2008-11-11 17:42:53 -0500 (Tue, 11 Nov 2008)
New Revision: 11690
Added:
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/.classpath
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/.project
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/META-INF/
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/META-INF/MANIFEST.MF
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/build.properties
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/config_jbds.ini
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/config_pde.ini
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/jboss.csv
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/jboss.xslt
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/src/
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/src/org/
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/src/org/jboss/
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/src/org/jboss/tools/
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/src/org/jboss/tools/equinox/
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/src/org/jboss/tools/equinox/transforms/
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/src/org/jboss/tools/equinox/transforms/xslt/
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/src/org/jboss/tools/equinox/transforms/xslt/Activator.java
Log:
Initial import.
Added: trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/.classpath
===================================================================
--- trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/.classpath
(rev 0)
+++ trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/.classpath 2008-11-11
22:42:53 UTC (rev 11690)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/.project
===================================================================
--- trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/.project
(rev 0)
+++ trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/.project 2008-11-11
22:42:53 UTC (rev 11690)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.equinox.transforms.xslt</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/META-INF/MANIFEST.MF
===================================================================
--- trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/META-INF/MANIFEST.MF 2008-11-11
22:42:53 UTC (rev 11690)
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: JBoss xslt transforms
+Bundle-SymbolicName: org.jboss.tools.equinox.transforms.xslt
+Bundle-Version: 1.0.0
+Bundle-Activator: org.jboss.tools.equinox.transforms.xslt.Activator
+Import-Package: org.osgi.framework
+Bundle-ActivationPolicy: lazy
+Eclipse-LazyStart: true
+Export-Package: org.jboss.tools.equinox.transforms.xslt
+Bundle-Vendor: JBoss, a division of Red Hat
+
Added: trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/build.properties
===================================================================
--- trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/build.properties
(rev 0)
+++ trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/build.properties 2008-11-11
22:42:53 UTC (rev 11690)
@@ -0,0 +1,8 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ jboss.xslt,\
+ jboss.csv,\
+ config_pde.ini,\
+ config_jbds.ini
Added: trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/config_jbds.ini
===================================================================
--- trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/config_jbds.ini
(rev 0)
+++ trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/config_jbds.ini 2008-11-11
22:42:53 UTC (rev 11690)
@@ -0,0 +1,16 @@
+#This configuration file was written by:
org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
+#Tue Nov 11 22:47:20 CET 2008
+osgi.launcherPath=.
+org.eclipse.update.reconcile=false
+eclipse.p2.profile=SDKProfile
+osgi.instance.area.default=(a)user.home/workspace
+osgi.framework=file\:plugins\\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
+eclipse.buildId=M20080911-1700
+osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1\:start,org.eclipse.equinox.transforms.xslt@1\:start,org.jboss.tools.equinox.transforms.xslt@1\:start
+org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator\\bundles.info
+eclipse.product=com.jboss.jbds.product.product
+osgi.splashPath=platform\:/base/plugins/com.jboss.jbds.product
+osgi.launcherIni=eclipse
+eclipse.p2.data.area=@config.dir/../p2
+osgi.bundles.defaultStartLevel=4
+osgi.framework.extensions=org.eclipse.equinox.transforms.hook
Added: trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/config_pde.ini
===================================================================
--- trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/config_pde.ini
(rev 0)
+++ trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/config_pde.ini 2008-11-11
22:42:53 UTC (rev 11690)
@@ -0,0 +1,6 @@
+osgi.bundles=org.eclipse.equinox.common@2\:start,org.eclipse.update.configurator@3\:start,org.eclipse.core.runtime@start,org.eclipse.equinox.transforms.xslt@1:\start,org.jboss.tools.equinox.transforms.xslt@1:\start
+osgi.bundles.defaultStartLevel=4
+osgi.framework=org.eclipse.osgi
+osgi.configuration.cascaded=false
+osgi.splashPath=org.eclipse.platform
+osgi.framework.extensions=org.eclipse.equinox.transforms.hook
\ No newline at end of file
Added: trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/jboss.csv
===================================================================
--- trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/jboss.csv
(rev 0)
+++ trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/jboss.csv 2008-11-11
22:42:53 UTC (rev 11690)
@@ -0,0 +1,2 @@
+#Bundle ID regex, Resource Path regex, resource path
+org\.eclipse\.jst\.server\.generic\.jboss,plugin\.xml,/jboss.xslt
Added: trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/jboss.xslt
===================================================================
--- trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/jboss.xslt
(rev 0)
+++ trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/jboss.xslt 2008-11-11
22:42:53 UTC (rev 11690)
@@ -0,0 +1,6 @@
+ <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template match="plugin">
+
+ </xsl:template>
+
+ </xsl:stylesheet>
\ No newline at end of file
Added:
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/src/org/jboss/tools/equinox/transforms/xslt/Activator.java
===================================================================
---
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/src/org/jboss/tools/equinox/transforms/xslt/Activator.java
(rev 0)
+++
trunk/xslt/plugins/org.jboss.tools.equinox.transforms.xslt/src/org/jboss/tools/equinox/transforms/xslt/Activator.java 2008-11-11
22:42:53 UTC (rev 11690)
@@ -0,0 +1,36 @@
+package org.jboss.tools.equinox.transforms.xslt;
+
+import java.net.URL;
+import java.util.Properties;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator implements BundleActivator {
+
+ private ServiceRegistration registration;
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ Properties properties = new Properties();
+ properties.put("equinox.transformerType", "xslt"); //$NON-NLS-1$
//$NON-NLS-2$
+ registration = context.registerService(URL.class.getName(),
context.getBundle().getEntry("/jboss.csv"), properties); //$NON-NLS-1$
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ if (registration != null)
+ registration.unregister();
+ }
+
+}