juhaoyu 7 years ago
parent
commit
ba2a78b8ae
  1. 5
      designer_base/src/com/fr/design/extra/PluginHelper.java

5
designer_base/src/com/fr/design/extra/PluginHelper.java

@ -20,6 +20,7 @@ import com.fr.plugin.dependence.PluginDependence;
import com.fr.plugin.dependence.PluginDependenceException; import com.fr.plugin.dependence.PluginDependenceException;
import com.fr.plugin.dependence.PluginDependenceUnit; import com.fr.plugin.dependence.PluginDependenceUnit;
import com.fr.stable.ArrayUtils; import com.fr.stable.ArrayUtils;
import com.fr.stable.AssistUtils;
import com.fr.stable.EncodeConstants; import com.fr.stable.EncodeConstants;
import com.fr.stable.StableUtils; import com.fr.stable.StableUtils;
import com.fr.stable.StringUtils; import com.fr.stable.StringUtils;
@ -133,7 +134,7 @@ public class PluginHelper {
File[] pluginFiles = pluginFileDir.listFiles(); File[] pluginFiles = pluginFileDir.listFiles();
if (ArrayUtils.isNotEmpty(pluginFiles)) { if (ArrayUtils.isNotEmpty(pluginFiles)) {
for (File f : pluginFiles) { for (File f : pluginFiles) {
if (f.getName().equals("plugin.xml")) { if (AssistUtils.equals(f.getName(), "plugin.xml")) {
plugin = new Plugin(); plugin = new Plugin();
InputStream inputStream = plugin.readEncryptXml(new FileInputStream(f)); InputStream inputStream = plugin.readEncryptXml(new FileInputStream(f));
XMLTools.readInputStreamXML(plugin, inputStream); XMLTools.readInputStreamXML(plugin, inputStream);
@ -323,7 +324,7 @@ public class PluginHelper {
File[] files = dir.listFiles(); File[] files = dir.listFiles();
if (ArrayUtils.isNotEmpty(files)) { if (ArrayUtils.isNotEmpty(files)) {
for (File f : files) { for (File f : files) {
if ("plugin.xml".equals(f.getName())) { if (AssistUtils.equals("plugin.xml",f.getName())) {
return true; return true;
} }
} }

Loading…
Cancel
Save