111 lines
5.4 KiB
XML
111 lines
5.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project name="qdox" default="package" basedir=".">
|
|
|
|
<!-- ====================================================================== -->
|
|
<!-- Build environment properties -->
|
|
<!-- ====================================================================== -->
|
|
|
|
<property file="build.properties"/>
|
|
|
|
<property name="project.artifactId" value="qdox"/>
|
|
<property name="project.version" value="2.0.1"/>
|
|
|
|
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
|
|
<property name="build.dir" value="target"/>
|
|
<property name="build.outputDir" value="${build.dir}/classes"/>
|
|
<property name="build.srcDir" value="src/main/java"/>
|
|
<property name="build.resourceDir" value="src/main/resources"/>
|
|
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
|
|
|
<property name="compiler.source" value="1.7"/>
|
|
<property name="compiler.target" value="${compiler.source}"/>
|
|
|
|
<!-- ====================================================================== -->
|
|
<!-- Cleaning up target -->
|
|
<!-- ====================================================================== -->
|
|
|
|
<target name="clean" description="Clean the output directory">
|
|
<delete dir="${build.dir}"/>
|
|
</target>
|
|
|
|
<!-- ====================================================================== -->
|
|
<!-- Compilation target -->
|
|
<!-- ====================================================================== -->
|
|
|
|
<target name="compile" description="Compile the code">
|
|
<mkdir dir="${build.outputDir}"/>
|
|
<javac destdir="${build.outputDir}"
|
|
nowarn="false"
|
|
debug="true"
|
|
optimize="false"
|
|
deprecation="true"
|
|
target="${compiler.target}"
|
|
verbose="false"
|
|
fork="false"
|
|
source="${compiler.source}">
|
|
<src>
|
|
<pathelement location="${build.srcDir}"/>
|
|
</src>
|
|
</javac>
|
|
</target>
|
|
|
|
<!-- ====================================================================== -->
|
|
<!-- Javadoc target -->
|
|
<!-- ====================================================================== -->
|
|
|
|
<target name="javadoc" description="Generates the Javadoc of the application">
|
|
<javadoc sourcepath="${build.srcDir}"
|
|
packagenames="*"
|
|
destdir="${reporting.outputDirectory}/apidocs"
|
|
access="protected"
|
|
source="${compiler.source}"
|
|
verbose="false"
|
|
version="true"
|
|
use="true"
|
|
author="true"
|
|
splitindex="false"
|
|
nodeprecated="false"
|
|
nodeprecatedlist="false"
|
|
notree="false"
|
|
noindex="false"
|
|
nohelp="false"
|
|
nonavbar="false"
|
|
serialwarn="false"
|
|
charset="ISO-8859-1"
|
|
linksource="false"
|
|
breakiterator="false"/>
|
|
</target>
|
|
|
|
<!-- ====================================================================== -->
|
|
<!-- Package target -->
|
|
<!-- ====================================================================== -->
|
|
|
|
<target name="package" depends="compile" description="Package the application">
|
|
<jar jarfile="${build.dir}/${build.finalName}.jar"
|
|
compress="true"
|
|
index="false"
|
|
basedir="${build.outputDir}"
|
|
excludes="**/package.html">
|
|
<manifest>
|
|
<attribute name="Bundle-Localization" value="plugin"/>
|
|
<attribute name="Bundle-ManifestVersion" value="2"/>
|
|
<attribute name="Bundle-Name" value="%pluginName"/>
|
|
<attribute name="Bundle-RequiredExecutionEnvironment" value="J2SE-${compiler.target}"/>
|
|
<attribute name="Bundle-SymbolicName" value="com.thoughtworks.qdox"/>
|
|
<attribute name="Bundle-Vendor" value="%providerName"/>
|
|
<attribute name="Bundle-Version" value="${project.version}"/>
|
|
<attribute name="Export-Package" value="com.thoughtworks.qdox.ant;version="${project.version}",com.thoughtworks.qdox.directorywalker;version="${project.version}",com.thoughtworks.qdox.junit;version="${project.version}",com.thoughtworks.qdox.model.util;version="${project.version}",com.thoughtworks.qdox.model;version="${project.version}",com.thoughtworks.qdox.parser.impl;version="${project.version}",com.thoughtworks.qdox.parser.structs;version="${project.version}",com.thoughtworks.qdox.parser;version="${project.version}",com.thoughtworks.qdox.tools;version="${project.version}",com.thoughtworks.qdox;version="${project.version}""/>
|
|
<attribute name="Import-Package" value="junit.framework;version="[3.8.2,4.0.0)";resolution:=optional,org.apache.tools.ant.types;version="[1.7.0,2.0.0)";resolution:=optional,org.apache.tools.ant;version="[1.7.0,2.0.0)";resolution:=optional"/>
|
|
</manifest>
|
|
</jar>
|
|
</target>
|
|
|
|
<!-- ====================================================================== -->
|
|
<!-- A dummy target for the package named after the type it creates -->
|
|
<!-- ====================================================================== -->
|
|
|
|
<target name="jar" depends="package" description="Builds the jar for the application"/>
|
|
|
|
</project>
|