@@ -169,11 +169,10 @@ public class Boot {
169169 int n = -1 ;
170170 byte [] buf = new byte [4096 ];
171171
172- System .err .print ("Downloading " + url + "..." );
172+ System .err .println ("Downloading " + url + "..." );
173173 try (InputStream is = (new URL (url )).openStream ();
174174 OutputStream os = new FileOutputStream (tmp )) {
175175 while (-1 != (n = is .read (buf ))) os .write (buf , 0 , n ); }
176- System .err .println ("done." );
177176
178177 Files .move (tmp .toPath (), f .toPath (), REPLACE_EXISTING , ATOMIC_MOVE );
179178 return f ; }
@@ -208,6 +207,14 @@ public class Boot {
208207 latestBinaryFile () throws Exception {
209208 return binaryFileValidate (latestInstalledVersion (bindir ().listFiles ())); }
210209
210+ public static String
211+ ignorePrerelease (String version ) throws Exception {
212+ String ret = version ;
213+ if (version != null && version .matches ("^2\\ .0\\ .0-(rc|pre)[0-9]+$" )) {
214+ ret = null ;
215+ System .err .println ("Version " +version +" is no longer supported." ); }
216+ return ret ; }
217+
211218 public static File
212219 install (String version ) throws Exception {
213220 Properties p = propertiesResource ("boot/tag-release.properties" );
@@ -230,7 +237,7 @@ public class Boot {
230237 main (String [] args ) throws Exception {
231238 String [] a = args ;
232239 File f = null ;
233- String v = config ("BOOT_VERSION" );
240+ String v = ignorePrerelease ( config ("BOOT_VERSION" ) );
234241
235242 if (v != null && (f = binaryFileValidate (v )) == null )
236243 f = install (v );
0 commit comments