Bläddra i källkod

管道修改BUG

huangxingxing 1 år sedan
förälder
incheckning
e1d2990d53
1 ändrade filer med 6 tillägg och 2 borttagningar
  1. 6 2
      src/main/java/com/miniframe/bisiness/system/D00008Service.java

+ 6 - 2
src/main/java/com/miniframe/bisiness/system/D00008Service.java

@@ -215,13 +215,17 @@ public class D00008Service extends D00008BaseModel implements ExecProcessFlow {
 	public void cpGssExe(String gassDir) throws IOException {
 		Runtime runtime = Runtime.getRuntime();
 		Process p =null;
-		runtime.exec("cp -f /home/disaster/gas/bin/* "+ gassDir);
+		String shell ="cp -f /home/disaster/gas/bin/* "+ gassDir;
+		System.out.println(shell);
+		runtime.exec(shell);
 	}
 
 	public void cpFile(String file1Path,String file2Path) throws IOException {
 		Runtime runtime = Runtime.getRuntime();
 		Process p =null;
-		runtime.exec("cp -f "+ file2Path);
+		String shell ="cp -f "+file1Path+"  "+ file2Path;
+		System.out.println(shell);
+		runtime.exec(shell);
 	}
 
 	//异步执行