123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project default="jar src distribute" name="MCSUtils">
- <property name="app.name" value="MCSUtils">
- </property>
- <property name="doc" value="${basedir}/docs">
- </property>
- <property name="src" value="${basedir}/src">
- </property>
- <property name="javadoc" value="${doc}/javadoc">
- </property>
- <property name="library" value="${basedir}\lib">
- </property>
- <property name="distribution" value="${basedir}\dist">
- </property>
- <property name="noticename" value="notice.txt">
- </property>
- <fileset id="libraries" defaultexcludes="yes" dir="${library}">
- <include name="**/*.jar" />
- </fileset>
- <fileset id="javadocs" defaultexcludes="yes" dir="${doc}">
- <include name="javadoc/**/*" />
- </fileset>
- <target name="prepare_properties" depends="clean" description="reads properties and sets default values">
- <!-- update build information by incrementing build-number and actualizing date -->
- <propertyfile file="${basedir}/build.properties" comment="MCSUtils interactive build information file. This file is created automatically. DO NOT CHANGE !">
- <entry key="build.num" type="int" default="00" operation="+" pattern="00" />
- <entry key="build.date" type="date" value="now" pattern="dd.MM.yyyy HH:mm:ss" />
- </propertyfile>
- <!-- read build.properties -->
- <property file="${basedir}/build.properties" />
- <property name="releasenumber" value="${releasenum}.${build.num}">
- </property>
- <property name="jarname" value="${app.name}-${releasenumber}.jar">
- </property>
- <property name="zipjarname" value="${jarname}.zip">
- </property>
- <property name="jarsrcname" value="${app.name}-${releasenumber}-src.jar">
- </property>
- <property name="zipjarsrcname" value="${jarsrcname}.zip">
- </property>
- <property name="zipdoc" value="${app.name}-${releasenumber}-docs.zip">
- </property>
- <property name="zipall" value="${app.name}-${releasenumber}-all.zip">
- </property>
- <mkdir dir="${distribution}" />
- <delete>
- <fileset dir="${distribution}">
- <include name="*" />
- </fileset>
- </delete>
- <mkdir dir="${distribution}" />
- </target>
- <target name="javadoc">
- <javadoc destdir="docs/javadoc" access="package" use="true" notree="false" nonavbar="false" noindex="false" splitindex="true" author="true" version="true" nodeprecatedlist="false" nodeprecated="false" packagenames="de.mcs.utils,de.mcs.utils.codecs" sourcepath="src" classpath="bin" overview="E:\DATEN\SOURCEN\java\MCSUtils\src\overview.html" doctitle="MCSUtils" />
- </target>
- <!-- delete intermediate files -->
- <target name="clean" description="delete intermediate files">
- <delete dir="${dist}" />
- </target>
- <!-- compile files -->
- <target name="compile" depends="prepare_properties" description="compile all files">
- <javac srcdir="${src}" destdir="${distribution}" target="1.6" source="1.6">
- <classpath>
- <fileset refid="libraries" />
- <pathelement location="${src}" />
- </classpath>
- <compilerarg value="-deprecation" />
- </javac>
- </target>
- <target name="jar src distribute" depends="javadoc,prepare_properties,compile">
- <jar duplicate="preserve" destfile="${distribution}/${jarname}">
- <fileset dir="${basedir}/bin" />
- <manifest>
- <attribute name="main-version" value="${releasenumber}" />
- <attribute name="main-build-date" value="${build.date}" />
- <attribute name="main-vendor" value="MCS" />
- <attribute name="main-product" value="MCSUtils" />
- </manifest>
- </jar>
- <jar duplicate="preserve" destfile="${distribution}/${app.name}.jar">
- <fileset dir="${basedir}/bin" />
- <manifest>
- <attribute name="main-version" value="${releasenumber}" />
- <attribute name="main-build-date" value="${build.date}" />
- <attribute name="main-vendor" value="MCS" />
- <attribute name="main-product" value="MCSUtils" />
- </manifest>
- </jar>
- <jar duplicate="preserve" destfile="${distribution}/${jarsrcname}">
- <fileset dir="${basedir}/bin" />
- <fileset dir="${basedir}/src" />
- <fileset dir="${basedir}/docs" />
- <manifest>
- <attribute name="main-version" value="${releasenumber}" />
- <attribute name="main-build-date" value="${build.date}" />
- <attribute name="main-vendor" value="MCS" />
- <attribute name="main-product" value="MCSUtils" />
- </manifest>
- </jar>
- </target>
- </project>
|