Browse Source

无JIRA任务 重构

master
rinoux 7 years ago
parent
commit
edabcaffd5
  1. 7
      designer_base/src/com/fr/env/RemoteEnv.java

7
designer_base/src/com/fr/env/RemoteEnv.java vendored

@ -84,6 +84,7 @@ import java.util.HashMap;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set;
import java.util.Timer; import java.util.Timer;
import java.util.TimerTask; import java.util.TimerTask;
import java.util.logging.Level; import java.util.logging.Level;
@ -2118,16 +2119,14 @@ public class RemoteEnv extends AbstractEnv {
ResourceIOUtils.write(zipFilePath, input); ResourceIOUtils.write(zipFilePath, input);
ResourceIOUtils.unzip(zipFilePath, cacheDir, EncodeConstants.ENCODING_GBK); ResourceIOUtils.unzip(zipFilePath, cacheDir, EncodeConstants.ENCODING_GBK);
List<String> files = ResourceIOUtils.listWithFullPath(cacheDir, new Filter<String>() {
return ResourceIOUtils.listWithFullPath(cacheDir, new Filter<String>() {
@Override @Override
public boolean accept(String s) { public boolean accept(String s) {
return s.endsWith(ProjectConstants.REU); return s.endsWith(ProjectConstants.REU);
} }
}); });
return files.toArray(new String[files.size()]);
} catch (Exception e) { } catch (Exception e) {
FRContext.getLogger().error(e.getMessage()); FRContext.getLogger().error(e.getMessage());
} finally { } finally {

Loading…
Cancel
Save