Skip to content

Instantly share code, notes, and snippets.

@xulman
Last active March 4, 2024 14:39
Show Gist options
  • Save xulman/31e8d251e0c4f4334968faf63c8507cf to your computer and use it in GitHub Desktop.
Save xulman/31e8d251e0c4f4334968faf63c8507cf to your computer and use it in GitHub Desktop.
testing new folder-DnD in ImageJ2/Fiji
================================================================================================
variant for
a) near future (when image-legacy master makes it into scijava/parent-pom)
b) for apps that harvest an image their own way (here somehow from a given folder)
================================================================================================
git clone [email protected]:xulman/imagej-legacy.git
cd imagej-legacy
mvn -Dmaven.test.skip=true clean install
cd ..
git clone [email protected]:xulman/ome-zarr-fiji-ui.git
cd ome-zarr-fiji-ui/
git checkout -b testingEasierNewDnD origin/testingEasierNewDnD
mvn -Denforcer.skip=true clean package dependency:copy-dependencies
java -cp "target/ome-zarr-fiji-ui-0.1.0-SNAPSHOT.jar:target/dependency/*" sc.fiji.ome.zarr.fiji.ui.MinimalFolderOpeningExample
================================================================================================
variant for
a) future (after PRs make it into up-stream)
b) for apps that show content their own way (here using the new SelfShowableContent class)
================================================================================================
git clone [email protected]:xulman/scijava-common.git
cd scijava-common/
git checkout -b SelfShowableContent origin/SelfShowableContent
mvn -Dmaven.test.skip=true clean install
cd ..
git clone [email protected]:xulman/imagej-legacy.git
cd imagej-legacy
git checkout -b eager-file-open origin/eager-file-open
---> EDIT pom.xml, and ADD <scijava-common.version>2.98.1-SNAPSHOT</scijava-common.version> into the <properties> section
mvn -Denforcer.skip=true -Dmaven.test.skip=true clean install
cd ..
git clone [email protected]:xulman/ome-zarr-fiji-ui.git
cd ome-zarr-fiji-ui/
git checkout -b testingNewDnD origin/testingNewDnD
mvn -Denforcer.skip=true clean package dependency:copy-dependencies
java -cp "target/ome-zarr-fiji-ui-0.1.0-SNAPSHOT.jar:target/dependency/*" sc.fiji.ome.zarr.fiji.ui.MinimalFolderOpeningExample
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment