From 952d5099b834ea5f16d657a0f2459d6531a0ed88 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 10 Dec 2015 10:12:01 +0000
Subject: [PATCH] OPENDJ-2305 Example Plugin does not compile

---
 /dev/null                                                           |   96 --------------------------------
 opendj-server-legacy/experimental/README                            |    8 --
 opendj-server-legacy/pom.xml                                        |   22 -------
 opendj-server-legacy/src/main/assembly/opendj-archive-component.xml |    6 --
 4 files changed, 1 insertions(+), 131 deletions(-)

diff --git a/opendj-server-legacy/experimental/README b/opendj-server-legacy/experimental/README
index f0a5762..49db1d5 100644
--- a/opendj-server-legacy/experimental/README
+++ b/opendj-server-legacy/experimental/README
@@ -2,11 +2,3 @@
 which are not fit for production use. Some are not actively maintained,
 and may not even compile.
 
-To create a new experimental extension use the provided example-plugin
-as a template. Unzip it, rename the extension's directory to something
-more appropriate and configure the Ant build.xml file contained within
-as directed.
-
-Note that any I18N properties should be contained in a file called
-${extension.name}.properties.
-
diff --git a/opendj-server-legacy/pom.xml b/opendj-server-legacy/pom.xml
index c2f40b1..2897182 100644
--- a/opendj-server-legacy/pom.xml
+++ b/opendj-server-legacy/pom.xml
@@ -374,7 +374,7 @@
                   <version>${project.version}</version>
                   <type>jar</type>
                   <overWrite>true</overWrite>
-                  <outputDirectory>${project.build.directory}/config/admin/defn/org/opends/server/admin/std</outputDirectory>
+                  <outputDirectory>${old.config.files.path}</outputDirectory>
                   <includes>config/xml/**/*.xml</includes>
                 </artifactItem>
               </artifactItems>
@@ -1037,26 +1037,6 @@
       <plugin>
         <artifactId>maven-assembly-plugin</artifactId>
         <executions>
-          <!-- Package the example plugin in a zip -->
-          <execution>
-            <id>build-example-package</id>
-            <phase>prepare-package</phase>
-            <goals>
-              <goal>single</goal>
-            </goals>
-            <configuration>
-              <finalName>example-plugin</finalName>
-              <addMavenDescriptor>false</addMavenDescriptor>
-              <appendAssemblyId>false</appendAssemblyId>
-              <attach>false</attach>
-              <descriptors>
-                <descriptor>src/main/assembly/example-plugin-assembly.xml</descriptor>
-              </descriptors>
-              <formats>
-                <format>zip</format>
-              </formats>
-            </configuration>
-          </execution>
           <!-- Creates the archive folder -->
           <execution>
             <id>build-opendj-archive</id>
