From 75d35320cbe8a7f9408278c00e07e52297400287 Mon Sep 17 00:00:00 2001 From: Lars-B Date: Wed, 14 May 2025 11:32:02 -0700 Subject: [PATCH 1/3] FileNotFoundException handling --- src/beastfx/app/tools/AppLauncher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/beastfx/app/tools/AppLauncher.java b/src/beastfx/app/tools/AppLauncher.java index 462eaf9..f7ce86c 100644 --- a/src/beastfx/app/tools/AppLauncher.java +++ b/src/beastfx/app/tools/AppLauncher.java @@ -5,6 +5,7 @@ import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.File; +import java.io.FileNotFoundException; import java.io.IOException; import java.io.PrintStream; import java.lang.reflect.InvocationTargetException; @@ -321,7 +322,7 @@ public void runAppFromCMD(PackageApp packageApp, String[] additionalArgs) { mainMethod.invoke(null, (Object) additionalArgs); } catch (InvocationTargetException e) { Throwable cause = e.getCause(); - if (cause instanceof IllegalArgumentException) { + if (cause instanceof IllegalArgumentException || cause instanceof FileNotFoundException) { Log.err("\n[Error]: " + cause.getMessage()); } else { Log.err("\n[Unexpected Error]: " + cause.getClass().getSimpleName() + ": " + cause.getMessage()); From 9482022a69279770f6d925e8b73a7ff25b09c7b1 Mon Sep 17 00:00:00 2001 From: Lars-B Date: Wed, 14 May 2025 11:44:23 -0700 Subject: [PATCH 2/3] readding release_dir again, whitespaces --- build.xml | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/build.xml b/build.xml index f081c7e..400306f 100644 --- a/build.xml +++ b/build.xml @@ -1,8 +1,8 @@ - Build BEAST FX. - Also used by Hudson BEAST_FX project. + Build BEAST FX. + Also used by Hudson BEAST_FX project. JUnit test is available for this build. $Id: build_BEAST_FX.xml $ @@ -18,6 +18,8 @@ + + @@ -37,7 +39,7 @@ - + @@ -68,7 +70,7 @@ - + @@ -98,7 +100,7 @@ - - + - + @@ -161,7 +163,7 @@ --> - + @@ -172,7 +174,7 @@ - + @@ -183,7 +185,7 @@ +--> @@ -211,7 +213,7 @@ - + @@ -245,9 +247,9 @@ - - + @@ -304,7 +306,7 @@ - @@ -380,7 +382,7 @@ txtFileVersion="${version}" productVersion="${version}.0" txtProductVersion="${version}" > - - + From 4e6c21a8e31e993fa791022d047b10b66b7a3fa3 Mon Sep 17 00:00:00 2001 From: Lars-B Date: Wed, 14 May 2025 11:46:08 -0700 Subject: [PATCH 3/3] adding release --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 65bb135..dfbf920 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .DS_Store .idea BeastFX.iml -Build/ \ No newline at end of file +Build/ +release/ \ No newline at end of file