Example script collection for ImageJ
This repository illustrates how to manage several ImageJ scripts in a collection.
Note that to make scripts available as menu commands in ImageJ, it is sufficient to put the script files into a subfolder of ImageJ.app/scripts/, and to make them available to others, it is sufficient to upload the script files to an update site.
Keeping script files in a collection like this one adds the following benefits:
- Dependency management with Maven
- Versioned deployment using Git, Maven, and Travis CI
- Optionally: keep your scripts functional by running Java unit tests with every build
How to use
- Make a copy of this repository.
- Delete
src/test/javaif you don't require tests. - Put your scripts into a subfolder of
src/main/resources/scripts(the name of the subfolder[s] corresponds to the menu[s] where the commands will appear). - Edit
pom.xmlto reflect your project information. - Run
mvnto build your jar file, ormvn -Dimagej.app.directory=/path/to/your/ImageJ.appto directly copy the jar file and possible dependencies into your ImageJ/Fiji installation.
Questions
Please ask on the ImageJ forum.