Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'transforms/org.eclipse.jet.transforms.newproject/templates')
-rw-r--r--transforms/org.eclipse.jet.transforms.newproject/templates/control.jet9
-rw-r--r--transforms/org.eclipse.jet.transforms.newproject/templates/createBasicProject.jet48
-rw-r--r--transforms/org.eclipse.jet.transforms.newproject/templates/createExtendedProject.jet0
-rw-r--r--transforms/org.eclipse.jet.transforms.newproject/templates/dump.jet2
-rw-r--r--transforms/org.eclipse.jet.transforms.newproject/templates/project/build.properties.jet10
-rw-r--r--transforms/org.eclipse.jet.transforms.newproject/templates/project/classpath.jet8
-rw-r--r--transforms/org.eclipse.jet.transforms.newproject/templates/project/control.jet.jet33
-rw-r--r--transforms/org.eclipse.jet.transforms.newproject/templates/project/dump.jet.jet3
-rw-r--r--transforms/org.eclipse.jet.transforms.newproject/templates/project/manifest.mf.jet9
-rw-r--r--transforms/org.eclipse.jet.transforms.newproject/templates/project/org.eclipse.jet.prefs.jet5
-rw-r--r--transforms/org.eclipse.jet.transforms.newproject/templates/project/plugin.xml.jet25
-rw-r--r--transforms/org.eclipse.jet.transforms.newproject/templates/project/project.jet30
-rw-r--r--transforms/org.eclipse.jet.transforms.newproject/templates/project/sample.xml.jet3
13 files changed, 0 insertions, 185 deletions
diff --git a/transforms/org.eclipse.jet.transforms.newproject/templates/control.jet b/transforms/org.eclipse.jet.transforms.newproject/templates/control.jet
deleted file mode 100644
index 3f8ca12..0000000
--- a/transforms/org.eclipse.jet.transforms.newproject/templates/control.jet
+++ /dev/null
@@ -1,9 +0,0 @@
-<%@taglib prefix="c" id="org.eclipse.jet.controlTags" %>
-*** Control template for newproject.txm
-
-
- --- Define additional attributes for the current root element
- <c:include template="templates/createBasicProject.jet"/>
-
- <c:include template="templates/createExtendedProject.jet"/>
- \ No newline at end of file
diff --git a/transforms/org.eclipse.jet.transforms.newproject/templates/createBasicProject.jet b/transforms/org.eclipse.jet.transforms.newproject/templates/createBasicProject.jet
deleted file mode 100644
index 449f205..0000000
--- a/transforms/org.eclipse.jet.transforms.newproject/templates/createBasicProject.jet
+++ /dev/null
@@ -1,48 +0,0 @@
-g<%@taglib prefix="c" id="org.eclipse.jet.controlTags" %>
-<%@taglib prefix="ws" id="org.eclipse.jet.workspaceTags" %>
-*** Control template for newproject.txm
-
-
- --- Define additional attributes for the current root element
- <c:setVariable select="/*[local-name() = 'newProjectModel']/project" var="project"/>
-
- --- Iterate over each nested project element
- --- Define additional attributes for the current project element
- <c:if test="not($project/@binDir)"><c:set select="$project" name="binDir">bin</c:set></c:if>
- <c:if test="not($project/@jet2javaDir)"><c:set select="$project" name="jet2javaDir">jet2java</c:set></c:if>
- <c:if test="not($project/@templatesDir)"><c:set select="$project" name="templatesDir">templates</c:set></c:if>
- <c:if test="not($project/@templateLoader)"><c:set select="$project" name="templateLoader">org.eclipse.jet.compiled._jet_transformation</c:set></c:if>
- <c:if test="not($project/@startTemplate)"><c:set select="$project" name="startTemplate">main.jet</c:set></c:if>
- <c:if test="not($project/@bundleName)"><c:set select="$project" name="bundleName"><c:get select="$project/@name"/></c:set></c:if>
- <c:if test="not($project/@bundleSymbolicName)"><c:set select="$project" name="bundleSymbolicName"><c:get select="$project/@name"/></c:set></c:if>
- <c:if test="not($project/@bundleVersion)"><c:set select="$project" name="bundleVersion">1.0.0</c:set></c:if>
- <c:if test="not($project/@bundleVendor)"><c:set select="$project" name="bundleVendor"></c:set></c:if>
- <c:if test="not($project/@dfltJavaPackage)"><c:set select="$project" name="dfltJavaPackage">org.eclipse.jet.compiled</c:set></c:if>
- <c:if test="$project/@baseID and not($project/@baseStartTemplate)"><c:set select="$project" name="baseStartTemplate">templates/main.jet</c:set></c:if>
-
-*** Traverse the model and generate artifacts
- --- Generate artifacts for the current root element
-
- --- Iterate over each nested project element
- --- Generate artifacts for the current project element
- <c:if test="$project/@location">
- <ws:project name="{$project/@name}" location="{$project/@location}"/>
- </c:if>
- <ws:project name="{$project/@name}">
- <ws:folder path="META-INF">
- <ws:file template="templates/project/manifest.mf.jet" path="MANIFEST.MF"/>
- </ws:folder>
- <ws:file template="templates/project/classpath.jet" path=".classpath" />
- <ws:file template="templates/project/project.jet" path=".project" />
- <ws:file template="templates/project/build.properties.jet" path="build.properties" />
- <ws:file template="templates/project/plugin.xml.jet" path="plugin.xml" />
- <ws:file template="templates/project/org.eclipse.jet.prefs.jet" path=".settings/org.eclipse.jet.prefs"/>
-
- <ws:folder path="{$project/@binDir}"/>
- <ws:folder path="{$project/@jet2javaDir}"/>
- <ws:folder path="{$project/@templatesDir}">
- <ws:file template="templates/project/control.jet.jet" path="{$project/@startTemplate}" />
- <ws:file template="templates/project/dump.jet.jet" path="dump.jet" />
- </ws:folder>
- <ws:file template="templates/project/sample.xml.jet" path="sample.xml" />
- </ws:project>
diff --git a/transforms/org.eclipse.jet.transforms.newproject/templates/createExtendedProject.jet b/transforms/org.eclipse.jet.transforms.newproject/templates/createExtendedProject.jet
deleted file mode 100644
index e69de29..0000000
--- a/transforms/org.eclipse.jet.transforms.newproject/templates/createExtendedProject.jet
+++ /dev/null
diff --git a/transforms/org.eclipse.jet.transforms.newproject/templates/dump.jet b/transforms/org.eclipse.jet.transforms.newproject/templates/dump.jet
deleted file mode 100644
index a8b699e..0000000
--- a/transforms/org.eclipse.jet.transforms.newproject/templates/dump.jet
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="windows-1252"?>
-<dump node="/*" format="true" entities="true"/>
diff --git a/transforms/org.eclipse.jet.transforms.newproject/templates/project/build.properties.jet b/transforms/org.eclipse.jet.transforms.newproject/templates/project/build.properties.jet
deleted file mode 100644
index 060f51c..0000000
--- a/transforms/org.eclipse.jet.transforms.newproject/templates/project/build.properties.jet
+++ /dev/null
@@ -1,10 +0,0 @@
-<%@taglib prefix="c" id="org.eclipse.jet.controlTags" %>
-source.. = <c:get select="$project/@jet2javaDir" />/
-output.. = <c:get select="$project/@binDir" />/
-bin.includes = .,\
- plugin.xml,\
- META-INF/,\
- <c:get select="$project/@templatesDir" />/
-src.includes = .project,\
- build.properties,\
- .classpath
diff --git a/transforms/org.eclipse.jet.transforms.newproject/templates/project/classpath.jet b/transforms/org.eclipse.jet.transforms.newproject/templates/project/classpath.jet
deleted file mode 100644
index a973d74..0000000
--- a/transforms/org.eclipse.jet.transforms.newproject/templates/project/classpath.jet
+++ /dev/null
@@ -1,8 +0,0 @@
-<%@taglib prefix="c" id="org.eclipse.jet.controlTags"%>
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="<c:get select="$project/@jet2javaDir" default="jet2java" />"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="<c:get select="$project/@binDir" />"/>
-</classpath>
diff --git a/transforms/org.eclipse.jet.transforms.newproject/templates/project/control.jet.jet b/transforms/org.eclipse.jet.transforms.newproject/templates/project/control.jet.jet
deleted file mode 100644
index 2f675e1..0000000
--- a/transforms/org.eclipse.jet.transforms.newproject/templates/project/control.jet.jet
+++ /dev/null
@@ -1,33 +0,0 @@
-<%@taglib prefix="cc" id="org.eclipse.jet.controlTags" %>
-<\%@taglib prefix="ws" id="org.eclipse.jet.workspaceTags" %>
-<\%-- Main entry point for <cc:get select="$project/@bundleSymbolicName"/> --%>
-<cc:choose>
-<cc:when test="$project/@baseID">
-<\%--
-NOTE: This template delegates to the template '<cc:get select="$project/@baseStartTemplate"/>' in transformation '<cc:get select="$project/@baseID"/>'.
---%>
-<c:include template="<cc:get select="$project/@baseStartTemplate"/>" super="true"/>
-</cc:when>
-<cc:otherwise>
-<\%--
-TODO: traverse input model, performing calculations and storing
-the results as model annotations via c:set tag
---%>
-
-
-<\%--
-TODO: traverse annotated model, performing text generation actions
-such as ws:file, ws:folder and ws:project
---%>
-
-
-<\%-- For debug purposes, dump the annotated input model in
- the root of the project containing the original input model.
-
- Note that model formatting may not be identical, and that in
- the case of non-XML input models, the dump may look quite different.
---%>
-
-<ws:file template="templates/dump.jet" path="{$org.eclipse.jet.resource.project.name}/dump.xml"/>
-</cc:otherwise>
-</cc:choose>
diff --git a/transforms/org.eclipse.jet.transforms.newproject/templates/project/dump.jet.jet b/transforms/org.eclipse.jet.transforms.newproject/templates/project/dump.jet.jet
deleted file mode 100644
index 7c7996e..0000000
--- a/transforms/org.eclipse.jet.transforms.newproject/templates/project/dump.jet.jet
+++ /dev/null
@@ -1,3 +0,0 @@
-<%@taglib prefix="cc" id="org.eclipse.jet.controlTags" %>
-<?xml version="1.0" encoding="utf-8"?>
-<c:dump select="/*" format="true" entities="true"/>
diff --git a/transforms/org.eclipse.jet.transforms.newproject/templates/project/manifest.mf.jet b/transforms/org.eclipse.jet.transforms.newproject/templates/project/manifest.mf.jet
deleted file mode 100644
index 6a92ebe..0000000
--- a/transforms/org.eclipse.jet.transforms.newproject/templates/project/manifest.mf.jet
+++ /dev/null
@@ -1,9 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: <c:get select="$project/@bundleName" />
-Bundle-SymbolicName: <c:get select="$project/@bundleSymbolicName" />;singleton:=true
-Bundle-Version: <c:get select="$project/@bundleVersion"/>
-<%-- Bundle-Localization: plugin --%>
-Bundle-Vendor:
-Require-Bundle: org.eclipse.jet
-Bundle-ClassPath: .,<c:get select="$project/@binDir"/>/
diff --git a/transforms/org.eclipse.jet.transforms.newproject/templates/project/org.eclipse.jet.prefs.jet b/transforms/org.eclipse.jet.transforms.newproject/templates/project/org.eclipse.jet.prefs.jet
deleted file mode 100644
index 34cfcf0..0000000
--- a/transforms/org.eclipse.jet.transforms.newproject/templates/project/org.eclipse.jet.prefs.jet
+++ /dev/null
@@ -1,5 +0,0 @@
-#<f:formatNow pattern="EEE MMM dd HH:mm:ss zzz yyyy"/>
-eclipse.preferences.version=1
-org.eclipse.jet.compiledTemplatePackage=<c:get select="$project/@dfltJavaPackage"/>
-org.eclipse.jet.compiledTemplateSrcDir=<c:get select="$project/@jet2javaDir"/>
-org.eclipse.jet.projectPrefs=true
diff --git a/transforms/org.eclipse.jet.transforms.newproject/templates/project/plugin.xml.jet b/transforms/org.eclipse.jet.transforms.newproject/templates/project/plugin.xml.jet
deleted file mode 100644
index cf7eb0e..0000000
--- a/transforms/org.eclipse.jet.transforms.newproject/templates/project/plugin.xml.jet
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<%@taglib id="org.eclipse.jet.controlTags" prefix="c"%>
-<plugin>
- <extension
- id=""
- name=""
- point="org.eclipse.jet.transform">
- <transform
- startTemplate="<c:get select="$project/@templatesDir" />/<c:get select="$project/@startTemplate" />"
- templateLoaderClass="<c:get select="$project/@templateLoader" />"
-<c:if test="$project/@baseID">
- overrides="<c:get select="$project/@baseID" />"
-</c:if>
- >
- <description><c:get select="$project/@description" default=""/></description>
- <tagLibraries>
- <importLibrary id="org.eclipse.jet.controlTags" usePrefix="c" autoImport="true"/>
- <importLibrary id="org.eclipse.jet.javaTags" usePrefix="java" autoImport="true"/>
- <importLibrary id="org.eclipse.jet.formatTags" usePrefix="f" autoImport="true"/>
- <importLibrary id="org.eclipse.jet.workspaceTags" usePrefix="ws" autoImport="false"/>
- </tagLibraries>
- </transform>
- </extension>
-</plugin> \ No newline at end of file
diff --git a/transforms/org.eclipse.jet.transforms.newproject/templates/project/project.jet b/transforms/org.eclipse.jet.transforms.newproject/templates/project/project.jet
deleted file mode 100644
index 13f31e6..0000000
--- a/transforms/org.eclipse.jet.transforms.newproject/templates/project/project.jet
+++ /dev/null
@@ -1,30 +0,0 @@
-<%@taglib prefix="c" id="org.eclipse.jet.controlTags"%>
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name><c:get select="$project/@name" /></name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jet.builder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.jet.jet2Nature</nature>
- </natures>
-</projectDescription>
diff --git a/transforms/org.eclipse.jet.transforms.newproject/templates/project/sample.xml.jet b/transforms/org.eclipse.jet.transforms.newproject/templates/project/sample.xml.jet
deleted file mode 100644
index 84ff56b..0000000
--- a/transforms/org.eclipse.jet.transforms.newproject/templates/project/sample.xml.jet
+++ /dev/null
@@ -1,3 +0,0 @@
-<root>
-
-</root> \ No newline at end of file

Back to the top