prep for xquery builds
diff --git a/releng.wtpbuilder/buildtemplates/build.xml b/releng.wtpbuilder/buildtemplates/build.xml
index 72d3871..52404ea 100644
--- a/releng.wtpbuilder/buildtemplates/build.xml
+++ b/releng.wtpbuilder/buildtemplates/build.xml
@@ -71,6 +71,9 @@
     <property
         name="prereq.wtp"
         value="false"/>
+	    <property
+	        name="prereq.dltk"
+	        value="false"/>	
     <!--
         Some simple "get started" scripts to build files for simple
         build cases. See an existing property file for description of
diff --git a/releng.wtpbuilder/buildtemplates/components/template/dependency.xml b/releng.wtpbuilder/buildtemplates/components/template/dependency.xml
index b10babf..796523a 100644
--- a/releng.wtpbuilder/buildtemplates/components/template/dependency.xml
+++ b/releng.wtpbuilder/buildtemplates/components/template/dependency.xml
@@ -70,6 +70,11 @@
         <istrue
             value="@prereq.wtp@"/>
     </condition>
+	    <condition
+	        property="getprereq.dltk">
+	        <istrue
+	            value="@prereq.dltk@"/>
+	    </condition>	
     <target
         name="get">
         <!--
@@ -99,7 +104,9 @@
             target="prereq.jst"/>
         <antcall
             target="prereq.wtp"/>
-    </target>
+       <antcall
+           target="prereq.dltk"/>    
+  </target>
     <target
         name="prereq.eclipse"
         if="getprereq.eclipse">
@@ -200,6 +207,16 @@
                 value="wtp"/>
         </antcall>
     </target>
+	    <target
+	        name="prereq.dltk"
+	        if="getprereq.dltk">
+	        <antcall
+	            target="getAndInstall">
+	            <param
+	                name="groupId"
+	                value="dltk"/>
+	        </antcall>
+	    </target>
     <target
         name="getAndInstall"
         if="${groupId}.url">
diff --git a/releng.wtpbuilder/buildtemplates/components/template_sdk/dependency.xml b/releng.wtpbuilder/buildtemplates/components/template_sdk/dependency.xml
index a09c8f8..3de8f08 100644
--- a/releng.wtpbuilder/buildtemplates/components/template_sdk/dependency.xml
+++ b/releng.wtpbuilder/buildtemplates/components/template_sdk/dependency.xml
@@ -70,7 +70,11 @@
 	        <istrue
 	            value="@prereq.wtp@"/>
 	    </condition>
-	            	
+	              <condition
+	                  property="getprereq.dltk">
+	                  <istrue
+	                      value="@prereq.dltk@"/>
+	              </condition>	            	
     <target
         name="get">
         <!--
@@ -100,6 +104,8 @@
             target="prereq.jst"/>
         <antcall
             target="prereq.wtp"/>
+              <antcall
+                  target="prereq.dltk"/>        	
     </target>
     <target
         name="prereq.eclipse"
@@ -201,6 +207,16 @@
                 value="wtp"/>
         </antcall>
     </target>
+                	    <target
+                	        name="prereq.dltk"
+                	        if="getprereq.dltk">
+                	        <antcall
+                	            target="getAndInstall">
+                	            <param
+                	                name="groupId"
+                	                value="dltk"/>
+                	        </antcall>
+                	    </target>                	
     <target
         name="getAndInstall"
         if="${groupId}.url">
diff --git a/releng.wtpbuilder/buildtemplates/components/template_tests/dependency.xml b/releng.wtpbuilder/buildtemplates/components/template_tests/dependency.xml
index 90a412c..30dcff5 100644
--- a/releng.wtpbuilder/buildtemplates/components/template_tests/dependency.xml
+++ b/releng.wtpbuilder/buildtemplates/components/template_tests/dependency.xml
@@ -70,6 +70,11 @@
 	        <istrue
 	            value="@prereq.wtp@"/>
 	    </condition>
+	              <condition
+	                  property="getprereq.dltk">
+	                  <istrue
+	                      value="@prereq.dltk@"/>
+	              </condition>	            	
     <target
         name="get">
         <!--
