GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - NrgXnat/xnat-template-plugin: Template for XNAT plugin development

BranchesTags
Open more actions menu

Latest commit

 

History

28 Commits
28 Commits

Folders and files

NameName
Last commit message
Last commit date
101
101
 
 
102
102
 
 
gradle/wrapper
gradle/wrapper
 
 
src/main
src/main
 
 
.gitignore
.gitignore
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

XNAT TemplatePlugin

This is the XNAT Template Plugin. It provides a basic XNAT plugin project that you can use as a basis for creating your own custom plugins. It includes examples of most basic XNAT plugin functions. You should keep and expand the parts you need and remove those you don't.

Note: Search throughout your new plugin project for the string "TODO:". This has been added in comments throughout the template project to help you find areas you may need to modify or remove for your particular plugin project. Once you have created your own plugin project from this template, you can remove all of the "TODO:" comments.

Note: This plugin is not really meant to be built and run inside of XNAT. You can build it, but the results may not be what you expect. Instead, this is meant as a starting point for developing a new plugin. Once you've implemented your own functionality in the plugin, you should replace the contents of this README with your own documentation. You can then build and deploy your plugin using the build described above.

Building

To build the XNAT template plugin:

  1. If you haven't already, clone this repository and cd to the newly cloned folder.
  2. Build the plugin: ./gradlew xnatDataBuilder xnatPluginJar (on Windows, you can use the batch file: gradlew.bat jar). This should build the plugin in the file build/libs/xnat-template-plugin-1.0.0-SNAPSHOT-xpl.jar (the version may differ based on updates to the code).
  3. Copy the plugin jar to your plugins folder: cp build/libs/xnat-template-plugin-1.0.0-SNAPSHOT-xpl.jar /data/xnat/home/plugins

You'll end up repeating the second step pretty frequently. You can clean out the build folder with the clean task, which can be run on its own or with other tasks. For example, as separate tasks:

./gradlew clean
./gradlew xnatDataBuilder xnatPluginJar

You can also combine these into a single command:

./gradlew clean xnatDataBuilder xnatPluginJar

Also, build.gradle includes this statement:

compileJava.dependsOn project.tasks["xnatDataBuilder"]

That means that any task that depends on compileJava (which any of the jar tasks do) automatically triggers xnatDataBuilder as well, so running xnatPluginJar ends up running xnatDataBuilder automatically. You may still want to run xnatDataBuilder on its own sometimes, just to inspect any code that's generated from your data-type schemas.

About

Template for XNAT plugin development

Topics

xnat-plugin

Resources

Readme
License

Security policy

Security policy
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.