aboutsummaryrefslogtreecommitdiff
path: root/src/installer
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2011-06-07 22:12:29 -0700
committerReinier Zwitserloot <reinier@zwitserloot.com>2011-06-07 22:12:29 -0700
commit274d5de571f76b04aa140ea9c04dfc23353dd9f6 (patch)
tree8c94de1d3ebee043e1353cf92157b4e335b75451 /src/installer
parentdeb6b061ceb08608414ec1bec53eda999f9c69ea (diff)
downloadlombok-274d5de571f76b04aa140ea9c04dfc23353dd9f6.tar.gz
lombok-274d5de571f76b04aa140ea9c04dfc23353dd9f6.tar.bz2
lombok-274d5de571f76b04aa140ea9c04dfc23353dd9f6.zip
Decided to improve the windows regexp detector from 'windows' to win|win32|win64|windows, on a word break.
Diffstat (limited to 'src/installer')
-rw-r--r--src/installer/lombok/installer/IdeFinder.java4
1 files changed, 2 insertions, 2 deletions
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;
}