Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documentation:2.0:development:addingplugin [2012/05/03 14:32]
sbahloul
documentation:2.0:development:addingplugin [2017/01/30 17:10] (current)
Line 23: Line 23:
   * Generate the corresponding source ​ :   * Generate the corresponding source ​ :
 <code script>​$JAVA_HOME/​bin/​xjc -p com.foo.bar.generated \ <code script>​$JAVA_HOME/​bin/​xjc -p com.foo.bar.generated \
-    src/​main/​resources/​etc/​foobar-lsc-1.0.xsd</​code>​+    ​-b lsc.episode ​src/​main/​resources/​etc/​foobar-lsc-1.0.xsd</​code>​ 
 +You will find the lsc.episode file inside the misc subdirectory of LSC source package.
   * Load the configuration through the service constructor:​ [[https://​lsc-project.org/​svn/​lsc-samples/​lsc-embeddable-sample/​trunk/​src/​main/​java/​com/​foo/​bar/​FooBarLscService.java|FooBarLscService.java]]   * Load the configuration through the service constructor:​ [[https://​lsc-project.org/​svn/​lsc-samples/​lsc-embeddable-sample/​trunk/​src/​main/​java/​com/​foo/​bar/​FooBarLscService.java|FooBarLscService.java]]
   * Configure it through a pluginDestinationService node in [[https://​lsc-project.org/​svn/​lsc-samples/​lsc-embeddable-sample/​trunk/​src/​main/​resources/​etc/​lsc.xml|lsc.xml]]   * Configure it through a pluginDestinationService node in [[https://​lsc-project.org/​svn/​lsc-samples/​lsc-embeddable-sample/​trunk/​src/​main/​resources/​etc/​lsc.xml|lsc.xml]]
   * Copy the XSD to your etc subdirectory (required to check the XML structure)   * Copy the XSD to your etc subdirectory (required to check the XML structure)
   * Run it with flag  -DLSC.PLUGINS.PACKAGEPATH=com.foo.bar.generated (so that JAXB parser could find the extended classes)   * Run it with flag  -DLSC.PLUGINS.PACKAGEPATH=com.foo.bar.generated (so that JAXB parser could find the extended classes)