2005-08-13 23:18:03 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!--
|
2006-05-24 22:21:06 +00:00
|
|
|
build.xml for jdnssec-tools
|
|
|
|
===========================
|
2005-08-13 23:18:03 +00:00
|
|
|
|
|
|
|
Just run Ant using Ant's scripts ("ant") to compile. Once you
|
|
|
|
have done that, a "build/classes" directory will be created
|
|
|
|
containing the compiled class files.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<project default="compile" basedir=".">
|
|
|
|
|
|
|
|
<property file="build.properties" />
|
|
|
|
<property file="VERSION" />
|
2016-12-02 22:49:09 +00:00
|
|
|
|
2006-05-24 22:21:06 +00:00
|
|
|
<property name="sectools-distname" value="jdnssec-tools-${version}" />
|
2005-08-13 23:18:03 +00:00
|
|
|
|
|
|
|
<property name="build.dir" value="build" />
|
|
|
|
<property name="build.dest" value="${build.dir}/classes" />
|
|
|
|
<property name="build.lib.dest" value="${build.dir}/lib" />
|
|
|
|
<property name="build.src" value="src" />
|
|
|
|
|
|
|
|
<property name="packages" value="com.verisignlabs.dnssec.*" />
|
2005-11-08 19:08:13 +00:00
|
|
|
<property name="doc.dir" value="docs" />
|
2005-08-13 23:18:03 +00:00
|
|
|
<property name="javadoc.dest" value="${doc.dir}/javadoc" />
|
|
|
|
|
|
|
|
<property name="lib.dir" value="lib" />
|
|
|
|
|
|
|
|
<!-- set the standard classpath -->
|
|
|
|
<path id="project.classpath">
|
|
|
|
<pathelement location="${build.dest}" />
|
|
|
|
<fileset dir="${lib.dir}" includes="*.jar,*.zip" />
|
|
|
|
</path>
|
|
|
|
<property name="project.classpath" refid="project.classpath" />
|
|
|
|
|
|
|
|
<target name="prepare-src">
|
|
|
|
<mkdir dir="${build.dest}" />
|
|
|
|
<mkdir dir="${build.lib.dest}" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="sectools" depends="prepare-src" >
|
2016-12-02 22:49:09 +00:00
|
|
|
<javac srcdir="${build.src}"
|
2005-08-13 23:18:03 +00:00
|
|
|
destdir="${build.dest}"
|
|
|
|
classpathref="project.classpath"
|
2016-12-02 22:49:09 +00:00
|
|
|
deprecation="true"
|
2011-02-02 19:52:37 +00:00
|
|
|
includeantruntime="false"
|
2018-02-28 07:47:40 +00:00
|
|
|
includes="com/verisignlabs/dnssec/"
|
2018-07-14 22:06:49 +00:00
|
|
|
debug="true"
|
2018-02-28 07:47:40 +00:00
|
|
|
source="1.7"
|
|
|
|
target="1.7" />
|
2005-08-13 23:18:03 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="sectools-jar" depends="usage,sectools">
|
2006-05-24 22:21:06 +00:00
|
|
|
<jar jarfile="${build.lib.dest}/jdnssec-tools.jar"
|
2005-08-13 23:18:03 +00:00
|
|
|
basedir="${build.dest}"
|
|
|
|
includes="com/verisignlabs/dnssec/" />
|
|
|
|
</target>
|
|
|
|
|
2016-12-02 22:49:09 +00:00
|
|
|
<target name="compile"
|
2005-08-13 23:18:03 +00:00
|
|
|
depends="usage,sectools-jar">
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="javadoc" depends="usage">
|
|
|
|
<mkdir dir="${javadoc.dest}"/>
|
2016-12-02 22:49:09 +00:00
|
|
|
<javadoc packagenames="${packages}"
|
2005-08-13 23:18:03 +00:00
|
|
|
classpath="${project.classpath}"
|
2016-12-02 22:49:09 +00:00
|
|
|
sourcepath="${build.src}"
|
2005-08-13 23:18:03 +00:00
|
|
|
destdir="${javadoc.dest}"
|
2016-12-02 22:49:09 +00:00
|
|
|
verbose="true" author="true"
|
|
|
|
windowtitle="jdnssec-tools-${version}"
|
2005-08-13 23:18:03 +00:00
|
|
|
use="true">
|
2016-12-02 22:49:09 +00:00
|
|
|
<link href="https://docs.oracle.com/javase/8/docs/api/" />
|
2005-08-13 23:18:03 +00:00
|
|
|
<link href="http://www.xbill.org/dnsjava/doc/" />
|
|
|
|
</javadoc>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="clean" depends="usage">
|
|
|
|
<delete dir="${build.dest}" />
|
|
|
|
<delete dir="${build.lib.dest}" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="sectools-dist-prepare" depends="usage, compile, javadoc">
|
|
|
|
<mkdir dir="${sectools-distname}" />
|
|
|
|
|
|
|
|
<copy todir="${sectools-distname}">
|
|
|
|
<fileset dir=".">
|
|
|
|
<include name="bin/jdnssec-*" />
|
|
|
|
<include name="lib/*.jar" />
|
|
|
|
<include name="lib/*.zip" />
|
|
|
|
<include name="doc/**" />
|
|
|
|
<include name="licenses/" />
|
|
|
|
<include name="src/**/*.java" />
|
|
|
|
<include name="VERSION" />
|
|
|
|
<include name="README" />
|
|
|
|
<include name="build.xml" />
|
|
|
|
<include name="build.properties" />
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<copy todir="${sectools-distname}/lib">
|
|
|
|
<fileset dir="${build.lib.dest}">
|
|
|
|
<include name="*.jar" />
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="sectools-dist-clean">
|
|
|
|
<delete dir="${sectools-distname}" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<patternset id="exec.files">
|
2006-10-10 23:18:28 +00:00
|
|
|
<include name="${sectools-distname}/bin/jdnssec-*" />
|
2005-08-13 23:18:03 +00:00
|
|
|
</patternset>
|
|
|
|
|
|
|
|
<patternset id="src.files">
|
|
|
|
<include name="${sectools-distname}/src/" />
|
|
|
|
<include name="${sectools-distname}/build.xml" />
|
|
|
|
<include name="${sectools-distname}/build.properties" />
|
|
|
|
</patternset>
|
|
|
|
|
|
|
|
<patternset id="bin.files">
|
|
|
|
<include name="${sectools-distname}/doc/" />
|
|
|
|
<include name="${sectools-distname}/lib/" />
|
|
|
|
<include name="${sectools-distname}/licenses/" />
|
|
|
|
<include name="${sectools-distname}/VERSION" />
|
|
|
|
<include name="${sectools-distname}/README" />
|
|
|
|
</patternset>
|
|
|
|
|
|
|
|
<target name="sectools-bin-dist" depends="sectools-dist-prepare">
|
|
|
|
<tar destfile="${sectools-distname}.tar.gz" compression="gzip">
|
|
|
|
<tarfileset mode="755" dir=".">
|
|
|
|
<patternset refid="exec.files" />
|
|
|
|
</tarfileset>
|
|
|
|
<tarfileset dir=".">
|
|
|
|
<patternset refid="bin.files" />
|
|
|
|
</tarfileset>
|
|
|
|
</tar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="sectools-src-dist" depends="sectools-dist-prepare">
|
|
|
|
<tar destfile="${sectools-distname}-src.tar.gz"
|
|
|
|
compression="gzip">
|
|
|
|
<tarfileset dir=".">
|
|
|
|
<patternset refid="src.files" />
|
|
|
|
</tarfileset>
|
|
|
|
</tar>
|
|
|
|
</target>
|
|
|
|
|
2016-12-02 22:49:09 +00:00
|
|
|
<target name="sectools-dist"
|
2005-08-13 23:18:03 +00:00
|
|
|
depends="sectools-bin-dist,sectools-src-dist, sectools-dist-clean">
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="dist" depends="sectools-dist">
|
|
|
|
<echo message="do not forget to tag the release:" />
|
2005-10-27 22:42:57 +00:00
|
|
|
<echo message=" svn-tag ${version}" />
|
2005-08-13 23:18:03 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="usage">
|
|
|
|
<echo message=" " />
|
|
|
|
<echo message="SECTOOLS v. ${version} Build System" />
|
|
|
|
<echo message="--------------------------------" />
|
|
|
|
<echo message="Available Targets:" />
|
|
|
|
<echo message=" compile (default) - compiles the source code, creates jar" />
|
|
|
|
<echo message=" javadoc - create javadoc from source" />
|
|
|
|
<echo message=" clean - delete class files" />
|
|
|
|
<echo message=" dist - package it up" />
|
|
|
|
<echo message=" usage - this help message" />
|
|
|
|
<echo message=" " />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|