From d3285968f3d2a8eabef342e9204c858e576e878c Mon Sep 17 00:00:00 2001 From: Christian Pich Date: Fri, 10 Nov 2023 14:12:08 +0100 Subject: [PATCH] fix link ML version for disease annotation to use the one global variable --- agr.gradle | 1 - source/org/zfin/marker/agr/DiseaseAnnotationLinkMLInfo.java | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/agr.gradle b/agr.gradle index 619a191640..4dac064578 100644 --- a/agr.gradle +++ b/agr.gradle @@ -75,7 +75,6 @@ task createGPI2File(type: JavaExec) { task createDiseaseInfoLinkMLFile(type: JavaExec) { classpath = sourceSets.main.runtimeClasspath main = 'org.zfin.marker.agr.DiseaseAnnotationLinkMLInfo' - args 'v1.7.3' } task createDiseaseInfoFile(type: JavaExec) { diff --git a/source/org/zfin/marker/agr/DiseaseAnnotationLinkMLInfo.java b/source/org/zfin/marker/agr/DiseaseAnnotationLinkMLInfo.java index 3bbdf9bea0..e4eea9172a 100755 --- a/source/org/zfin/marker/agr/DiseaseAnnotationLinkMLInfo.java +++ b/source/org/zfin/marker/agr/DiseaseAnnotationLinkMLInfo.java @@ -36,16 +36,12 @@ public DiseaseAnnotationLinkMLInfo(int number) { } public static void main(String[] args) throws IOException { - String linkMlVersion = null; int number = 0; - if (args.length > 0) { - linkMlVersion = args[0]; - } if (args.length > 1) { number = Integer.parseInt(args[1]); } DiseaseAnnotationLinkMLInfo diseaseInfo = new DiseaseAnnotationLinkMLInfo(number); - diseaseInfo.init(linkMlVersion); + diseaseInfo.init(LINK_ML_VERSION); System.exit(0); }