PageRenderTime 141ms CodeModel.GetById 50ms app.highlight 2ms RepoModel.GetById 29ms app.codeStats 20ms

/asl/asl-java-ivy.xml

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
XML | 69 lines | 23 code | 5 blank | 41 comment | 0 complexity | 22edfedd13b4820c7d04ed78fe081a45 MD5 | raw file
 1<?xml version="1.0" encoding="utf-8"?> 
 2<!--
 3********************************************************************************
 4* Ant Script Library - Java top level module with Ivy support
 5* Module that imports all the other java modules for a plain java build
 6* Module property prefix: "java-ivy"
 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-java-ivy" xmlns:ivy="antlib:org.apache.ivy.ant">
24    <dirname property="asl-java-ivy.basedir" file="${ant.file.asl-java-ivy}"/>
25
26    <import file="${asl-java-ivy.basedir}/asl-java.xml"/>
27    <import file="${asl-java-ivy.basedir}/asl-repo-ivy.xml"/>
28
29    <!-- ***********************************************************************
30    * target overide: -init-classpath
31    * overrides the default -init-classpath target to initialise the classpath
32    * from Ivy
33    ************************************************************************ -->
34    <target name="-init-classpath" depends="repo-resolve">
35        <ivy:cachepath pathid="java-build.classpath" conf="compile"/>
36    </target>
37
38    <!-- ***********************************************************************
39    * target overide: -init-runtime-classpath
40    * overrides the default -init-runtime-classpath target to initialise the classpath
41    * from Ivy
42    ************************************************************************ -->
43    <target name="-init-runtime-classpath" depends="repo-resolve">
44        <ivy:cachepath pathid="java-build.runtime-classpath" conf="runtime"/>
45    </target>
46
47    <!-- ***********************************************************************
48    * target overide: -test-init-classpath
49    * overrides the default -test-init-classpath target to initialise the test
50    * classpath from Ivy
51    ************************************************************************ -->
52    <target name="-test-init-classpath" depends="repo-resolve">
53        <ivy:cachepath pathid="java-test.classpath-ivy" conf="test,master"/>
54        <path id="java-test.classpath">
55            <path refid="java-test.classpath-ivy"/>
56            <pathelement location="${java-build.jar-file}"/>
57        </path>
58    </target>
59    
60    <!-- ***********************************************************************
61    * target overide: -init-version
62    * overrides the default -init-version target to initialise the release
63    * version from ivy.xml
64    ************************************************************************ -->
65    <target name="-init-version">
66        <ivy:info/>
67    	<property name="release.version" value="${ivy.revision}"/>
68	</target>
69</project>