diff --git a/opendj-server-legacy/resource/admin/example-plugin/99-example-plugin.ldif b/opendj-server-legacy/resource/admin/example-plugin/99-example-plugin.ldif
deleted file mode 100644
index 96b26b2..0000000
--- a/opendj-server-legacy/resource/admin/example-plugin/99-example-plugin.ldif
+++ /dev/null
@@ -1,37 +0,0 @@
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License").  You may not use this file except in compliance
-# with the License.
-#
-# You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
-# or http://forgerock.org/license/CDDLv1.0.html.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at legal-notices/CDDLv1_0.txt.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information:
-#      Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-#      Copyright 2008 Sun Microsystems, Inc.
-#
-#
-# This file contains the attribute type and objectclass definitions for use
-# with the Directory Server configuration.
-dn: cn=schema
-objectClass: top
-objectClass: ldapSubentry
-objectClass: subschema
-attributeTypes: ( ds-cfg-example-plugin-message-oid NAME 'ds-cfg-example-plugin-message'
-  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE
-  X-ORIGIN 'OpenDS Directory Server' )
-objectClasses: ( ds-cfg-example-plugin-oid NAME 'ds-cfg-example-plugin'
-  SUP ds-cfg-plugin STRUCTURAL MAY ( ds-cfg-example-plugin-message )
-  X-ORIGIN 'OpenDS Directory Server' )
diff --git a/opendj-server-legacy/resource/admin/example-plugin/ExamplePlugin.java b/opendj-server-legacy/resource/admin/example-plugin/ExamplePlugin.java
deleted file mode 100644
index 8728ca0..0000000
--- a/opendj-server-legacy/resource/admin/example-plugin/ExamplePlugin.java
+++ /dev/null
@@ -1,181 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- *      Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- *      Copyright 2006-2008 Sun Microsystems, Inc.
- *      Portions Copyright 2014-2015 ForgeRock AS
- */
-package com.example.opends;
-
-import static org.opends.server.loggers.ErrorLogger.logError;
-
-import java.util.List;
-import java.util.Set;
-
-import org.opends.server.api.plugin.PluginType;
-import org.opends.server.api.plugin.PluginResult;
-import org.opends.server.api.plugin.DirectoryServerPlugin;
-import org.opends.server.config.ConfigException;
-import org.forgerock.opendj.config.server.ConfigChangeResult;
-
-import org.forgerock.opendj.ldap.ResultCode;
-import org.opends.server.types.InitializationException;
-import org.opends.server.admin.server.ConfigurationChangeListener;
-import org.opends.messages.Message;
-import org.opends.messages.Category;
-import org.opends.messages.Severity;
-
-import com.example.opends.server.ExamplePluginCfg;
-
-import static com.example.opends.messages.ExamplePluginMessages.*;
-
-/**
- * The example plugin implementation class. This plugin will output
- * the configured message to the error log during server start up.
- */
-public class ExamplePlugin extends
-  DirectoryServerPlugin<ExamplePluginCfg> implements
-  ConfigurationChangeListener<ExamplePluginCfg> {
-
-  // The current configuration.
-  private ExamplePluginCfg config;
-
-
-
-  /**
-   * Default constructor.
-   */
-  public ExamplePlugin() {
-    super();
-  }
-
-
-  /**
-   * Performs any initialization necessary for this plugin.  This will
-   * be called as soon as the plugin has been loaded and before it is
-   * registered with the server.
-   *
-   * @param  pluginTypes    The set of plugin types that indicate the
-   *                        ways in which this plugin will be invoked.
-   * @param  configuration  The configuration for this plugin.
-   *
-   * @throws  ConfigException  If the provided entry does not contain
-   *                           a valid configuration for this plugin.
-   *
-   * @throws  InitializationException  If a problem occurs while
-   *                                   initializing the plugin that is
-   *                                   not related to the server
-   *                                   configuration.
-   */
-  @Override()
-  public void initializePlugin(Set<PluginType> pluginTypes,
-      ExamplePluginCfg configuration)
-      throws ConfigException, InitializationException {
-    // This plugin may only be used as a server startup plugin.
-    for (PluginType t : pluginTypes) {
-      switch (t) {
-      case STARTUP:
-        // This is fine.
-        break;
-      default:
-        Message message = ERR_INITIALIZE_PLUGIN.get(String.valueOf(t));
-        throw new ConfigException(message);
-      }
-    }
-
-    // Register change listeners. These are not really necessary for
-    // this plugin since it is only used during server start-up.
-    configuration.addExampleChangeListener(this);
-
-    // Save the configuration.
-    this.config = configuration;
-  }
-
-
-
-  /**
-   * Performs any processing that should be done when the Directory
-   * Server is in the process of starting.  This method will be called
-   * after virtually all other initialization has been performed but
-   * before the connection handlers are started.
-   *
-   * @return  The result of the startup plugin processing.
-   */
-  @Override
-  public PluginResult.Startup doStartup() {
-    // Log the provided message.
-    Message message = NOTE_DO_STARTUP.get(String.valueOf(config.getMessage()));
-    logError(message);
-    return PluginResult.Startup.continueStartup();
-  }
-
-
-
-  /**
-   * Applies the configuration changes to this change listener.
-   *
-   * @param config
-   *          The new configuration containing the changes.
-   * @return Returns information about the result of changing the
-   *         configuration.
-   */
-  public ConfigChangeResult applyConfigurationChange(
-      ExamplePluginCfg config) {
-    // The new configuration has already been validated.
-
-    // Log a message to say that the configuration has changed. This
-    // isn't necessary, but we'll do it just to show that the change
-    // has taken effect.
-    Message message = NOTE_APPLY_CONFIGURATION_CHANGE.get(
-                                      String.valueOf(this.config.getMessage()),
-                                      String.valueOf(config.getMessage()));
-    logError(message);
-
-    // Update the configuration.
-    this.config = config;
-
-    // Update was successfull, no restart required.
-    return new ConfigChangeResult();
-  }
-
-
-
-  /**
-   * Indicates whether the proposed change to the configuration is
-   * acceptable to this change listener.
-   *
-   * @param config
-   *          The new configuration containing the changes.
-   * @param messages
-   *          A list that can be used to hold messages about why the
-   *          provided configuration is not acceptable.
-   * @return Returns <code>true</code> if the proposed change is
-   *         acceptable, or <code>false</code> if it is not.
-   */
-  public boolean isConfigurationChangeAcceptable(
-      ExamplePluginCfg config, List<Message> messages) {
-    // The only thing that can be validated here is the plugin's
-    // message. However, it is always going to be valid, so let's
-    // always return true.
-    return true;
-  }
-}
diff --git a/opendj-server-legacy/resource/admin/example-plugin/ExamplePluginConfiguration.xml b/opendj-server-legacy/resource/admin/example-plugin/ExamplePluginConfiguration.xml
deleted file mode 100644
index 7d9d1b6..0000000
--- a/opendj-server-legacy/resource/admin/example-plugin/ExamplePluginConfiguration.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<adm:managed-object name="example-plugin" plural-name="example-plugins"
-  package="com.example.opends" extends="plugin"
-  parent-package="org.opends.server.admin.std"
-  xmlns:adm="http://www.opends.org/admin"
-  xmlns:ldap="http://www.opends.org/admin-ldap">
-  <adm:synopsis>An example "Hello World" plugin.</adm:synopsis>
-  <adm:profile name="ldap">
-    <ldap:object-class>
-      <ldap:name>ds-cfg-example-plugin</ldap:name>
-      <ldap:superior>ds-cfg-plugin</ldap:superior>
-    </ldap:object-class>
-  </adm:profile>
-  <adm:property-override name="java-class">
-    <adm:default-behavior>
-      <adm:defined>
-        <adm:value>com.example.opends.ExamplePlugin</adm:value>
-      </adm:defined>
-    </adm:default-behavior>
-  </adm:property-override>
-  <adm:property name="message">
-    <adm:synopsis>The message to be logged.</adm:synopsis>
-    <adm:default-behavior>
-      <adm:defined>
-        <adm:value>Hello World</adm:value>
-      </adm:defined>
-    </adm:default-behavior>
-    <adm:syntax>
-      <adm:string />
-    </adm:syntax>
-    <adm:profile name="ldap">
-      <ldap:attribute>
-        <ldap:name>ds-cfg-example-plugin-message</ldap:name>
-      </ldap:attribute>
-    </adm:profile>
-  </adm:property>
-</adm:managed-object>
diff --git a/opendj-server-legacy/resource/admin/example-plugin/Package.xml b/opendj-server-legacy/resource/admin/example-plugin/Package.xml
deleted file mode 100644
index 2fdb8df..0000000
--- a/opendj-server-legacy/resource/admin/example-plugin/Package.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<adm:package name="com.example.opends"
-  xmlns:adm="http://www.opends.org/admin"
-  xmlns:ldap="http://www.opends.org/admin-ldap">
-  <adm:synopsis>Example OpenDS Hello World plugin.</adm:synopsis>
-</adm:package>
diff --git a/opendj-server-legacy/resource/admin/example-plugin/README b/opendj-server-legacy/resource/admin/example-plugin/README
deleted file mode 100644
index 8d2a2b2..0000000
--- a/opendj-server-legacy/resource/admin/example-plugin/README
+++ /dev/null
@@ -1,47 +0,0 @@
-This folder contains source code for an example "Hello World" style
-plugin. It features a plugin which has a configurable message (the
-default being "Hello World") which is displayed as a notice message
-when OpenDJ directory server is started.
-
-In order to build and use this example plugin, perform the following
-steps while the server is stopped:
-
-  1. Then unzip the example-plugin.zip (in place):
-
-     unzip example-plugin.zip
-
-  2. Go into the example-plugin source folder:
-
-     cd example-plugin
-
-  3. And build the plugin (this requires Ant version 7 and Xalan-Java):
-
-     ant install
-
-     If this step fails for you as is, you can find Ant 7 and Xalan-Java
-     in the OpenDJ ext/ directory after checking the source out with
-     Subversion. Substitute your full path to OpenDJ sources for /src
-     in the following command:
-
-     /src/ext/ant/bin/ant -Dxalan.directory=/src/ext/xalan-j/ install
-
-  4. This will copy the following files into the parent OpenDJ
-     installation:
-
-     lib/extensions/example-plugin.jar
-     config/example-plugin.ldif
-     config/schema/99-example-plugin.ldif
-
-  5. Add the plugin's config to the server configuration.
-
-     cd ../bin
-     ./start-ds
-     ./dsconfig -h `hostname` -p 4444 -D "cn=Directory Manager" -w password
-      create-plugin --plugin-name "Example Plugin" --type example
-      --set enabled:true --set plugin-type:startup
-      --set java-class:com.example.opends.ExamplePlugin -X -n
-
-  6. Restart the server and look for the "hello world" notice in the start
-     up log:
-
-     ./stop-ds --restart
diff --git a/opendj-server-legacy/resource/admin/example-plugin/build.xml b/opendj-server-legacy/resource/admin/example-plugin/build.xml
deleted file mode 100644
index ae4ca21..0000000
--- a/opendj-server-legacy/resource/admin/example-plugin/build.xml
+++ /dev/null
@@ -1,371 +0,0 @@
-<!--
- ! CDDL HEADER START
- !
- ! The contents of this file are subject to the terms of the
- ! Common Development and Distribution License, Version 1.0 only
- ! (the "License").  You may not use this file except in compliance
- ! with the License.
- !
- ! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- ! or http://forgerock.org/license/CDDLv1.0.html.
- ! See the License for the specific language governing permissions
- ! and limitations under the License.
- !
- ! When distributing Covered Code, include this CDDL HEADER in each
- ! file and include the License file at legal-notices/CDDLv1_0.txt.
- ! If applicable, add the following below this CDDL HEADER, with the
- ! fields enclosed by brackets "[]" replaced with your own identifying
- ! information:
- !      Portions Copyright [yyyy] [name of copyright owner]
- !
- ! CDDL HEADER END
- !
- !
- !      Copyright 2008-2010 Sun Microsystems, Inc.
- ! -->
-
-<project name="Directory Server Extension" basedir="." default="package">
-  <description>
-    This is the build script for an OpenDS Directory Server extension.
-  </description>
-
-  <!-- Import extra tasks from ant-contrib (for, if-then-else, ...) -->
-  <taskdef resource="net/sf/antcontrib/antlib.xml"/>
-
-  <!-- CONFIGURE: The name of the extension's Jar file. -->
-  <property name="pkg.name" value="example-plugin" />
-
-  <!-- CONFIGURE: The description of this extension - used in the Javadoc title. -->
-  <property name="pkg.description" value="Example Plugin" />
-
-  <!-- CONFIGURE: The path of the OpenDS installation. -->
-  <property name="opends.install.dir" location=".." />
-
-  <!-- CONFIGURE: The path of Xalan-Java distribution. -->
-  <property name="xalan.directory" location="ext/xalan-j" />
-
-  <!-- General properties - should not need changing. -->
-  <property name="build.dir" location="build" />
-  <property name="src.dir" location="src" />
-  <property name="src.gen.dir" location="src-generated" />
-  <!-- alias variable as needed by the ant task that generates messages -->
-  <property name="msg.javagen.dir" location="${src.gen.dir}" />
-  <property name="lib.dir" location="lib" />
-  <property name="ext.dir" location="ext" />
-  <property name="resource.dir" location="resource" />
-  <property name="admin.dir" location="${resource.dir}/admin" />
-  <property name="config.dir" location="${resource.dir}/config" />
-  <property name="schema.dir" location="${resource.dir}/schema" />
-  <property name="msg.dir"    location="${resource.dir}/messages" />
-  <property name="classes.dir" location="${build.dir}/classes" />
-  <property name="javadoc.dir" location="${build.dir}/javadoc" />
-  <property name="package.dir" location="${build.dir}/package" />
-  <property name="message.dir" location="${build.dir}/message" />
-  <property name="jar.file" value="${pkg.name}.jar" />
-
-  <!-- Location of OpenDS components - should not need changing. -->
-  <property name="opends.lib.dir" location="${opends.install.dir}/lib" />
-  <property name="opends.config.dir" location="${opends.install.dir}/config" />
-  <property name="opends.schema.dir" location="${opends.config.dir}/schema" />
-  <property name="opends.extensions.dir" location="${opends.lib.dir}/extensions" />
-
-  <!-- Display help information. -->
-  <target name="help">
-    <echo message="Ant options to control the build:" />
-    <echo message="" />
-    <echo message="  -Dopends.install.dir=path" />
-    <echo message="      The path of the OpenDS installation [default: ${opends.install.dir}]." />
-    <echo message="" />
-    <echo message="  -Dpkg.name=name" />
-    <echo message="      The name of the extension's Jar file [default: ${pkg.name}]." />
-    <echo message="" />
-    <echo message="  -Dpkg.description=description" />
-    <echo message="      The description of this extension - used in the Javadoc title [default: ${pkg.description}]." />
-    <echo message="" />
-    <echo message="  -Dxalan.directory=path" />
-    <echo message="      The path of a Xalan-Java distribution [default: ${xalan.directory}]." />
-    <echo message="" />
-
-  </target>
-
-  <!-- Clean up any files generated during the build process. -->
-  <target name="clean" description="Clean up any files generated during the build process.">
-    <delete dir="${build.dir}" />
-    <delete includeemptydirs="true">
-      <fileset dir="${src.gen.dir}" includes="**/*" />
-    </delete>
-  </target>
-
-  <!-- Compile the Directory Server extension source files. -->
-  <target name="compile" depends="init,compileadmin,generate-messages" description="Compile the Directory Server extension source files.">
-    <mkdir dir="${classes.dir}" />
-    <javac srcdir="${src.dir}:${src.gen.dir}" destdir="${classes.dir}" optimize="true" excludes="**/package-info.java" debug="on" debuglevel="lines,source" source="1.6" target="1.6" deprecation="true" fork="true" memoryInitialSize="${MEM}" memoryMaximumSize="${MEM}">
-      <compilerarg value="-Xlint:all" />
-      <classpath>
-        <fileset dir="${lib.dir}">
-          <include name="*.jar" />
-        </fileset>
-        <fileset dir="${opends.lib.dir}">
-          <include name="*.jar" />
-        </fileset>
-      </classpath>
-    </javac>
-  </target>
-
-  <!-- Generate JavaDoc documentation from the source files. -->
-  <target name="javadoc" depends="init,compile" description="Generate JavaDoc documentation.">
-    <mkdir dir="${javadoc.dir}" />
-    <javadoc destdir="${javadoc.dir}" source="1.6" additionalparam="-quiet" linksource="yes" windowtitle="${pkg.description} API Documentation" maxmemory="${MEM}">
-      <classpath>
-        <fileset dir="${lib.dir}">
-          <include name="*.jar" />
-        </fileset>
-        <fileset dir="${opends.lib.dir}">
-          <include name="*.jar" />
-        </fileset>
-        <dirset dir="${classes.dir}" />
-      </classpath>
-      <packageset dir="${src.dir}" />
-      <packageset dir="${src.gen.dir}" />
-    </javadoc>
-  </target>
-
-  <!-- Package the Directory Server extension for distribution. -->
-  <target name="package" depends="clean,compile" description="Package the Directory Server extension for distribution.">
-    <mkdir dir="${package.dir}" />
-    <jar jarfile="${package.dir}/${jar.file}" basedir="${classes.dir}" compress="true" index="true" />
-  </target>
-
-  <!-- Install the Directory Server extension in an existing OpenDS installation. -->
-  <target name="install" depends="package" description="Install the Directory Server extension in an existing OpenDS installation.">
-    <mkdir dir="${opends.lib.dir}" />
-    <copy todir="${opends.lib.dir}">
-      <fileset file="${lib.dir}/*.jar" />
-    </copy>
-    <mkdir dir="${opends.extensions.dir}" />
-    <copy todir="${opends.extensions.dir}">
-      <fileset file="${package.dir}/*.jar" />
-    </copy>
-    <copy todir="${opends.config.dir}">
-      <fileset file="${config.dir}/*.ldif" />
-    </copy>
-    <copy todir="${opends.schema.dir}">
-      <fileset file="${schema.dir}/*.ldif" />
-    </copy>
-  </target>
-
-  <!-- Perform common initialization common to several targets. -->
-  <target name="init">
-    <tstamp>
-      <format property="timestamp" pattern="yyyyMMddHHmmss" />
-    </tstamp>
-    <condition property="DEBUG_BUILD" value="false">
-      <not>
-        <isset property="DEBUG_BUILD" />
-      </not>
-    </condition>
-    <condition property="MEM" value="128M">
-      <not>
-        <isset property="MEM" />
-      </not>
-    </condition>
-  </target>
-
-  <!-- Perform verification for Xalan dependency -->
-  <target name="ensurexalan" description="Verify that the Xalan-Java jar files are accessibles.">
-
-    <if>
-      <not>
-        <available property="xalan.directory.exists" file="${xalan.directory}" />
-      </not>
-      <then>
-        <echo message="Please use -Dxalan.directory to point to a directory " />
-        <echo message="that contains an unzipped delivery of Xalan-Java." />
-        <echo message="You can download Xalan-Java from the Apache website :" />
-        <echo message="  http://xml.apache.org/xalan-j/" />
-        <echo message="" />
-
-        <fail />
-      </then>
-    </if>
-
-    <!-- Xalan-J Class Path : refer to it explicitly from each XSLT task. -->
-    <path id="xalan.class.path">
-      <fileset dir="${xalan.directory}">
-        <include name="*.jar" />
-      </fileset>
-    </path>
-
-    <!-- Verify that all required Xalan jars are present -->
-    <property name="xalan.jar.files" value="serializer.jar,xalan.jar,xercesImpl.jar,xml-apis.jar" />
-    <fail message="Missing at least one Xalan-Java jar files in directory ${xalan.directory} (expecting : ${xalan.jar.files}).">
-      <condition>
-        <not>
-          <resourcecount count="4">
-            <fileset dir="${xalan.directory}" includes="${xalan.jar.files}" />
-          </resourcecount>
-        </not>
-      </condition>
-    </fail>
-
-  </target>
-
-  <!-- Compile the Directory Server extension configuration definition files. -->
-  <target name="compileadmin" depends="ensurexalan,validateadmin" description="Compile the Directory Server extension configuration definition files.">
-   
-    <echo message="classpath = ${xalan.class.path}" />
-    <!-- Compile the Directory Server extension configuration meta classes. -->
-    <xslt basedir="${src.dir}" destdir="${src.gen.dir}" style="${admin.dir}/metaMO.xsl">
-      <include name="**/*Configuration.xml" />
-      <exclude name="org/opends/server/admin/std/*.xml" />
-      <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.java" />
-      <param name="base-dir" expression="${src.dir}" />
-      <classpath refid="xalan.class.path" />
-    </xslt>
-
-    <xslt basedir="${src.dir}" destdir="${src.gen.dir}" style="${admin.dir}/package-info.xsl">
-      <include name="**/Package.xml" />
-      <exclude name="org/opends/server/admin/std/*.xml" />
-      <regexpmapper handledirsep="true" from="^(.*)/([^/]+)\.xml$$" to="\1/meta/package-info.java" />
-      <param name="type" expression="meta" />
-      <classpath refid="xalan.class.path" />
-    </xslt>
-
-    <!-- Compile the Directory Server extension configuration client classes. -->
-    <xslt basedir="${src.dir}" destdir="${src.gen.dir}" style="${admin.dir}/clientMO.xsl">
-      <include name="**/*Configuration.xml" />
-      <exclude name="org/opends/server/admin/std/*.xml" />
-      <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/client/\2CfgClient.java" />
-      <param name="base-dir" expression="${src.dir}" />
-      <classpath refid="xalan.class.path" />
-    </xslt>
-
-    <xslt basedir="${src.dir}" destdir="${src.gen.dir}" style="${admin.dir}/package-info.xsl">
-      <include name="**/Package.xml" />
-      <exclude name="org/opends/server/admin/std/*.xml" />
-      <regexpmapper handledirsep="true" from="^(.*)/([^/]+)\.xml$$" to="\1/client/package-info.java" />
-      <param name="type" expression="client" />
-      <classpath refid="xalan.class.path" />
-    </xslt>
-
-    <!-- Compile the Directory Server extension configuration server classes. -->
-    <xslt basedir="${src.dir}" destdir="${src.gen.dir}" style="${admin.dir}/serverMO.xsl">
-      <include name="**/*Configuration.xml" />
-      <exclude name="org/opends/server/admin/std/*.xml" />
-      <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/server/\2Cfg.java" />
-      <param name="base-dir" expression="${src.dir}" />
-      <classpath refid="xalan.class.path" />
-    </xslt>
-
-    <xslt basedir="${src.dir}" destdir="${src.gen.dir}" style="${admin.dir}/package-info.xsl">
-      <include name="**/Package.xml" />
-      <exclude name="org/opends/server/admin/std/*.xml" />
-      <regexpmapper handledirsep="true" from="^(.*)/([^/]+)\.xml$$" to="\1/server/package-info.java" />
-      <param name="type" expression="server" />
-      <classpath refid="xalan.class.path" />
-    </xslt>
-
-    <!-- Compile the Directory Server extension configuration ldap profile property files. -->
-    <xslt basedir="${src.dir}" destdir="${classes.dir}/admin/profiles/ldap" style="${admin.dir}/ldapMOProfile.xsl">
-      <include name="**/*Configuration.xml" />
-      <exclude name="org/opends/server/admin/std/*.xml" />
-      <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.properties" />
-      <param name="base-dir" expression="${src.dir}" />
-      <classpath refid="xalan.class.path" />
-    </xslt>
-
-    <!-- Compile the Directory Server extension configuration cli profile property files. -->
-    <xslt basedir="${src.dir}" destdir="${classes.dir}/admin/profiles/cli" style="${admin.dir}/cliMOProfile.xsl">
-      <include name="**/*Configuration.xml" />
-      <exclude name="org/opends/server/admin/std/*.xml" />
-      <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.properties" />
-      <param name="base-dir" expression="${src.dir}" />
-      <classpath refid="xalan.class.path" />
-    </xslt>
-
-    <!-- Compile the Directory Server extension configuration I18N message files. -->
-    <xslt basedir="${src.dir}" destdir="${classes.dir}/admin/messages" style="${admin.dir}/messagesMO.xsl">
-      <include name="**/*Configuration.xml" />
-      <exclude name="org/opends/server/admin/std/*.xml" />
-      <regexpmapper handledirsep="true" from="^(.*)/([^/]+)Configuration\.xml$$" to="\1/meta/\2CfgDefn.properties" />
-      <param name="base-dir" expression="${src.dir}" />
-      <classpath refid="xalan.class.path" />
-    </xslt>
-
-    <!-- Compile the Directory Server extension configuration manifest file. -->
-    <tempfile property="admin.temp.dir" destDir="${classes.dir}" />
-    <mkdir dir="${admin.temp.dir}" />
-    <xslt basedir="${src.dir}" destdir="${admin.temp.dir}" extension=".manifest" style="${admin.dir}/manifestMO.xsl">
-      <include name="**/*Configuration.xml" />
-      <exclude name="org/opends/server/admin/std/*.xml" />
-      <classpath refid="xalan.class.path" />
-    </xslt>
-    <concat destfile="${classes.dir}/admin/extension.manifest">
-      <fileset dir="${admin.temp.dir}" includes="**/*.manifest" />
-    </concat>
-    <delete dir="${admin.temp.dir}" />
-  </target>
-
-  <!-- Validate the Directory Server extension configuration definitions. -->
-  <target name="validateadmin" description="Validate the Directory Server extension configuration definitions.">
-    <schemavalidate>
-      <fileset dir="${src.dir}" includes="**/*.xml" />
-      <schema namespace="http://www.opends.org/admin" file="${admin.dir}/admin.xsd" />
-      <schema namespace="http://www.opends.org/admin-ldap" file="${admin.dir}/admin-ldap.xsd" />
-      <schema namespace="http://www.opends.org/admin-cli" file="${admin.dir}/admin-cli.xsd" />
-    </schemavalidate>
-  </target>
-
-  <!-- Generate messages from all .properties files located in the message directory and declared in a package-->
-  <target name="generate-messages" description="Generate messages for extension.">
-    <if>
-      <available file="${msg.dir}" type="dir" property="message.dir.is-present"/>
-      <then>
-        <!-- list of files properties -->
-        <path id="messages.properties">
-          <!-- Note: a package is required and properties file at the root of the
-           !         message directory will be ignored
-           ! -->
-          <fileset dir="${msg.dir}" includes="*/**/*.properties" />
-        </path>
-        <property name="msg.dir.list" refid="messages.properties" />
-
-        <!-- includes lib/*.jar into classpath (actually build-tools.jar) -->
-        <path id="msg.classpath">
-          <fileset dir="${lib.dir}">
-            <include name="*.jar" />
-          </fileset>
-        </path>
-        <property name="build-tools.jar" refid="msg.classpath" />
-
-        <typedef name="genmsg"
-                 classname="org.opends.build.tools.GenerateMessageFile"
-                 classpathref="msg.classpath">
-        </typedef>
-
-        <!-- set property if the list is not empty -->
-        <if>
-          <length string="${msg.dir.list}" when="greater" length="0" />
-          <then>
-            <!-- Generate the message catalogs for all messages located
-             !   in the messages directory
-             ! -->
-            <mkdir dir="${classes.dir}/messages" />
-            <for param="file" delimiter="${path.separator}" list="${msg.dir.list}">
-              <sequential>
-                <genmsg sourceProps="@{file}" />
-                <copy file="@{file}" todir="${classes.dir}/messages"/>
-              </sequential>
-            </for>
-          </then>
-          <else>
-            <echo message="No messages found: ${message.dir} is empty" />
-          </else>
-        </if>
-      </then>
-      <else>
-        <echo message="No messages found: ${msg.dir} is missing" />
-      </else>
-    </if>
-  </target>
-</project>
diff --git a/opendj-server-legacy/resource/admin/example-plugin/example-plugin.ldif b/opendj-server-legacy/resource/admin/example-plugin/example-plugin.ldif
deleted file mode 100644
index 04d5645..0000000
--- a/opendj-server-legacy/resource/admin/example-plugin/example-plugin.ldif
+++ /dev/null
@@ -1,10 +0,0 @@
-dn: cn=Example Plugin,cn=Plugins,cn=config
-objectClass: top
-objectClass: ds-cfg-plugin
-objectClass: ds-cfg-example-plugin
-cn: Example Plugin
-ds-cfg-enabled: true
-ds-cfg-java-class: com.example.opends.ExamplePlugin
-ds-cfg-plugin-type: startup
-ds-cfg-example-plugin-message: Hello World
-
diff --git a/opendj-server-legacy/resource/admin/example-plugin/example_plugin.properties b/opendj-server-legacy/resource/admin/example-plugin/example_plugin.properties
deleted file mode 100644
index 6e0f028..0000000
--- a/opendj-server-legacy/resource/admin/example-plugin/example_plugin.properties
+++ /dev/null
@@ -1,52 +0,0 @@
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License").  You may not use this file except in compliance
-# with the License.
-#
-# You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
-# or http://forgerock.org/license/CDDLv1.0.html.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at legal-notices/CDDLv1_0.txt.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information:
-#      Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#      Copyright 2006-2008 Sun Microsystems, Inc.
-
-
-
-#
-# Global directives
-#
-global.category=USER_DEFINED
-
-#
-# Format string definitions
-#
-# Keys must be formatted as follows:
-#
-# [SEVERITY]_[DESCRIPTION]_[ORDINAL]
-#
-# where:
-#
-# SEVERITY is one of:
-# [ERR, WARN, NOTE, INFO, DEBUG]
-#
-# DESCRIPTION is an upper case string providing a hint as to the context of
-# the message in upper case with the underscore ('_') character serving as
-# word separator
-#
-# ORDINAL is an integer unique among other ordinals in this file
-#
-ERR_INITIALIZE_PLUGIN_1="Invalid plugin type %s for the example plugin.
-NOTE_DO_STARTUP_2=Example plugin message '%s'.
-NOTE_APPLY_CONFIGURATION_CHANGE_3="Example plugin message has been changed \
-from '%s' to '%s'.
diff --git a/opendj-server-legacy/resource/admin/example-plugin/example_plugin_fr.properties b/opendj-server-legacy/resource/admin/example-plugin/example_plugin_fr.properties
deleted file mode 100644
index 6417459..0000000
--- a/opendj-server-legacy/resource/admin/example-plugin/example_plugin_fr.properties
+++ /dev/null
@@ -1,52 +0,0 @@
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License").  You may not use this file except in compliance
-# with the License.
-#
-# You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
-# or http://forgerock.org/license/CDDLv1.0.html.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at legal-notices/CDDLv1_0.txt.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information:
-#      Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#      Copyright 2006-2008 Sun Microsystems, Inc.
-
-
-
-#
-# Global directives
-#
-global.category=USER_DEFINED
-
-#
-# Format string definitions
-#
-# Keys must be formatted as follows:
-#
-# [SEVERITY]_[DESCRIPTION]_[ORDINAL]
-#
-# where:
-#
-# SEVERITY is one of:
-# [ERR, WARN, NOTE, INFO, DEBUG]
-#
-# DESCRIPTION is an upper case string providing a hint as to the context of
-# the message in upper case with the underscore ('_') character serving as
-# word separator
-#
-# ORDINAL is an integer unique among other ordinals in this file
-#
-ERR_INITIALIZE_PLUGIN_1="Type de plugin invalide %s pour le plugin d'exemple.
-NOTE_DO_STARTUP_2=Message du plugin d'exemple '%s'.
-NOTE_APPLY_CONFIGURATION_CHANGE_3="Le message du plugin d'exemple a été modifié \
-de '%s' en '%s'.
diff --git a/opendj-server-legacy/resource/admin/example-plugin/package-info.java b/opendj-server-legacy/resource/admin/example-plugin/package-info.java
deleted file mode 100644
index 3b538e4..0000000
--- a/opendj-server-legacy/resource/admin/example-plugin/package-info.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- *      Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- *      Copyright 2008 Sun Microsystems, Inc.
- */
-
-/**
- * Example OpenDS Hello World plugin implementation clases.
- * <p>
- * This package contains the classes which implement the example
- * plugin.
- */
-package com.example.opends;
-
diff --git a/opendj-server-legacy/src/main/assembly/example-plugin-assembly.xml b/opendj-server-legacy/src/main/assembly/example-plugin-assembly.xml
deleted file mode 100644
index 152b87f..0000000
--- a/opendj-server-legacy/src/main/assembly/example-plugin-assembly.xml
+++ /dev/null
@@ -1,96 +0,0 @@
-<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" 
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
-  <id>zip-generation</id>
-  <formats>
-    <format>zip</format>
-  </formats>
-  <fileSets>
-    <!-- Adds xml files to src target directory -->
-    <fileSet>
-      <directory>${basedir}/src/admin/defn</directory>
-      <outputDirectory>src</outputDirectory>
-      <includes>
-        <include>**/*.xml</include>
-      </includes>
-    </fileSet>
-    
-    <!-- Adds resource/admin content but example-plugin folder to resource/admin target directory -->
-    <fileSet>
-      <directory>${basedir}/resource/admin</directory>
-      <outputDirectory>resource/admin</outputDirectory>
-      <excludes>
-        <exclude>example-plugin/**</exclude>
-      </excludes>
-    </fileSet>
-    
-    <!-- Adds files to root target directory -->
-    <fileSet>
-      <directory>${basedir}/resource/admin/example-plugin</directory>
-      <outputDirectory></outputDirectory>
-      <includes>
-        <include>build.xml</include>
-        <include>README</include>
-      </includes>
-    </fileSet>
-    
-    <!-- Adds files to src/com/example/opends target directory -->
-    <fileSet>
-      <directory>${basedir}/resource/admin/example-plugin</directory>
-      <outputDirectory>src/com/example/opends</outputDirectory>
-      <includes>
-        <include>*.java</include>
-        <include>*.xml</include>
-      </includes>
-      <excludes><exclude>build.xml</exclude></excludes>
-    </fileSet>
-    
-    <!-- Adds messages to resource/messages/com/example/opends/messages target directory -->
-    <fileSet>
-      <directory>${basedir}/resource/admin/example-plugin</directory>
-      <outputDirectory>resource/messages/com/example/opends/messages</outputDirectory>
-      <includes>
-        <include>example_plugin*.properties</include>
-      </includes>
-      <excludes><exclude>build.xml</exclude></excludes>
-    </fileSet>
-    
-    <!-- Creates template/ children directories -->
-    <fileSet>
-      <directory>.</directory>
-      <outputDirectory>ext</outputDirectory>
-      <excludes>
-        <exclude>*/**</exclude>
-      </excludes>
-    </fileSet>
-    <fileSet>
-      <directory>.</directory>
-      <outputDirectory>src-generated</outputDirectory>
-      <excludes>
-        <exclude>*/**</exclude>
-      </excludes>
-    </fileSet>
-  </fileSets>
-  
-  
-  <files>
-    <!-- Adds schema file to resource/schema target directory -->
-    <file>
-      <source>${basedir}/resource/admin/example-plugin/99-example-plugin.ldif</source>
-      <outputDirectory>resource/schema</outputDirectory>
-    </file>
-    
-    <!-- Adds config file to resource/schema target directory -->
-    <file>
-      <source>${basedir}/resource/admin/example-plugin/example-plugin.ldif</source>
-      <outputDirectory>resource/config</outputDirectory>
-    </file>
-    
-    <!-- Adds jar file to the lib target directory -->
-    <!-- TODO: activate once build-tools directory created -->
-<!--     <file> -->
-<!--       <source>${basedir}/build/build-tools/build-tools.jar</source> -->
-<!--       <outputDirectory>lib</outputDirectory> -->
-<!--     </file> -->
-  </files>
-</assembly>  
\ No newline at end of file
diff --git a/opendj-server-legacy/src/main/assembly/opendj-archive-component.xml b/opendj-server-legacy/src/main/assembly/opendj-archive-component.xml
index 3c3bc2f..3dd702a 100644
--- a/opendj-server-legacy/src/main/assembly/opendj-archive-component.xml
+++ b/opendj-server-legacy/src/main/assembly/opendj-archive-component.xml
@@ -325,11 +325,5 @@
       <source>${project.build.directory}/upgrade/schema.ldif.${buildRevision}</source>
       <outputDirectory>template/config/upgrade</outputDirectory>
     </file>
-
-    <!-- Adds example-plugin.zip to root directory -->
-    <file>
-      <source>${project.build.directory}/example-plugin.zip</source>
-      <outputDirectory></outputDirectory>
-    </file>
   </files>
 </component>

--
Gitblit v1.10.0