| 32 | | <macrodef name="prepare.track.httpdownload"> |
|---|
| 33 | | <attribute name="url" /> |
|---|
| 34 | | <attribute name="target" /> |
|---|
| 35 | | <attribute name="prefix" default="" /> |
|---|
| 36 | | <sequential> |
|---|
| 37 | | <tempfile property="prepare.track.httpdownload.temp.file" /> |
|---|
| 38 | | <get src="@{url}" dest="${prepare.track.httpdownload.temp.file}" /> |
|---|
| 39 | | |
|---|
| 40 | | <tempfile property="prepare.track.httpdownload.temp.dir" /> |
|---|
| 41 | | <untar compression="gzip" src="${prepare.track.httpdownload.temp.file}" dest="${prepare.track.httpdownload.temp.dir}" /> |
|---|
| 42 | | <move todir="@{target}"> |
|---|
| 43 | | <fileset dir="${prepare.track.httpdownload.temp.dir}/@{prefix}" /> |
|---|
| 44 | | </move> |
|---|
| 45 | | <delete file="${prepare.track.httpdownload.temp.file}" /> |
|---|
| 46 | | <delete dir="${prepare.track.httpdownload.temp.dir}" /> |
|---|
| 47 | | </sequential> |
|---|
| 48 | | </macrodef> |
|---|
| 49 | | |
|---|
| 50 | | <target name="prepare.track.commons-vfs.download.check"> |
|---|
| 51 | | <available property="prepare.track.commons-vfs.download.notRequired" resource="org/apache/commons/vfs/tasks/tasks.properties"> |
|---|
| 52 | | <classpath> |
|---|
| 53 | | <pathelement path="${track.commons.vfs.jar}" /> |
|---|
| 54 | | </classpath> |
|---|
| 55 | | </available> |
|---|
| 56 | | </target> |
|---|
| 57 | | |
|---|
| 58 | | <target name="prepare.track.commons-vfs.download" depends="prepare.track.commons-vfs.download.check" unless="prepare.track.commons-vfs.download.notRequired"> |
|---|
| 59 | | <prepare.track.httpdownload url="${track.commons.vfs.url}" target="${track.commons.vfs.dir}" prefix="commons-vfs-1.0-dev" /> |
|---|
| 60 | | </target> |
|---|
| 61 | | |
|---|
| 62 | | <target name="prepare.track.commons-vfs" depends="prepare.track.commons-vfs.download, prepare.track.commons-logging, prepare.track.commons-compress"> |
|---|
| 63 | | <taskdef resource="org/apache/commons/vfs/tasks/tasks.properties"> |
|---|
| 64 | | <classpath> |
|---|
| 65 | | <pathelement path="${track.commons.vfs.jar}" /> |
|---|
| 66 | | <pathelement path="${track.commons.logging.jar}" /> |
|---|
| 67 | | <pathelement path="${track.commons.compress.jar}" /> |
|---|
| 68 | | </classpath> |
|---|
| 69 | | </taskdef> |
|---|
| 70 | | </target> |
|---|
| 71 | | |
|---|
| 72 | | <target name="prepare.track.commons-logging.download.check"> |
|---|
| 73 | | <available property="prepare.track.commons-logging.download.notRequired" classname="org.apache.commons.logging.Log"> |
|---|
| 74 | | <classpath> |
|---|
| 75 | | <pathelement path="${track.commons.logging.jar}" /> |
|---|
| 76 | | </classpath> |
|---|
| 77 | | </available> |
|---|
| 78 | | </target> |
|---|
| 79 | | |
|---|
| 80 | | <target name="prepare.track.commons-logging.download" depends="prepare.track.commons-logging.download.check" unless="prepare.track.commons-logging.download.notRequired"> |
|---|
| 81 | | <prepare.track.httpdownload url="${track.commons.logging.url}" target="${track.commons.logging.dir}" prefix="commons-logging" /> |
|---|
| 82 | | </target> |
|---|
| 83 | | |
|---|
| 84 | | <target name="prepare.track.commons-logging" depends="prepare.track.commons-logging.download" /> |
|---|
| 85 | | |
|---|
| 86 | | <target name="prepare.track.commons-compress.download.check"> |
|---|
| 87 | | <available property="prepare.track.commons-compress.download.notRequired" classname="org.apache.commons.compress.tar.TarInputStream"> |
|---|
| 88 | | <classpath> |
|---|
| 89 | | <pathelement path="${track.commons.compress.jar}" /> |
|---|
| 90 | | </classpath> |
|---|
| 91 | | </available> |
|---|
| 92 | | </target> |
|---|
| 93 | | |
|---|
| 94 | | <target name="prepare.track.commons-compress.download" depends="prepare.track.commons-compress.download.check" unless="prepare.track.commons-compress.download.notRequired"> |
|---|
| 95 | | <prepare.track.httpdownload url="${track.commons.compress.url}" target="${track.commons.compress.dir}" prefix="commons-compress-0.1-dev" /> |
|---|
| 96 | | </target> |
|---|
| 97 | | |
|---|
| 98 | | <target name="prepare.track.commons-compress" depends="prepare.track.commons-compress.download" /> |
|---|
| 99 | | |
|---|
| 100 | | <target name="prepare.track.file"> |
|---|
| 101 | | <property file="track.properties" /> |
|---|
| 102 | | <tempfile property="prepare.track.file" /> |
|---|
| 103 | | <copy tofile="${prepare.track.file}" file="track.virtual"> |
|---|
| 104 | | <filterchain> |
|---|
| 105 | | <expandproperties /> |
|---|
| 106 | | </filterchain> |
|---|
| 107 | | </copy> |
|---|
| 108 | | </target> |
|---|
| 109 | | |
|---|
| 110 | | <target name="prepare.track" depends="prepare.track.commons-vfs, prepare.track.file"> |
|---|
| 111 | | <property name="prepare.track.includes" value="**"/> |
|---|
| 112 | | <echo message="updating the track directory ... (${prepare.track.includes})" /> |
|---|
| 113 | | <v-copy src="virtual:${prepare.track.file}" destdir="track" includes="${prepare.track.includes}" /> |
|---|
| 114 | | </target> |
|---|
| 115 | | |
|---|
| 116 | | <target name="prepare.track.optional.check"> |
|---|
| 117 | | <!-- the last tracked directory is tested --> |
|---|
| 118 | | <available file="${track.dir}/xmlreleasenotes" property="prepare.track.optional.notRequired" /> |
|---|
| 119 | | </target> |
|---|
| 120 | | |
|---|
| 121 | | <target name="prepare.track.optional" depends="prepare.track.optional.check" unless="prepare.track.optional.notRequired"> |
|---|
| 122 | | <antcall target="prepare.track" /> |
|---|
| 123 | | </target> |
|---|
| 124 | | |
|---|
| 130 | | |
|---|
| 131 | | <target name="prepare.antlion" depends="prepare.track.optional"> |
|---|
| 132 | | <typedef resource="net/sf/antlion/antlib.xml"> |
|---|
| 133 | | <classpath> |
|---|
| 134 | | <pathelement location="track/antlion/releases/0.9.0/antlion-inline-0.9.0.jar" /> |
|---|
| 135 | | </classpath> |
|---|
| 136 | | </typedef> |
|---|
| 137 | | </target> |
|---|
| 138 | | |
|---|
| 139 | | <target name="prepare.libraries" depends="prepare.track.optional, prepare.antlion"> |
|---|
| 140 | | <libraryDef> |
|---|
| 141 | | <type> |
|---|
| 142 | | <must-find/> |
|---|
| 143 | | <default/> |
|---|
| 144 | | </type> |
|---|
| 145 | | <repository basedir="${track.dir}"> |
|---|
| 146 | | <format text="[groupid]/patches/[version]/[artifactid]-[version].[type]" /> |
|---|
| 147 | | <format text="[groupid]/patches/[version]/[artifactid].[type]" /> |
|---|
| 148 | | <format text="[groupid]/patches/[version]/[groupid]-[version].[type]" /> |
|---|
| 149 | | <format text="[groupid]/patches/[version]/[groupid].[type]" /> |
|---|
| 150 | | <format text="[groupid]/releases/[version]/[artifactid]-[version].[type]" /> |
|---|
| 151 | | <format text="[groupid]/releases/[version]/[artifactid].[type]" /> |
|---|
| 152 | | <format text="[groupid]/releases/[version]/[groupid]-[version].[type]" /> |
|---|
| 153 | | <format text="[groupid]/releases/[version]/[groupid].[type]" /> |
|---|
| 154 | | <!-- for log4j --> |
|---|
| 155 | | <format text="[groupid]/releases/[version]/dist/lib/[groupid]-[version].[type]" /> |
|---|
| 156 | | <format text="[groupid]/releases/[version]/lib/[artifactid].[type]" /> |
|---|
| 157 | | </repository> |
|---|
| 158 | | |
|---|
| 159 | | <library id="lib.jetty"> |
|---|
| 160 | | <lib-entry groupid="jetty" version="5.1.4rc0" artifactid="org.mortbay.jetty" /> |
|---|
| 161 | | </library> |
|---|
| 162 | | |
|---|
| 163 | | <library id="lib.servlet"> |
|---|
| 164 | | <lib-entry groupid="jetty" version="5.1.4rc0" artifactid="javax.servlet" /> |
|---|
| 165 | | </library> |
|---|
| 166 | | |
|---|
| 167 | | <library id="lib.hessian"> |
|---|
| 168 | | <library refid="lib.servlet" /> |
|---|
| 169 | | <lib-entry groupid="hessian" version="3.0.8" /> |
|---|
| 170 | | </library> |
|---|
| 171 | | |
|---|
| 172 | | <library id="lib.vorbisspi"> |
|---|
| 173 | | <lib-entry groupid="vorbisspi" version="1.0.2" artifactid="vorbisspi1.0.2" /> |
|---|
| 174 | | <lib-entry groupid="vorbisspi" version="1.0.2" artifactid="jogg-0.0.7" /> |
|---|
| 175 | | <lib-entry groupid="vorbisspi" version="1.0.2" artifactid="jorbis-0.0.15" /> |
|---|
| 176 | | <lib-entry groupid="vorbisspi" version="1.0.2" artifactid="tritonus_share" /> |
|---|
| 177 | | </library> |
|---|
| 178 | | |
|---|
| 179 | | <library id="lib.mp3spi"> |
|---|
| 180 | | <lib-entry groupid="mp3spi" version="1.9.4" artifactid="mp3spi1.9.4" /> |
|---|
| 181 | | <lib-entry groupid="mp3spi" version="1.9.4" artifactid="jl1.0" /> |
|---|
| 182 | | <lib-entry groupid="mp3spi" version="1.9.4" artifactid="tritonus_share" /> |
|---|
| 183 | | </library> |
|---|
| 184 | | |
|---|
| 185 | | <library id="lib.tritonus"> |
|---|
| 186 | | <!-- <lib-entry artifactid="tritonus-share" groupid="tritonus" version="0.3.6" /> --> |
|---|
| 187 | | <lib-entry artifactid="tritonus-vorbis" groupid="tritonus" version="0.3.6" /> |
|---|
| 188 | | <lib-entry artifactid="tritonus-core" groupid="tritonus" version="0.3.6" /> |
|---|
| 189 | | </library> |
|---|
| 190 | | |
|---|
| 191 | | <library id="lib.test"> |
|---|
| 192 | | <lib-entry groupid="mockobjects" version="0.09" artifactid="mockobjects-core" /> |
|---|
| 193 | | <lib-entry groupid="junit" version="3.8.2" /> |
|---|
| 194 | | <lib-entry groupid="easymock" version="1.2" /> |
|---|
| 195 | | </library> |
|---|
| 196 | | |
|---|
| 197 | | <library id="lib.mina"> |
|---|
| 198 | | <lib-entry groupid="mina" version="0.9.5-SNAPSHOT" artifactid="mina-core" /> |
|---|
| 199 | | <lib-entry groupid="slf4j" version="1.0" artifactid="slf4j-log4j12" /> |
|---|
| 200 | | </library> |
|---|
| 201 | | |
|---|
| 202 | | <library id="lib.jstun"> |
|---|
| 203 | | <lib-entry groupid="jstun" version="0.5.9.2"/> |
|---|
| 204 | | </library> |
|---|
| 205 | | |
|---|
| 206 | | <library id="core"> |
|---|
| 207 | | <lib-entry groupid="commons-collections" version="3.1" /> |
|---|
| 208 | | <lib-entry groupid="commons-logging" version="1.1.0" artifactid="commons-logging-1.1-RC5" /> |
|---|
| 209 | | <lib-entry groupid="commons-cli" version="1.0" /> |
|---|
| 210 | | <lib-entry groupid="commons-codec" version="1.3" /> |
|---|
| 211 | | <lib-entry groupid="commons-io" version="1.0" /> |
|---|
| 212 | | <lib-entry groupid="commons-discovery" version="0.2" /> |
|---|
| 213 | | <lib-entry groupid="log4j" version="1.2.13" /> |
|---|
| 214 | | <lib-entry groupid="commons-lang" version="nightly-20041229" artifactid="commons-lang-2.0" /> |
|---|
| 215 | | <lib-entry groupid="commons-configuration" version="nightly-20050307" artifactid="commons-configuration-1.1RC2" /> |
|---|
| 216 | | <lib-entry groupid="concurrent" version="kolaka" /> |
|---|
| 217 | | <library refid="lib.mina" /> |
|---|
| 218 | | <library refid="lib.jstun" /> |
|---|
| 219 | | </library> |
|---|
| 220 | | |
|---|
| 221 | | <library id="build"> |
|---|
| 222 | | <library refid="core" /> |
|---|
| 223 | | <lib-entry groupid="commons-digester" version="1.7" /> |
|---|
| 224 | | <lib-entry groupid="commons-httpclient" version="3.0.1" /> |
|---|
| 225 | | <lib-entry groupid="cortado" version="0.1.0" artifactid="cortado-ovt-0.1.0" /> |
|---|
| 226 | | <lib-entry groupid="jdic" version="0.9" /> |
|---|
| 227 | | <library refid="lib.hessian" /> |
|---|
| 228 | | <library refid="lib.jetty" /> |
|---|
| 229 | | <library refid="lib.tritonus" /> |
|---|
| 230 | | <library refid="lib.vorbisspi" /> |
|---|
| 231 | | </library> |
|---|
| 232 | | |
|---|
| 233 | | <library id="runtime"> |
|---|
| 234 | | <library refid="build" /> |
|---|
| 235 | | <lib-entry groupid="commons-beanutils" version="1.7.0" /> |
|---|
| 236 | | <library refid="lib.mp3spi"/> |
|---|
| 237 | | </library> |
|---|
| 238 | | |
|---|
| 239 | | <library id="test"> |
|---|
| 240 | | <library refid="lib.test" /> |
|---|
| 241 | | <library refid="runtime" /> |
|---|
| 242 | | </library> |
|---|
| 243 | | |
|---|
| 244 | | <!-- |
|---|
| 245 | | <library id="coverage"> |
|---|
| 246 | | <library refid="test" /> |
|---|
| 247 | | </library> |
|---|
| 248 | | --> |
|---|
| 249 | | </libraryDef> |
|---|
| 250 | | |
|---|
| 251 | | <property name="track.docbook.dir" value="${track.dir}/docbook-xsl/releases/1.69.1" /> |
|---|
| 252 | | <property name="track.tritonus.dir" value="${track.dir}/tritonus/patches/0.3.6" /> |
|---|
| 253 | | </target> |
|---|
| | 37 | |
|---|
| | 38 | <target name="prepare.track"> |
|---|
| | 39 | <ivy:configure /> |
|---|
| | 40 | </target> |
|---|
| | 41 | |
|---|
| | 42 | <target name="prepare.libraries" depends="prepare.track"> |
|---|
| | 43 | <ivy:retrieve pattern="lib/[conf]/[artifact].[ext]" conf="core, runtime, test" /> |
|---|
| | 44 | <path id="path.build"> |
|---|
| | 45 | <fileset dir="lib/core"/> |
|---|
| | 46 | </path> |
|---|
| | 47 | <path id="path.runtime"> |
|---|
| | 48 | <fileset dir="lib/runtime"/> |
|---|
| | 49 | <path refid="path.build"/> |
|---|
| | 50 | </path> |
|---|
| | 51 | <path id="path.test"> |
|---|
| | 52 | <fileset dir="lib/test"/> |
|---|
| | 53 | <path refid="path.runtime"/> |
|---|
| | 54 | </path> |
|---|
| | 55 | </target> |
|---|
| | 56 | |
|---|
| | 57 | <target name="prepare.docbook" depends="prepare.track, prepare.docbook.retrieve, prepare.docbook.install"> |
|---|
| | 58 | <path id="path.docbook"> |
|---|
| | 59 | <fileset dir="lib/build-docbook"/> |
|---|
| | 60 | </path> |
|---|
| | 61 | <property name="track.docbook.dir" location="lib/build-docbook/docbook-xsl" /> |
|---|
| | 62 | </target> |
|---|
| | 63 | |
|---|
| | 64 | <target name="prepare.docbook.retrieve"> |
|---|
| | 65 | <ivy:retrieve pattern="lib/[conf]/[artifact].[ext]" conf="build-docbook" /> |
|---|
| | 66 | </target> |
|---|
| | 67 | |
|---|
| | 68 | <target name="prepare.docbook.install.check"> |
|---|
| | 69 | <uptodate property="prepare.docbook.install.notRequired" |
|---|
| | 70 | srcfile="lib/build-docbook/docbook-xsl.zip" |
|---|
| | 71 | targetfile="lib/build-docbook/docbook-xsl/.touch"/> |
|---|
| | 72 | </target> |
|---|
| | 73 | |
|---|
| | 74 | <target name="prepare.docbook.install" |
|---|
| | 75 | depends="prepare.docbook.install.check" unless="prepare.docbook.install.notRequired"> |
|---|
| | 76 | <tempfile property="prepare.docbook.dir"/> |
|---|
| | 77 | <mkdir dir="${prepare.docbook.dir}"/> |
|---|
| | 78 | <unzip src="lib/build-docbook/docbook-xsl.zip" dest="${prepare.docbook.dir}"/> |
|---|
| | 79 | <move todir="lib/build-docbook/docbook-xsl"> |
|---|
| | 80 | <fileset dir="${prepare.docbook.dir}"/> |
|---|
| | 81 | <regexpmapper from="^docbook-xsl-[0-9\.]+/(.*)$$" to="\1"/> |
|---|
| | 82 | </move> |
|---|
| | 83 | <delete dir="${prepare.docbook.dir}"/> |
|---|
| | 84 | <touch file="lib/build-docbook/docbook-xsl/.touch"/> |
|---|
| | 85 | </target> |
|---|
| 879 | | <fileset dir="track/jdic/releases/0.9"> |
|---|
| 880 | | <include name="linux/**" /> |
|---|
| 881 | | <include name="windows/**" /> |
|---|
| 882 | | <include name="sunos/**" /> |
|---|
| 883 | | </fileset> |
|---|
| 884 | | </copy> |
|---|
| | 719 | <fileset dir="lib/core"/> |
|---|
| | 720 | <fileset dir="lib/runtime"> |
|---|
| | 721 | <include name="*.jar"/> |
|---|
| | 722 | <exclude name="jdic-stub*"/> |
|---|
| | 723 | <exclude name="jdic-native*"/> |
|---|
| | 724 | </fileset> |
|---|
| | 725 | </copy> |
|---|
| | 726 | <copy todir="dist/lib/linux"> |
|---|
| | 727 | <fileset dir="lib/runtime" includes="jdic-stub-linux.jar"/> |
|---|
| | 728 | </copy> |
|---|
| | 729 | <copy todir="dist/lib/windows"> |
|---|
| | 730 | <fileset dir="lib/runtime" includes="jdic-stub-windows.jar"/> |
|---|
| | 731 | </copy> |
|---|
| | 732 | <copy todir="dist/lib/sunos"> |
|---|
| | 733 | <fileset dir="lib/runtime" includes="jdic-stub-sunos.jar"/> |
|---|
| | 734 | </copy> |
|---|
| | 735 | |
|---|
| | 736 | <patternset id="patternset.nometainf"> |
|---|
| | 737 | <exclude name="META-INF/**"/> |
|---|
| | 738 | </patternset> |
|---|
| | 739 | |
|---|
| | 740 | <unjar dest="dist/lib/linux/x86"> |
|---|
| | 741 | <fileset dir="lib/runtime" includes="*-native-linux-x86.jar"/> |
|---|
| | 742 | <patternset refid="patternset.nometainf"/> |
|---|
| | 743 | </unjar> |
|---|
| | 744 | <unjar dest="dist/lib/windows/x86"> |
|---|
| | 745 | <fileset dir="lib/runtime" includes="*-native-windows-x86.jar"/> |
|---|
| | 746 | <patternset refid="patternset.nometainf"/> |
|---|
| | 747 | </unjar> |
|---|
| | 748 | <unjar dest="dist/lib/sunos/x86"> |
|---|
| | 749 | <fileset dir="lib/runtime" includes="*-native-sunos-x86.jar"/> |
|---|
| | 750 | <patternset refid="patternset.nometainf"/> |
|---|
| | 751 | </unjar> |
|---|
| | 752 | <unjar dest="dist/lib/sunos/sparc"> |
|---|
| | 753 | <fileset dir="lib/runtime" includes="*-native-sunos-sparc.jar"/> |
|---|
| | 754 | <patternset refid="patternset.nometainf"/> |
|---|
| | 755 | </unjar> |
|---|
| | 756 | |
|---|