comparison nbproject/ivy-impl.xml @ 2:5da2e67620f9

Upgrade to Ivy configuration and begin clean up of tests. Added FreeBSD license.
author smith@nwoca.org
date Tue, 25 Jan 2011 17:06:57 -0500
parents
children
comparison
equal deleted inserted replaced
1:b6e94d49a9a9 2:5da2e67620f9
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 *
15 -->
16 <project xmlns:ivy="antlib:fr.jayasoft.ivy.ant" basedir=".." default="default" name="ivy-impl">
17 <target name="-check-ivy">
18 <available property="have.ivy" resource="fr/jayasoft/ivy/ant/antlib.xml"/>
19 </target>
20 <target depends="-check-ivy" name="-ivy-define" unless="have.ivy">
21 <echo level="debug" message="ivy.home : ${ivy.home}"/>
22 <taskdef resource="fr/jayasoft/ivy/ant/antlib.xml" uri="antlib:fr.jayasoft.ivy.ant">
23 <classpath>
24 <fileset dir="${ivy.home}">
25 <include name="*.jar"/>
26 </fileset>
27 </classpath>
28 </taskdef>
29 </target>
30 <target name="-ant-contrib-define">
31 <echo level="debug" message="ant-contrib.lib: ${ant-contrib.lib}"/>
32 <taskdef resource="net/sf/antcontrib/antcontrib.properties">
33 <classpath>
34 <pathelement location="${ant-contrib.lib}"/>
35 </classpath>
36 </taskdef>
37 </target>
38 <target name="-lib-path-init">
39 <echo level="debug" message="$${lib.dir} : ${lib.dir}"/>
40 <if>
41 <equals arg1="${lib.dir}" arg2="$${lib.dir}"/>
42 <then>
43 <if>
44 <equals arg1="${build.classes.dir}" arg2="$${build.classes.dir}"/>
45 <then>
46 <property name="lib.dir" value="lib"/>
47 </then>
48 <else>
49 <property name="lib.dir" value="jar"/>
50 </else>
51 </if>
52 </then>
53 </if>
54 <echo level="debug" message="$${lib.dir} : ${lib.dir}"/>
55 <mkdir dir="${basedir}/${build.dir}/${lib.dir}"/>
56 </target>
57 <target depends="-ivy-define, -ant-contrib-define, -lib-path-init" name="-ivy-retrieve">
58 <ivy:settings file="ivysettings.xml"/>
59 <ivy:resolve file="ivy.xml"/>
60 <ivy:retrieve pattern="${basedir}/${build.dir}/${lib.dir}/[artifact]-[revision].[ext]" type="jar"/>
61 <path id="ivy.path">
62 <fileset dir="${basedir}/${build.dir}/${lib.dir}">
63 <include name="**/*.jar"/>
64 </fileset>
65 </path>
66 <pathconvert dirsep="/" pathsep="${path.separator}" property="ivy.classpath.computed">
67 <path refid="ivy.path"/>
68 <!--map from="${basedir}${file.separator}" to=""/-->
69 </pathconvert>
70 <property name="old.javac.classpath" value="${javac.classpath}"/>
71 <var name="javac.classpath" unset="true"/>
72 <if>
73 <equals arg1="${old.javac.classpath}" arg2=""/>
74 <then>
75 <property name="javac.classpath" value="${ivy.classpath.computed}"/>
76 </then>
77 <else>
78 <property name="javac.classpath" value="${old.javac.classpath}${path.separator}${ivy.classpath.computed}"/>
79 </else>
80 </if>
81 <echo level="debug" message="$${javac.classpath} : ${javac.classpath}"/>
82 <property name="old.javac.test.classpath" value="${javac.test.classpath}"/>
83 <var name="javac.test.classpath" unset="true"/>
84 <if>
85 <equals arg1="${old.javac.test.classpath}" arg2=""/>
86 <then>
87 <property name="javac.test.classpath" value="${ivy.classpath.computed}"/>
88 </then>
89 <else>
90 <property name="javac.test.classpath" value="${old.javac.test.classpath}${path.separator}${ivy.classpath.computed}"/>
91 </else>
92 </if>
93 <echo level="debug" message="$${javac.test.classpath} : ${javac.test.classpath}"/>
94 <property name="old.run.classpath" value="${run.classpath}"/>
95 <var name="run.classpath" unset="true"/>
96 <if>
97 <equals arg1="${old.run.classpath}" arg2="$${run.classpath}"/>
98 <then>
99 <property name="run.classpath" value="${ivy.classpath.computed}"/>
100 </then>
101 <else>
102 <property name="run.classpath" value="${old.run.classpath}${path.separator}${ivy.classpath.computed}"/>
103 </else>
104 </if>
105 <echo level="debug" message="$${run.classpath} : ${run.classpath}"/>
106 <property name="old.run.test.classpath" value="${run.test.classpath}"/>
107 <var name="run.test.classpath" unset="true"/>
108 <if>
109 <equals arg1="${old.run.test.classpath}" arg2="$${run.test.classpath}"/>
110 <then>
111 <property name="run.test.classpath" value="${ivy.classpath.computed}"/>
112 </then>
113 <else>
114 <property name="run.test.classpath" value="${old.run.test.classpath}${path.separator}${ivy.classpath.computed}"/>
115 </else>
116 </if>
117 <echo level="debug" message="$${run.test.classpath} : ${run.test.classpath}"/>
118 <property name="old.debug.classpath" value="${debug.classpath}"/>
119 <var name="debug.classpath" unset="true"/>
120 <if>
121 <equals arg1="${old.debug.classpath}" arg2="$${debug.classpath}"/>
122 <then>
123 <property name="debug.classpath" value="${ivy.classpath.computed}"/>
124 </then>
125 <else>
126 <property name="debug.classpath" value="${old.debug.classpath}${path.separator}${ivy.classpath.computed}"/>
127 </else>
128 </if>
129 <echo level="debug" message="$${debug.classpath} : ${debug.classpath}"/>
130 </target>
131 <target name="-ivy-publish">
132 <ivy:settings file="ivysettings.xml"/>
133 <ivy:resolve file="ivy.xml"/>
134 <ivy:publish forcedeliver="true" overwrite="true" resolver="local">
135 <artifacts pattern="${basedir}/${dist.dir}/[artifact].[ext]"/>
136 </ivy:publish>
137 </target>
138 <target name="-ivy-clean">
139 <!--delete dir="lib"/-->
140 </target>
141 </project>