Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'transforms/org.eclipse.jet.transforms.newproject/templates/createBasicProject.jet')
-rw-r--r--transforms/org.eclipse.jet.transforms.newproject/templates/createBasicProject.jet48
1 files changed, 0 insertions, 48 deletions
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>

Back to the top