Tony Mancill pushed to branch upstream at Debian Java Maintainers / ivyplusplus


Commits:
7ec783e6 by tony mancill at 2024-02-27T10:58:46-08:00
New upstream version 1.42
- - - - -


3 changed files:

- src/com/zwitserloot/ivyplusplus/Version.java
- src/com/zwitserloot/ivyplusplus/eclipse/BuildEclipseProject.java
- src/com/zwitserloot/ivyplusplus/eclipse/Settings.java


Changes:

=====================================
src/com/zwitserloot/ivyplusplus/Version.java
=====================================
@@ -23,7 +23,7 @@ package com.zwitserloot.ivyplusplus;
 
 public class Version {
        // ** CAREFUL ** - this class must always compile with 0 dependencies 
(it must not refer to any other sources or libraries).
-       private static final String VERSION = "1.40";
+       private static final String VERSION = "1.42";
        
        private Version() {
                //Prevent instantiation


=====================================
src/com/zwitserloot/ivyplusplus/eclipse/BuildEclipseProject.java
=====================================
@@ -316,6 +316,14 @@ public class BuildEclipseProject extends 
IvyPostResolveTask {
        private static final Map<String, String> SOURCE_TO_CON;
        static {
                Map<String, String> map = new LinkedHashMap<String, String>();
+               map.put("25", "JavaSE-25");
+               map.put("24", "JavaSE-24");
+               map.put("23", "JavaSE-23");
+               map.put("22", "JavaSE-22");
+               map.put("21", "JavaSE-21");
+               map.put("20", "JavaSE-20");
+               map.put("19", "JavaSE-19");
+               map.put("18", "JavaSE-18");
                map.put("17", "JavaSE-17");
                map.put("16", "JavaSE-16");
                map.put("15", "JavaSE-15");


=====================================
src/com/zwitserloot/ivyplusplus/eclipse/Settings.java
=====================================
@@ -89,12 +89,12 @@ public class Settings {
                else if ("1.6".equals(source)) v = 6;
                else if ("1.7".equals(source)) v = 7;
                else if ("1.8".equals(source)) v = 8;
-               else if ("9".equals(source)) v = 9;
-               else if ("10".equals(source)) v = 10;
-               else if ("11".equals(source)) v = 11;
-               else if ("12".equals(source)) v = 12;
-               else if ("13".equals(source)) v = 13;
-               else v = 4;
+               else try {
+                       v = Integer.parseInt(source);
+                       if (v < 8 || v > 9999) throw new 
IllegalArgumentException("source: " + source);
+               } catch (NumberFormatException e) {
+                       v = 4;
+               }
                
                todir = new File(todir, ".settings");
                



View it on GitLab: 
https://salsa.debian.org/java-team/ivyplusplus/-/commit/7ec783e6cc9501fbf31a724dfcc08c1f3865979a

-- 
View it on GitLab: 
https://salsa.debian.org/java-team/ivyplusplus/-/commit/7ec783e6cc9501fbf31a724dfcc08c1f3865979a
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
pkg-java-commits mailing list
pkg-java-comm...@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to