mirror of
https://github.com/WeiYe-Jing/datax-web.git
synced 2026-07-03 21:08:58 +08:00
change:
1. 移动命令行工具到test包 2. 修改临时生成的jsonjob文件名加上时间戳
This commit is contained in:
parent
bd26aad65d
commit
c824c8d273
@ -253,7 +253,7 @@ public class Engine {
|
||||
|
||||
//todo 都是用同一个文件,是否需要考虑线程安全问题
|
||||
public static void startJobByJsonStr(String jobJson) {
|
||||
String tmpFilePath = "jobTmp.conf";
|
||||
String tmpFilePath = "jobTmp.conf-"+ System.currentTimeMillis();
|
||||
// 根据json写入到临时本地文件
|
||||
PrintWriter writer = null;
|
||||
try {
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
package com.alibaba.datax.core;
|
||||
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
11
core/src/test/java/TimeTest.java
Normal file
11
core/src/test/java/TimeTest.java
Normal file
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* @program: datax-all
|
||||
* @description:
|
||||
* @author: huzekang
|
||||
* @create: 2019-05-07 22:02
|
||||
**/
|
||||
public class TimeTest {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(System.currentTimeMillis());
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user