Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip
titleFor debugging configuration

To load the plugin in the standard configuration of Weasis, add to the launcher the following VM argument:
-Dfelix.extended.config.properties="file:///your_plugin_path/conf/ext-config.properties"

...

  • Add in /weasis/conf/ext-config.properties:
    Code Block
    felix.auto.start.80= \
     ${weasis.codebase.url}/plugins/weasis-isowriter-2.0.03.jar
    
  • Place the file "weasis-isowriter-2.0.03.jar" in the directory "/weasis/plugins"

...

  • Build "weasis-ext.war" with the following structure:
    Code Block
    +--weasis-ext/
    | +--WEB-INF/
      | +--web.xml
    | +--conf/
      | +--ext-config.properties
    | +--plugin1.jar
    | +--plugin2.jar
    
  • In /weasis-ext/conf/ext-config.properties, add the plug-ins references:
    Code Block
    felix.auto.start.80= \
     ${weasis.codebase.ext.url}-ext/plugin1.jar \
     ${weasis.codebase.ext.url}-ext/plugin2.jar
    
    Info

    Note: Using "${weasis.codebase.ext.url}" requires to place weasis-ext.war in the same web container as weasis.war. The advantage is that the base URL is allows to keep the base URL abstract, so moving these two files the package to another server won't be a problem. Otherwise absolute URLs must be used.

    Add Java VM property to load weasis-ext.war:
    With weasis-pacs-connector: adapt this property inĀ weasis-jnlp.xml (see

    The default value of "${weasis.codebase.ext.url}" is "${weasis.codebase.url}-ext".

Tip
Setting directly in the Java arguments for other launchers
titleFor debugging configuration

To load plugins in the standard configuration of Weasis, add to the launcher the following VM argument:
-Dfelix.extended.config.properties="http://server:8080port/weasis-ext/conf/ext-config.properties"

Example with that make a package of weasis-isowriter plugin:

  • Build "weasis-ext.war":
    Code Block
    +--weasis-ext/
    | +--WEB-INF/
      | +--web.xml
    | +--ext-config.propertiesconf/
      | +--weasis-isowriter-2.0.0.jar
    
    In /weasis
    -ext
    /ext
    -config.properties
    :
    Code Block
    
    felix.auto.start.80= \
     ${weasis.codebase.url}-ext/
    | +--weasis-isowriter-2.0.03.jar
    

Build OSGI services

All the plug-in type described in the list above are OSGI services that are registered and aggregated in the GUI. Building the plug-in from the Maven archetype will configure automatically the OSGI service. For adding new OSGI services, here is the procedure:

...