blob: 9e0eb98da1fe015f68f467ba665d16a6ea23efb1 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
<project name="JMX Build" default="build" basedir=".">
<description>Build for JMX component</description>
<property name="hy.component" value="classlib" />
<property name="hy.module" value="jmx" />
<property name="" location="${basedir}/../../target" />
<import file="${}/hdk/build/ant/properties.xml" />
<import file="${hy.hdk}/build/ant/depends.xml" />
<target name="build" depends="check-depends" />
<target name="clean" depends="-clean-java" />
<target name="check-depends" depends="-check,-extract,-copy-jars" />
<target name="-check">
<check-one-file src="${mx4j.url}" dest="${}" />
<target name="fetch-depends">
<mkdir dir="${mx4j.dir}" />
<download-one-file src="${mx4j.url}" dest="${}"
md5="${mx4j.md5}" />
<target name="-extract" depends="-extract-props,-extract-mx4j" />
<target name="-extract-props">
<uptodate property="mx4j.uptodate"
targetfile="${mx4j.jar}" />
<target name="-extract-mx4j" unless="mx4j.uptodate">
<!-- This doesn't work for me since my ant doesn't support
mapper in unzip.
<unzip src="${}" dest="${mx4j.dir}">
<include name="**/mx4j.jar"/>
<include name="**/mx4j-remote.jar"/>
<mapper type="flatten" />
<unzip src="${}" dest="${mx4j.dir}.tmp" />
<copy todir="${mx4j.dir}" flatten="yes">
<fileset dir="${mx4j.dir}.tmp/mx4j-${mx4j.version}/lib">
<include name="mx4j.jar"/>
<include name="mx4j-remote.jar"/>
<delete dir="${mx4j.dir}.tmp" />
<touch file="${mx4j.jar}" />
<target name="-copy-jars" unless="">
<copy todir="${hy.jdk}/jre/lib/boot">
<fileset dir="${depends.jars}">
<patternset includes="mx4j_${mx4j.version}/*.jar" />
<copy todir="${hy.jdk}/jre/lib/boot/mx4j_${mx4j.version}/META-INF">
<fileset dir="META-INF" />
<target name="test" />
<target name="-clean-java" unless="">
<delete dir="${hy.jdk}/jre/lib/boot/mx4j_${mx4j.version}" />