Adding the pluginbuilder files that are used in the nightly build process.
[phpeclipse.git] / utilities / pluginbuilder / build-files / subversionSupport.xml
diff --git a/utilities/pluginbuilder/build-files/subversionSupport.xml b/utilities/pluginbuilder/build-files/subversionSupport.xml
new file mode 100644 (file)
index 0000000..0bcd270
--- /dev/null
@@ -0,0 +1,23 @@
+<project name="to be included into customTargets.xml">\r
+\r
+       <import file="fetchSvnAll.xml"/>\r
+\r
+       <path id="project.classpath">\r
+               <pathelement location="${buildHome}/build-files/svn/svnant.jar"/>\r
+               <pathelement location="${buildHome}/build-files/svn/svnClientAdapter.jar"/>\r
+       </path>\r
+       \r
+       <target name="fetchSubversion" if="is.svn.fetch">\r
+                <taskdef resource="svntask.properties" classpathref="project.classpath"/>\r
+                <property name="fetchTag" value="HEAD"/>\r
+                <antcall target="fetch.svn.all"/>\r
+       </target>\r
+    \r
+    <target name="svn.co">\r
+       <property name="target.dir" value="${element.id}"/>\r
+       <svn javahl="false" username="${pluginbuilder.svn.user}" password="${pluginbuilder.svn.password}">\r
+                       <checkout revision="${fetchTag}" url="${url}/${project.name}" destPath="${buildDirectory}/${target}/${target.dir}" />\r
+               </svn> \r
+       </target>    \r
+\r
+</project>
\ No newline at end of file