@@ -206,6 +211,16 @@
                 value="wtp"/>
         </antcall>
     </target>
+              <target
+                  name="prereq.dltk"
+                  if="getprereq.dltk">
+                  <antcall
+                      target="getAndInstall">
+                      <param
+                          name="groupId"
+                          value="dltk"/>
+                  </antcall>
+              </target>            	
     <target
         name="getAndInstall"
         if="${groupId}.url">
diff --git a/releng.wtpbuilder/buildtemplates/distribution/template.site/templateFiles/index.html.template.php b/releng.wtpbuilder/buildtemplates/distribution/template.site/templateFiles/index.html.template.php
index 8a0b0e5..699acdd 100644
--- a/releng.wtpbuilder/buildtemplates/distribution/template.site/templateFiles/index.html.template.php
+++ b/releng.wtpbuilder/buildtemplates/distribution/template.site/templateFiles/index.html.template.php
@@ -124,6 +124,12 @@
 $dtpName="@dtpName@";
 $dtpDescription="@dtpDescription@";
 
+$dltkURL="@dltkURL@";
+$dltkFile="@dltkFile@";
+$dltkMirrorPrefixuri="@dltk.mirror.prefixuri@";
+$dltkBuildHome="@dltkBuildHome@";
+$dltkName="@dltkName@";
+$dltkDescription="@dltkDescription@";
 
 $eclipserelengFile="@eclipserelengFile@";
 $eclipserelengURL="@eclipserelengURL@";
diff --git a/releng.wtpbuilder/buildtemplates/distribution/template.tests/testdependency.xml b/releng.wtpbuilder/buildtemplates/distribution/template.tests/testdependency.xml
index cd58a9f..cc3c9d9 100644
--- a/releng.wtpbuilder/buildtemplates/distribution/template.tests/testdependency.xml
+++ b/releng.wtpbuilder/buildtemplates/distribution/template.tests/testdependency.xml
@@ -78,7 +78,12 @@
         <istrue
             value="@prereq.wtp@"/>
     </condition>
-    <target
+	    <condition
+	        property="getprereq.dltk">
+	        <istrue
+	            value="@prereq.dltk@"/>
+	    </condition>
+   <target
         name="get">
         <!--
             read in this properties, just so we can make sure our
diff --git a/releng.wtpbuilder/buildtemplates/xquery.properties b/releng.wtpbuilder/buildtemplates/xquery.properties
index 2625abd..3751729 100644
--- a/releng.wtpbuilder/buildtemplates/xquery.properties
+++ b/releng.wtpbuilder/buildtemplates/xquery.properties
@@ -28,8 +28,7 @@
 prereq.emfxsd=true
 prereq.gef=true
 prereq.wst=true
-
-        
+prereq.dltk=true
 
 # These next properties are mainly for distribution template files
 
diff --git a/releng.wtpbuilder/components/xquery/dependency.xml b/releng.wtpbuilder/components/xquery/dependency.xml
index caafe1f..785c0b8 100644
--- a/releng.wtpbuilder/components/xquery/dependency.xml
+++ b/releng.wtpbuilder/components/xquery/dependency.xml
@@ -70,6 +70,11 @@
         <istrue
             value="false"/>
     </condition>
+	    <condition
+	        property="getprereq.dltk">
+	        <istrue
+	            value="@prereq.dltk@"/>
+	    </condition>	
     <target
         name="get">
         <!--
@@ -99,7 +104,9 @@
             target="prereq.jst"/>
         <antcall
             target="prereq.wtp"/>
-    </target>
+       <antcall
+           target="prereq.dltk"/>    
+  </target>
     <target
         name="prereq.eclipse"
         if="getprereq.eclipse">
@@ -200,6 +207,16 @@
                 value="wtp"/>
         </antcall>
     </target>
+	    <target
+	        name="prereq.dltk"
+	        if="getprereq.dltk">
+	        <antcall
+	            target="getAndInstall">
+	            <param
+	                name="groupId"
+	                value="dltk"/>
+	        </antcall>
+	    </target>
     <target
         name="getAndInstall"
         if="${groupId}.url">
