Page created: 12 Sep 2019 |
Page updated: 19 Mar 2020
- Before you start, ensure you have the Java SDK and Apache Ant installed.
- To create a new plugin, create a new project directory in the <pf_install>/pingfederate/sdk/plugin-src directory.
In the new project directory, create a subdirectory named
This is where you place the Java source code for your implementation(s).
Follow standard Java package and directory structure layout.
- If your project depends on third-party libraries, create another subdirectory called lib and place the necessary JAR files in it.
The build script builds only one project at a time. Edit the
build.local.properties file and set
target-plugin-nameto specify the name of the directory (under <pf_install>/pingfederate/sdk/plugin-src) that contains your project.
In <pf_install>/pingfederate/sdk run
ant to display a list of available build targets:
[java] Main targets: [java] [java] clean-plugin Clean the plug-in build directory [java] deploy-plugin Deploy the plug-in jar and libs to PingFederate [java] jar-plugin Package the plug-in jar [java] [java] Default target: helpRun the appropriate target to clean, build, or deploy your plug-in.Note:
Building the project with the build.xml included in the SDK is recommended because it packages the jars with additional metadata to make it discoverable by PingFederate. For detailed information, see Building and deploying your project.