|
|
@ -8,6 +8,8 @@ import com.xxl.job.core.log.XxlJobLogger;
|
|
|
|
import com.xxl.job.core.util.ScriptUtil;
|
|
|
|
import com.xxl.job.core.util.ScriptUtil;
|
|
|
|
import com.xxl.job.core.util.ShardingUtil;
|
|
|
|
import com.xxl.job.core.util.ShardingUtil;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Created by xuxueli on 17/4/27.
|
|
|
|
* Created by xuxueli on 17/4/27.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -41,7 +43,7 @@ public class ScriptJobHandler extends IJobHandler {
|
|
|
|
|
|
|
|
|
|
|
|
// make script file
|
|
|
|
// make script file
|
|
|
|
String scriptFileName = XxlJobFileAppender.getGlueSrcPath()
|
|
|
|
String scriptFileName = XxlJobFileAppender.getGlueSrcPath()
|
|
|
|
.concat("/")
|
|
|
|
.concat(File.separator)
|
|
|
|
.concat(String.valueOf(jobId))
|
|
|
|
.concat(String.valueOf(jobId))
|
|
|
|
.concat("_")
|
|
|
|
.concat("_")
|
|
|
|
.concat(String.valueOf(glueUpdatetime))
|
|
|
|
.concat(String.valueOf(glueUpdatetime))
|
|
|
|