⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uninstaller.java

📁 基于Jabber协议的即时消息服务器
💻 JAVA
字号:
/** * $Revision: $ * $Date:  $ * * Copyright (C) 1999-2006 Jive Software. All rights reserved. * * This software is the proprietary information of Jive Software. * Use is subject to license terms. */package org.jivesoftware.wildfire.launcher;import com.install4j.api.Context;import com.install4j.api.ProgressInterface;import com.install4j.api.UninstallAction;import java.io.File;import java.io.FilenameFilter;/** * Used with the Install4J installer to uninstall the remaining files within * the WildFire install. */public class Uninstaller extends UninstallAction {    public int getPercentOfTotalInstallation() {        return 0;    }    public boolean performAction(Context context, ProgressInterface progressInterface) {        final File installationDirectory = context.getInstallationDirectory();        File libDirectory = new File(installationDirectory, "lib");        // If the directory still exists, remove all JAR files.        if (libDirectory.exists() && libDirectory.isDirectory()) {            File[] jars = libDirectory.listFiles(new FilenameFilter() {                public boolean accept(File dir, String name) {                    return name.endsWith(".jar");                }            });            for (File jar : jars) {                jar.delete();            }        }        return super.performAction(context, progressInterface);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -