dx-sync-module synchronizes changes in files with Magnolia repositories.
Also it provides a set of tasks and strategies for updating Magnolia resources.
So you can preview your changes on the website as soon as you save your files.
The following resource types are supported at the moment:
Download the latest module version.
Note: it is going to be available as a Maven artefact soon.
First, you need to install jnotify http://jnotify.sourceforge.net/ library to your servlet container, including both java and native library parts.
This library is used to get notifications from the file system about file updates.
You can download it from here:
If you use Tomcat you can:
Steps are very similar for other servlet containers.
Then you need to add dx-sync-module to your project.
If you're going to use File-based configuration, you can just put dx-sync-module.jar to Magnolia'a WEB-INF/lib directory.
If you need advanced features, including DxModuleVersionHandler, you need to add dx-sync-module to your project.
Put dx-sync-module to your local Maven repository:
mvn install:install-file -DgroupId=com.devexperts.web -DartifactId=dx-sync-module -Dversion=1.1.1 -Dpackaging=jar -Dfile=dx-sync-module-1.1.1.jar -DgeneratePom=true
mvn install:install-file -DgroupId=com.devexperts.web -DartifactId=dx-sync-module -Dversion=1.1.1 -Dpackaging=jar -Dclassifier=sources -Dfile=dx-sync-module-1.1.1-sources.jar -DgeneratePom=false
Add the following dependency to your Maven project:
You can specify which files are to be synchronized in a configuration file.
Synchronization is performed on a directory basis. Each directory that is needed synchronization should be listed in the configuration file.
2 parameters should be specified for this module.
The module is released under GPL license. Contact us if you need this module under different license.
We really appreciate your feedback, feature requests, bug reports or any kind of comments.
Contact us at firstname.lastname@example.org