PageRenderTime 35ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/asl/asl-scm-svn.xml

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
XML | 75 lines | 39 code | 5 blank | 31 comment | 0 complexity | 8631d0570f73493e7082385a3004e129 MD5 | raw file
Possible License(s): LGPL-3.0, Apache-2.0, GPL-3.0, GPL-2.0, AGPL-3.0, JSON, BSD-3-Clause
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ********************************************************************************
  4. * Ant Script Library - Source Control Management for Subversion
  5. * Module that imports all the other java modules for a plain java build
  6. * Module property prefix: "scm"
  7. ********************************************************************************
  8. * Copyright 2009 Joe Schmetzer
  9. *
  10. * Licensed under the Apache License, Version 2.0 (the "License");
  11. * you may not use this file except in compliance with the License.
  12. * You may obtain a copy of the License at
  13. *
  14. * http://www.apache.org/licenses/LICENSE-2.0
  15. *
  16. * Unless required by applicable law or agreed to in writing, software
  17. * distributed under the License is distributed on an "AS IS" BASIS,
  18. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. * See the License for the specific language governing permissions and
  20. * limitations under the License.
  21. ********************************************************************************
  22. -->
  23. <project name="asl-scm-svn">
  24. <dirname property="asl-scm-svn.basedir" file="${ant.file.asl-scm-svn}"/>
  25. <import file="${asl-scm-svn.basedir}/asl-common.xml"/>
  26. <property name="scm.svn-executable" value="svn"/>
  27. <property name="scm.svn-tag-base" value="unknown"/>
  28. <!-- ***********************************************************************
  29. * macro: scm-checkout
  30. * <scm-checkout serverpath="${scm.server-project-dir}" localpath="${release.workspace}"/>
  31. ************************************************************************ -->
  32. <macrodef name="scm-checkout">
  33. <attribute name="serverpath"/>
  34. <attribute name="localpath"/>
  35. <sequential>
  36. <exec command="${scm.svn-executable}">
  37. <arg value="checkout"/>
  38. <arg value="--non-interactive"/>
  39. <arg value="@{serverpath}"/>
  40. <arg value="@{localpath}"/>
  41. </exec>
  42. </sequential>
  43. </macrodef>
  44. <!-- ***********************************************************************
  45. * macro: scm-update
  46. ************************************************************************ -->
  47. <macrodef name="scm-update">
  48. <attribute name="dir"/>
  49. <sequential>
  50. <exec command="${scm.svn-executable}">
  51. <arg value="update"/>
  52. <arg value="--non-interactive"/>
  53. <arg value="@{dir}"/>
  54. </exec>
  55. </sequential>
  56. </macrodef>
  57. <!-- ***********************************************************************
  58. * macro: scm-tag
  59. ************************************************************************ -->
  60. <macrodef name="scm-tag">
  61. <attribute name="dir"/>
  62. <sequential>
  63. <exec command="${scm.svn-executable}">
  64. <arg value="copy"/>
  65. <arg value="--non-interactive"/>
  66. <arg value="@{dir}"/>
  67. </exec>
  68. </sequential>
  69. </macrodef>
  70. </project>