From 491b00d52756f39d946d0e1800f5adf35339573c Mon Sep 17 00:00:00 2001
From: Henry Pinkard <7969470+henrypinkard@users.noreply.github.com>
Date: Fri, 14 Jun 2024 08:41:22 +0200
Subject: [PATCH] bump pm java version
---
java/pom.xml | 4 ++--
pycromanager/test/conftest.py | 17 ++++++++++-------
2 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/java/pom.xml b/java/pom.xml
index bf999a65..237ef8ef 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -2,7 +2,7 @@
4.0.0
org.micro-manager.pycro-manager
PycroManagerJava
- 0.46.8
+ 0.46.9
jar
Pycro-Manager Java
The Java components of Pycro-Manager
@@ -154,4 +154,4 @@
-
\ No newline at end of file
+
diff --git a/pycromanager/test/conftest.py b/pycromanager/test/conftest.py
index b0bef5b3..22c462e4 100644
--- a/pycromanager/test/conftest.py
+++ b/pycromanager/test/conftest.py
@@ -43,6 +43,8 @@ def replace_jars(new_file_path, old_file_path, jar_names: list):
new_jar_name, new_jar_version = find_jar(new_file_path, jar_name)
old_jar_name, old_jar_version = find_jar(old_file_path, jar_name)
+ print('Old version:', old_jar_name, old_jar_version)
+ print('New version:', new_jar_name, new_jar_version)
if new_jar_name is not None:
# Only replace jar file if newly compiled file version is larger
if new_jar_version[0] > old_jar_version[0] or \
@@ -106,14 +108,15 @@ def install_mm():
print(f)
replace_jars(os.path.join(java_path, 'target/dependency'), os.path.join(mm_install_dir, 'plugins', 'Micro-Manager'),
['AcqEngJ', 'NDTiffStorage', 'NDViewer', 'PyJavaZ'])
+ # Not needed because deps of deps are already included in the JARs?
# Copy dependency jar files if present in ../../REPO_NAME/target
- for repo_name in ['AcqEngJ', 'NDTiffStorage', 'NDViewer', 'PyJavaZ']:
- print(f'JAR files present in {repo_name}/target:')
- for f in os.listdir(os.path.join(java_path, f'../../{repo_name}/target')):
- print(f)
- if os.path.isdir(os.path.join(java_path, f'../../{repo_name}/target')):
- replace_jars(os.path.join(java_path, f'../../{repo_name}/target'),
- os.path.join(mm_install_dir, 'plugins', 'Micro-Manager'), [repo_name])
+ # for repo_name in ['AcqEngJ', 'NDTiffStorage', 'NDViewer', 'PyJavaZ']:
+ # print(f'JAR files present in {repo_name}/target:')
+ # for f in os.listdir(os.path.join(java_path, f'../../{repo_name}/target')):
+ # print(f)
+ # if os.path.isdir(os.path.join(java_path, f'../../{repo_name}/target')):
+ # replace_jars(os.path.join(java_path, f'../../{repo_name}/target'),
+ # os.path.join(mm_install_dir, 'plugins', 'Micro-Manager'), [repo_name])
except Exception as e:
warnings.warn(f'Failed to replace JAR files: {e}')