PageRenderTime 61ms CodeModel.GetById 35ms app.highlight 1ms RepoModel.GetById 14ms app.codeStats 1ms

/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
 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
26    <import file="${asl-scm-svn.basedir}/asl-common.xml"/>
27    
28    <property name="scm.svn-executable" value="svn"/>
29    <property name="scm.svn-tag-base" value="unknown"/>
30
31    <!-- ***********************************************************************
32    * macro: scm-checkout
33    * <scm-checkout serverpath="${scm.server-project-dir}" localpath="${release.workspace}"/>
34    ************************************************************************ -->
35    <macrodef name="scm-checkout">
36        <attribute name="serverpath"/>
37        <attribute name="localpath"/>
38        <sequential>
39            <exec command="${scm.svn-executable}">
40                <arg value="checkout"/>
41                <arg value="--non-interactive"/>
42                <arg value="@{serverpath}"/>
43                <arg value="@{localpath}"/>
44            </exec>
45        </sequential>
46    </macrodef>
47
48    <!-- ***********************************************************************
49    * macro: scm-update
50    ************************************************************************ -->
51    <macrodef name="scm-update">
52        <attribute name="dir"/>
53        <sequential>
54            <exec command="${scm.svn-executable}">
55                <arg value="update"/>
56                <arg value="--non-interactive"/>
57                <arg value="@{dir}"/>
58            </exec>
59        </sequential>
60    </macrodef>
61
62    <!-- ***********************************************************************
63    * macro: scm-tag
64    ************************************************************************ -->
65    <macrodef name="scm-tag">
66        <attribute name="dir"/>
67        <sequential>
68            <exec command="${scm.svn-executable}">
69                <arg value="copy"/>
70                <arg value="--non-interactive"/>
71                <arg value="@{dir}"/>
72            </exec>
73        </sequential>
74    </macrodef>
75</project>