<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="testing-plugins-extensions">
  <title>Testing Plugins and Java Extensions</title>
  <prolog>
    <metadata>
      <keywords>
        <indexterm>Oxygen SDK<indexterm>Testing plugins and Java extensions</indexterm></indexterm>
        <indexterm>Plugins<indexterm>Testing</indexterm></indexterm>
        <indexterm>Testing plugins and Java extensions</indexterm>
      </keywords>
    </metadata>
  </prolog>
  <body>
    <p>In the various procedures for creating a <xref keyref="glossentry_plugin"
        ><term>plugin</term></xref>, you are usually instructed to copy your plugin folder to the
          <filepath><term conkeyref="reusables-user-guide/oxy-install-dir"/>/plugins/</filepath>
      directory. If you want to test the code in your plugin without copying it to that folder,
      follow this procedure:<ol>
        <li>Create a file called <filepath>plugin.redirect</filepath> that contains the full file
          path references to your project (for example,
            <filepath>C:\Users\john_doe\Documents\sample-plugin-folder</filepath>).</li>
        <li>
          <p>Save that file in any folder (for example, called
              <filepath>sample_test_folder</filepath>) inside the <filepath><term
                conkeyref="reusables-user-guide/oxy-install-dir"/>/plugins/</filepath>
            directory.</p>
          <p><b>Step Result:</b>
            <ph keyref="product"/> will automatically load the plugin from your project
            location.</p>
        </li>
        <li>Now you can modify the Java code, the IDE will automatically compile it, and if the
            <b>plugin.xml</b> file has a classpath reference to the compiled classes folder, you can
          restart <ph keyref="product"/> and test your changes.</li>
      </ol></p>
  </body>
</topic>
