| | |
| | | <!-- Properties for build tools --> |
| | | <property name="buildtools.src.dir" location="src/build-tools" /> |
| | | <property name="buildtools.classes.dir" location="${build.dir}/build-tools/classes" /> |
| | | <property name="buildtools.jar" location="${build.dir}/build-tools/build-tools.jar" /> |
| | | |
| | | <!-- Properties for use in unit testing. --> |
| | | <property name="unittest.testng.dir" location="tests/unit-tests-testng"/> |
| | |
| | | <formatter type="plain" /> |
| | | </checkstyle> |
| | | |
| | | <checkstyle config="${checkstyle.dir}/opends-doctarget-checkstyle.xml" |
| | | failOnViolation="true"> |
| | | <fileset dir="${src.dir}/org/opends/server/api" includes="**/*.java" /> |
| | | <fileset dir="${src.dir}/org/opends/server/protocols/internal" |
| | | includes="**/*.java" /> |
| | | <fileset dir="${src.dir}/org/opends/server/types" |
| | | includes="**/*.java" excludes="**/PublicAPI.java"/> |
| | | <formatter type="plain" /> |
| | | </checkstyle> |
| | | |
| | | <checkstyle config="${checkstyle.dir}/opends-unittest-checkstyle.xml" |
| | | failOnViolation="true"> |
| | | <fileset dir="${unittest.testng.src.dir}" includes="**/*.java" /> |
| | |
| | | |
| | | <mkdir dir="${unittest.resource.dir}" /> |
| | | <typedef name="preptestng" classname="org.opends.build.tools.PrepTestNG" |
| | | classpath="${build.dir}/build-tools/build-tools.jar" /> |
| | | classpath="${buildtools.jar}" /> |
| | | |
| | | |
| | | <preptestng file="${testng.dir}/testng.xml" |
| | |
| | | </classpath> |
| | | </javac> |
| | | |
| | | <jar jarfile="${build.dir}/build-tools/build-tools.jar" |
| | | <jar jarfile="${buildtools.jar}" |
| | | basedir="${buildtools.classes.dir}" compress="true" index="true" /> |
| | | </target> |
| | | |
| | |
| | | <copy todir="${plugin.temp.dir}/example-plugin/src/com/example/opends"> |
| | | <fileset dir="${admin.rules.dir}/example-plugin" includes="*.java,*.xml" excludes="build.xml" /> |
| | | </copy> |
| | | <copy todir="${plugin.temp.dir}/example-plugin/lib" file="${build.dir}/build-tools/build-tools.jar" /> |
| | | <copy todir="${plugin.temp.dir}/example-plugin/lib" file="${buildtools.jar}" /> |
| | | <copy todir="${plugin.temp.dir}/example-plugin/resource/messages/com/example/opends/messages" file="${admin.rules.dir}/example-plugin/example_plugin.properties" /> |
| | | <copy todir="${plugin.temp.dir}/example-plugin/resource/messages/com/example/opends/messages" file="${admin.rules.dir}/example-plugin/example_plugin_fr.properties" /> |
| | | <!-- Package up the plugin in the OpenDJ package folder. --> |