build.xml revision 1094
0N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
712N/A location="${unittest.testng.dir}/src/server"/>
0N/A location="${build.dir}/unit-tests/classes" />
0N/A location="${build.dir}/unit-tests/report"/>
233N/A location="${build.dir}/unit-tests/resource"/>
114N/A <!-- Properties for use in functional/integration testing. -->
114N/A location="tests/integration-tests-testng" />
114N/A location="${functest.testng.dir}/src"/>
567N/A location="${build.dir}/quicksetup/classes" />
712N/A location="${build.dir}/statuspanel/classes" />
675N/A location="${cvgdiff.dir}/report" />
422N/A location="${coverage.dir}/reports/unit" />
422N/A location="${coverage.dir}/instrumentedcode" />
422N/A location="${coverage.dir}/gathereddata" />
110N/A location="${resource.dir}/DynamicConstants.java.stubs" />
735N/A <target name="precommit" depends="checkstyle,clean,copyrightdates,eolstyle,dsml,javadoc,testwithcoverage"
1019N/A depends="enableweave,checkstyle,clean,copyrightdates,eolstyle,dsml,javadoc,testallwithcoverage"
121N/A <!-- Perform common initialization common to several targets after cleaning out the previous build environment. -->
0N/A ! java.vm.vendor property, which wreaks havoc with DynamicConstants. This
729N/A <!-- Build the DynamicConstants.java file and any of its dependencies. -->
109N/A <!-- Generate the DynamicConstants.java file.
109N/A VERSION_QUALIFIER, FIX_IDS, timestamp, user.name, java.version,
984N/A java.vendor, java.vm.version, JVM_VENDOR, DEBUG_BUILD, REVISION_NUMBER,
109N/A tofile="${dynconstants.file}"
1008N/A <fileset dir="${basedir}" includes="**/*.java" excludes="build/**/*,src/admin/generated/**/*" />
1008N/A <fileset dir="${basedir}" includes="**/*.java" excludes="build/**/*,src/admin/generated/**/*" />
0N/A classpath="${checkstyle.dir}/checkstyle-all-4.1.jar" />
712N/A excludes="**/package-info.java"
0N/A ! DynamicConstants.java won't be regenerated.
0N/A location="${package.dir}/OpenDS-${pkgversion}" />
0N/A <!-- Clean up a minimal set of files/directories for the rebuild. -->
0N/A <!-- Generate the OpenDS.jar file -->
563N/A <!-- Generate the quicksetup.jar file -->
1008N/A <!-- Generate the statuspanel.jar file -->
0N/A location="${package.dir}/OpenDS-${pkgversion}" />
1008N/A <fixcrlf srcDir="${scripts.dir}" destDir="${pdir}/bin" includes="*.bat,README_WINDOWS.txt" eol="crlf" />
920N/A tofile="${pdir}/config/upgrade/config.ldif.${REVISION_NUMBER}" />
920N/A toFile="${pdir}/config/upgrade/schema.ldif.${REVISION_NUMBER}" />
623N/A excludes="OpenDS-${pkgversion}/bin/*,OpenDS-${pkgversion}/setup,OpenDS-${pkgversion}/uninstall"
623N/A <zipfileset dir="${package.dir}" includes="OpenDS-${pkgversion}/setup,OpenDS-${pkgversion}/uninstall"
564N/A classpath="${build.dir}/build-tools/build-tools.jar" />
233N/A tofile="${unittest.resource.dir}/testng.xml"
712N/A grouplist="${test.groups}"
567N/A packagelist="${test.packages}"
712N/A classList="${test.classes}"
567N/A methodList="${test.methods}" />
712N/A then we overwrite the testng.xml that we just generated
712N/A with testng-failed.xml, which TestNG generated. -->
712N/A file="${unittest.report.dir}/testng-failed.xml"/>
712N/A unless="testng-failed.xml.exists"/>
712N/A tofile="${unittest.resource.dir}/testng.xml"
675N/A outputpath="${cvgdiff.report.dir}"
712N/A diffpath="${test.diff.srcpath}"
699N/A enabled="${test.diff.enabled}"
699N/A verbose="${test.diff.verbose}" />
712N/A <echo message="This target is deprecated. Please use the test target as it now supports the test.* properties." />
712N/A description="Run all of the TestNG tests (including 'slow' ones) with assertions enabled. See 'testwithcoverage' for properties you can set.">
712N/A description="Execute the Directory Server TestNG unit tests in text mode. Set '-Dorg.opends.test.suppressOutput=false' to see the output from the unit tests. Set '-Dtest.failures=true' to run only the tests that failed previously.">
699N/A description="Execute the Directory Server TestNG unit tests in text mode with a coverage report. Use -Dtest.packages, -Dtest.classes, or -Dtest.methods to control which unit tests are run. Use -Dtest.diff.srcpath to control which src files show up in the coverage diff. See the 'test' package for other properties you can set.">
233N/A <!-- Execute the Directory Server TestNG unit tests in text mode with a coverage report and slow tests. -->
318N/A <!-- Execute the Directory Server TestNG unit tests specified from CLI in text mode with a coverage report. -->
675N/A <echo message="This target is deprecated. Please use the testwithcoverage target as it now supports the test.* properties." />
1094N/A <echo message=" -Dorg.opends.test.debug.target=org.opends.server.core:level=verbose,category=data_access"/>
902N/A <echo message=" org.opends.server:level=verbose,category=caught|data|database_access|message|protocol" />
121N/A <!-- Internal target to execute the Directory Server TestNG unit tests in text mode after everything has been initialized. -->
503N/A <!-- This sets org.opends.test.suppressOutput if and only if it's not
1016N/A <!-- This sets org.opends.test.pauseOnFailure if and only if it's not
902N/A <!-- This sets org.opends.test.debug.target if and only if its's not
1090N/A value="org.opends.server:level=info,category=caught|data|database_access|message|protocol">
902N/A <!-- Cleanout the old reports. Otherwise, the old testng-failed.xml
712N/A listeners="org.opends.server.TestListener org.testng.reporters.FailedReporter"
712N/A file="${unittest.report.dir}/.tests-failed-marker"/>
1008N/A <target name="compileadmin" depends="validateadmin" description="Code generation for configuration Object.">
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/*Configuration.xml" style="${admin.rules.dir}/metaMO.xsl">
1008N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.java" />
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/Package.xml" style="${admin.rules.dir}/package-info.xsl">
1008N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)\.xml$$" to="\1/meta/package-info.java" />
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/*Configuration.xml" style="${admin.rules.dir}/clientMO.xsl">
1008N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/client/\2CfgClient.java" />
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/Package.xml" style="${admin.rules.dir}/package-info.xsl">
1008N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)\.xml$$" to="\1/client/package-info.java" />
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/*Configuration.xml" style="${admin.rules.dir}/serverMO.xsl">
1008N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/server/\2Cfg.java" />
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.src.dir}" includes="**/Package.xml" style="${admin.rules.dir}/package-info.xsl">
1008N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)\.xml$$" to="\1/server/package-info.java" />
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${classes.dir}/admin/profiles/ldap" includes="**/*Configuration.xml" style="${admin.rules.dir}/ldapMOProfile.xsl">
1008N/A <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.properties" />
1008N/A <xslt basedir="${admin.defn.dir}" destdir="${admin.temp.dir}" extension=".manifest" includes="**/*Configuration.xml" style="${admin.rules.dir}/manifestMO.xsl"/>
1008N/A <target name="validateadmin" description="Validate core administration component XML definition files.">
1008N/A <schema namespace="http://www.opends.org/admin-ldap" file="${admin.rules.dir}/admin-ldap.xsd"/>
1008N/A <copy todir="${plugin.temp.dir}/example-plugin" file="${admin.rules.dir}/example-plugin/build.xml" />
1008N/A <copy todir="${plugin.temp.dir}/example-plugin" file="${admin.rules.dir}/example-plugin/README" />
1008N/A <copy todir="${plugin.temp.dir}/example-plugin/resource/schema" file="${admin.rules.dir}/example-plugin/99-example-plugin.ldif" />
1008N/A <copy todir="${plugin.temp.dir}/example-plugin/resource/config" file="${admin.rules.dir}/example-plugin/example-plugin.ldif" />
1008N/A <fileset dir="${admin.rules.dir}/example-plugin" includes="*.java,*.xml" excludes="build.xml" />