From e651ff600ffaa172e3cdaba4832d6b74993f9910 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Thu, 12 Feb 2009 22:16:29 +0000 Subject: [PATCH] ZFS migration feature is live git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15270 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/lifecycle/ZFSInstaller.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/hudson/lifecycle/ZFSInstaller.java b/core/src/main/java/hudson/lifecycle/ZFSInstaller.java index 8583b4511f..5fef397c1e 100644 --- a/core/src/main/java/hudson/lifecycle/ZFSInstaller.java +++ b/core/src/main/java/hudson/lifecycle/ZFSInstaller.java @@ -332,9 +332,10 @@ public class ZFSInstaller extends AdministrativeMonitor implements Serializable return; } - if(System.getProperty(ZFSInstaller.class.getName())!=null) - // this feature is still being tested, so only activate this during a test - monitors.add(new ZFSInstaller()); + // install the monitor if applicable + ZFSInstaller zi = new ZFSInstaller(); + if(zi.isActivated()) + monitors.add(zi); } /**