| <?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 |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <project name="JWS Build" default="build" basedir="."> |
| <description>Build for jws component</description> |
| |
| <property name="hy.component" value="classlib" /> |
| <property name="hy.module" value="jws" /> |
| <property name="hy.target" location="${basedir}/../../target" /> |
| <import file="${hy.target}/hdk/build/ant/properties.xml" /> |
| <import file="${hy.hdk}/build/ant/depends.xml" /> |
| |
| <target name="build" depends="check-depends" /> |
| |
| <target name="check-depends" depends="-check,-copy-jars" /> |
| <target name="-check"> |
| <check-one-file src="${jws.url}" dest="${jws.jar}" /> |
| </target> |
| |
| <target name="fetch-depends"> |
| <mkdir dir="${jws.dir}" /> |
| <download-one-file src="${jws.url}" dest="${jws.jar}" |
| md5="${jws.md5}" /> |
| </target> |
| |
| <target name="-copy-jars" unless="skip.java.build"> |
| <copy todir="${hy.jdk}/jre/lib/boot/${jws.basename}" |
| file="${jws.jar}" /> |
| <copy todir="${hy.jdk}/jre/lib/boot/${jws.basename}/META-INF"> |
| <fileset dir="META-INF" /> |
| </copy> |
| </target> |
| |
| <target name="test" /> |
| |
| <target name="clean" unless="skip.java.build"> |
| <delete dir="${hy.jdk}/jre/lib/boot/${jws.basename}" /> |
| </target> |
| |
| </project> |