diff --git a/releng.wtpbuilder/components/xquery_sdk/dependency.xml b/releng.wtpbuilder/components/xquery_sdk/dependency.xml
index 20bc365..2fe744e 100644
--- a/releng.wtpbuilder/components/xquery_sdk/dependency.xml
+++ b/releng.wtpbuilder/components/xquery_sdk/dependency.xml
@@ -70,7 +70,11 @@
 	        <istrue
 	            value="false"/>
 	    </condition>
-	            	
+	              <condition
+	                  property="getprereq.dltk">
+	                  <istrue
+	                      value="@prereq.dltk@"/>
+	              </condition>	            	
     <target
         name="get">
         <!--
@@ -100,6 +104,8 @@
             target="prereq.jst"/>
         <antcall
             target="prereq.wtp"/>
+              <antcall
+                  target="prereq.dltk"/>        	
     </target>
     <target
         name="prereq.eclipse"
@@ -201,6 +207,16 @@
                 value="wtp"/>
         </antcall>
     </target>
+                	    <target
+                	        name="prereq.dltk"
+                	        if="getprereq.dltk">
+                	        <antcall
+                	            target="getAndInstall">
+                	            <param
+                	                name="groupId"
+                	                value="dltk"/>
+                	        </antcall>
+                	    </target>                	
     <target
         name="getAndInstall"
         if="${groupId}.url">
diff --git a/releng.wtpbuilder/components/xquery_tests/dependency.xml b/releng.wtpbuilder/components/xquery_tests/dependency.xml
index 2b856ef..4e4a7a4 100644
--- a/releng.wtpbuilder/components/xquery_tests/dependency.xml
+++ b/releng.wtpbuilder/components/xquery_tests/dependency.xml
@@ -70,6 +70,11 @@
 	        <istrue
 	            value="false"/>
 	    </condition>
+	              <condition
+	                  property="getprereq.dltk">
+	                  <istrue
+	                      value="@prereq.dltk@"/>
+	              </condition>	            	
     <target
         name="get">
         <!--
@@ -206,6 +211,16 @@
                 value="wtp"/>
         </antcall>
     </target>
+              <target
+                  name="prereq.dltk"
+                  if="getprereq.dltk">
+                  <antcall
+                      target="getAndInstall">
+                      <param
+                          name="groupId"
+                          value="dltk"/>
+                  </antcall>
+              </target>            	
     <target
         name="getAndInstall"
         if="${groupId}.url">
diff --git a/releng.wtpbuilder/distribution/xquery.site/templateFiles/index.html.template.php b/releng.wtpbuilder/distribution/xquery.site/templateFiles/index.html.template.php
index 8bdf7cf..1c62eb2 100644
--- a/releng.wtpbuilder/distribution/xquery.site/templateFiles/index.html.template.php
+++ b/releng.wtpbuilder/distribution/xquery.site/templateFiles/index.html.template.php
@@ -124,6 +124,12 @@
 $dtpName="@dtpName@";
 $dtpDescription="@dtpDescription@";
 
+$dltkURL="@dltkURL@";
+$dltkFile="@dltkFile@";
+$dltkMirrorPrefixuri="@dltk.mirror.prefixuri@";
+$dltkBuildHome="@dltkBuildHome@";
+$dltkName="@dltkName@";
+$dltkDescription="@dltkDescription@";
 
 $eclipserelengFile="@eclipserelengFile@";
 $eclipserelengURL="@eclipserelengURL@";
diff --git a/releng.wtpbuilder/distribution/xquery.tests/testdependency.xml b/releng.wtpbuilder/distribution/xquery.tests/testdependency.xml
index f2fa436..a337630 100644
--- a/releng.wtpbuilder/distribution/xquery.tests/testdependency.xml
+++ b/releng.wtpbuilder/distribution/xquery.tests/testdependency.xml
@@ -78,7 +78,12 @@
         <istrue
             value="false"/>
     </condition>
-    <target
+	    <condition
+	        property="getprereq.dltk">
+	        <istrue
+	            value="@prereq.dltk@"/>
+	    </condition>
+   <target
         name="get">
         <!--
             read in this properties, just so we can make sure our