| | |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! |
| | | ! Portions Copyright 2006 Sun Microsystems, Inc. |
| | | ! Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | ! --> |
| | | |
| | | <project name="Directory Server" basedir="." default="package"> |
| | |
| | | <!-- Properties for the checkstyle tool. --> |
| | | <property name="checkstyle.dir" location="${ext.dir}/checkstyle" /> |
| | | |
| | | <!-- Properties for the SVNKit tool. --> |
| | | <property name="svnkit.dir" location="${ext.dir}/svnkit" /> |
| | | |
| | | <!-- Properties for Directory Server version information. --> |
| | | <property name="dynconstants.file" |
| | | location="${src.dir}/org/opends/server/util/DynamicConstants.java" /> |
| | |
| | | |
| | | |
| | | <!-- The build target that should be used before committing code. --> |
| | | <target name="precommit" depends="checkstyle,clean,dsml,javadoc,testwithcoverage" |
| | | <target name="precommit" depends="checkstyle,clean,copyrightdates,dsml,javadoc,testwithcoverage" |
| | | description="Perform all processing needed before committing code." /> |
| | | |
| | | |
| | |
| | | |
| | | <!-- The build target that should be used to build everything. --> |
| | | <target name="all" |
| | | depends="checkstyle,dsml,javadoc,testallwithcoverage" |
| | | depends="checkstyle,clean,copyrightdates,dsml,javadoc,testallwithcoverage" |
| | | description="Build using all defined targets." /> |
| | | |
| | | |
| | |
| | | <isset property="JVM_VENDOR" /> |
| | | </not> |
| | | </condition> |
| | | </target> |
| | | |
| | | |
| | | |
| | | |
| | | <!-- Build the DynamicConstants.java file and any of its dependencies. --> |
| | | <target name="dynamicconstants" depends="init,buildtools"> |
| | | <!-- Get the revision number of the current Subversion workspace --> |
| | | <taskdef name="getsvnrevision" |
| | | classname="org.opends.build.tools.GetSubversionRevision"> |
| | | <classpath> |
| | | <fileset dir="${build.dir}/build-tools"> |
| | | <include name="*.jar" /> |
| | | </fileset> |
| | | <fileset dir="${svnkit.dir}"> |
| | | <include name="*.jar" /> |
| | | </fileset> |
| | | </classpath> |
| | | </taskdef> |
| | | |
| | | <getsvnrevision property="REVISION_NUMBER" /> |
| | | |
| | | |
| | | <!-- Generate the DynamicConstants.java file. |
| | | Be warned that the .stubs file references the following properties |
| | | PRODUCT_NAME, SHORT_NAME, MAJOR_VERSION, MINOR_VERSION, POINT_VERSION, |
| | | VERSION_QUALIFIER, FIX_IDS, timestamp, user.name, java.version, |
| | | java.vendor, java.vm.version, JVM_VENDOR, DEBUG_BUILD |
| | | java.vendor, java.vm.version, JVM_VENDOR, DEBUG_BUILD, REVISION_NUMBER |
| | | If you change the name of any of those properties in this build.xml |
| | | you'll need to relfect the same change in the .stubs file |
| | | --> |
| | |
| | | |
| | | |
| | | |
| | | <!-- Check modified files to see any copyright updates are needed. --> |
| | | <target name="copyrightdates" depends="buildtools" |
| | | description="Ensure updated files have the correct copyright year" > |
| | | <taskdef name="checkcopyrightdates" |
| | | classname="org.opends.build.tools.CheckCopyrightDates"> |
| | | <classpath> |
| | | <fileset dir="${build.dir}/build-tools"> |
| | | <include name="*.jar" /> |
| | | </fileset> |
| | | <fileset dir="${svnkit.dir}"> |
| | | <include name="*.jar" /> |
| | | </fileset> |
| | | </classpath> |
| | | </taskdef> |
| | | |
| | | <checkcopyrightdates> |
| | | <fileset dir="${src.dir}" includes="**/*.java" /> |
| | | <fileset dir="${quicksetup.src.dir}" includes="**/*.java" /> |
| | | <fileset dir="${statuspanel.src.dir}" includes="**/*.java" /> |
| | | <fileset dir="${unittest.testng.src.dir}" includes="**/*.java" /> |
| | | <fileset dir="${functest.testng.src.dir}" includes="**/*.java" /> |
| | | <fileset dir="${basedir}" includes="**/*.xml" excludes="build/**/*" /> |
| | | <fileset dir="${basedir}" includes="**/*.sh" excludes="build/**/*" /> |
| | | <fileset dir="${basedir}" includes="**/*.bat" excludes="build/**/* " /> |
| | | <fileset dir="${basedir}" includes="**/*.ldif" excludes="build/**/*" /> |
| | | </checkcopyrightdates> |
| | | </target> |
| | | |
| | | |
| | | |
| | | |
| | | <!-- Ensure that the source code meets basic style requirements. --> |
| | | <target name="checkstyle" description="Perform basic source style checks"> |
| | | |
| | |
| | | |
| | | |
| | | <!-- Compile the Directory Server source files. --> |
| | | <target name="cleancompile" depends="cleaninit,compile,compilequicksetup,compilestatuspanel" |
| | | <target name="cleancompile" |
| | | depends="cleaninit,compile,compilequicksetup,compilestatuspanel" |
| | | description="Recompile the Directory Server source files."> |
| | | </target> |
| | | |
| | | <!-- Compile the Directory Server source files. --> |
| | | <target name="compile" |
| | | depends="init" |
| | | depends="init,dynamicconstants" |
| | | description="Compile the Directory Server source files."> |
| | | |
| | | <mkdir dir="${classes.dir}" /> |
| | |
| | | </not> |
| | | </condition> |
| | | |
| | | <condition property="test.diff.svnpath" value=""> |
| | | <not> |
| | | <isset property="test.diff.svnpath" /> |
| | | </not> |
| | | </condition> |
| | | |
| | | <condition property="test.diff.enabled" value="true"> |
| | | <not> |
| | | <isset property="test.diff.disable" /> |
| | |
| | | <fileset dir="${emma.dir}"> |
| | | <include name="*.jar" /> |
| | | </fileset> |
| | | <fileset dir="${svnkit.dir}"> |
| | | <include name="*.jar" /> |
| | | </fileset> |
| | | </classpath> |
| | | </taskdef> |
| | | |
| | | <coveragediff emmadatapath="${coverage.data.dir}" |
| | | outputpath="${cvgdiff.report.dir}" |
| | | diffpath="${test.diff.srcpath}" |
| | | svnpath="${test.diff.svnpath}" |
| | | enabled="${test.diff.enabled}" |
| | | verbose="${test.diff.verbose}" /> |
| | | |
| | |
| | | <fileset dir="${emma.dir}"> |
| | | <include name="*.jar" /> |
| | | </fileset> |
| | | |
| | | <fileset dir="${svnkit.dir}"> |
| | | <include name="*.jar" /> |
| | | </fileset> |
| | | |
| | | <path refid="run.classpath" /> |
| | | </classpath> |
| | | </javac> |