Skip to content

Migration guide v3.1.0

MioRtia edited this page Oct 25, 2019 · 24 revisions

ValidationWriterFactory::create with a TableFormatterConfig argument

The recently added (in powsybl 2.5.0) ValidationWriterFactory::create method which takes a TableFormatterConfig argument has been removed. The deprecated overload of ValidationWriterFactory::create which does not take a TableFormatterConfig argument has been undeprecated and should be reused instead.

Move AFS-based classes into new modules

Add following module in dependencies if using ActionScript.

<dependency>
  <groupId>com.powsybl</groupId>
  <artifactId>powsybl-action-dsl-afs</artifactId>
  <version>3.1.0</version>
</dependency>

Add following module in dependencies if using ContingencyStore.

<dependency>
  <groupId>com.powsybl</groupId>
  <artifactId>powsybl-contingency-afs</artifactId>
  <version>3.1.0</version>
</dependency>

And the old module powsybl-scripting is replaced by powsybl-scripting-afs and powsybl-scripting-extension.

Change path separator and reading order in powsybl_config_dirs (itools.conf)

In the itools.conf file, several paths can be written in the powsybl_config_dirs parameter, indicating the different paths that can contains configuration files or the logback-itools.xml file. The separator between paths used to be : and is now the File.pathSeparator which depends on your OS: it is : for Unix systems and ; for Windows systems.

Furthermore, the path used in priority to retrieve the logback-itools.xml file is the first written path (furthest into the left) to be consistent with the reading of configuration files.

Clone this wiki locally