From 274d5de571f76b04aa140ea9c04dfc23353dd9f6 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 7 Jun 2011 22:12:29 -0700 Subject: Decided to improve the windows regexp detector from 'windows' to win|win32|win64|windows, on a word break. --- src/installer/lombok/installer/IdeFinder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/installer/lombok/installer/IdeFinder.java b/src/installer/lombok/installer/IdeFinder.java index a5e22716..110b19e3 100644 --- a/src/installer/lombok/installer/IdeFinder.java +++ b/src/installer/lombok/installer/IdeFinder.java @@ -1,5 +1,5 @@ /* - * Copyright © 2009 Reinier Zwitserloot and Roel Spilker. + * Copyright © 2009-2011 Reinier Zwitserloot and Roel Spilker. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -126,7 +126,7 @@ public abstract class IdeFinder { String prop = System.getProperty("os.name", "").toLowerCase(); if (prop.matches("^.*\\bmac\\b.*$")) return OS.MAC_OS_X; if (prop.matches("^.*\\bdarwin\\b.*$")) return OS.MAC_OS_X; - if (prop.matches("^.*\\bwindows\\b.*$")) return OS.WINDOWS; + if (prop.matches("^.*\\bwin(dows|32|64)?\\b.*$")) return OS.WINDOWS; return OS.UNIX; } -- cgit