|
@@ -51,10 +51,14 @@ public class CreatDatPlugin extends AbstractListPlugin {
|
|
|
",nckd_port,nckd_url,nckd_filename,nckd_user" +
|
|
|
",nckd_password,nckd_split,nckd_endsign",new QFilter[]{qFilter});
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
String filename=tablenumber+".dat";
|
|
|
- String filedir="C:\\datTemp";
|
|
|
+
|
|
|
+ String filedir="/home/kingdee/cosmic/nginx-appstatic/store/appstatic/";
|
|
|
|
|
|
- String filePath=filedir+"/"+filename;
|
|
|
+ String filePath=filedir+filename;
|
|
|
File dir=new File(filedir);
|
|
|
|
|
|
if (!dir.exists()) {
|
|
@@ -79,17 +83,17 @@ public class CreatDatPlugin extends AbstractListPlugin {
|
|
|
String nckd_url=jkdataDy.getString("nckd_url");
|
|
|
|
|
|
int port=jkdataDy.getInt("nckd_port");
|
|
|
- SftpClient sftpClient=new SftpClient(host,username,password,port);
|
|
|
-
|
|
|
- try {
|
|
|
- sftpClient.connect();
|
|
|
-
|
|
|
- sftpClient.fileCreat(filePath,nckd_url+filename);
|
|
|
-
|
|
|
- sftpClient.disconnect();
|
|
|
- } catch (Exception e) {
|
|
|
- throw new RuntimeException(e);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|