|
@@ -96,12 +96,15 @@ public class CreatDatPlugin extends AbstractListPlugin {
|
|
|
SftpClient sftpClient=new SftpClient(host,username,password,port);
|
|
|
try {
|
|
|
|
|
|
- Path localFile = Files.createTempFile(tablenumber, ".dat");
|
|
|
-
|
|
|
- DatFileCreatUtils datFileCreatUtils=new DatFileCreatUtils(tablenumber,bizappnum,fileList,localFile.toString(),spiltsign,endsign);
|
|
|
+ File localFile = File.createTempFile(tablenumber, ".dat");
|
|
|
+
|
|
|
+ DatFileCreatUtils datFileCreatUtils=new DatFileCreatUtils(tablenumber,bizappnum,fileList,localFile.getAbsolutePath(),spiltsign,endsign);
|
|
|
|
|
|
datFileCreatUtils.creatDatFile();
|
|
|
- sftpClient.fileCreat(String.valueOf(localFile),nckd_url);
|
|
|
+
|
|
|
+ sftpClient.fileCreat(localFile.getAbsolutePath(), nckd_url);
|
|
|
+
|
|
|
+ localFile.delete();
|
|
|
} catch (IOException e) {
|
|
|
throw new RuntimeException(e);
|
|
|
} catch (SftpException e) {
|
|
@@ -117,11 +120,11 @@ public class CreatDatPlugin extends AbstractListPlugin {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|