Compare commits

...

3 Commits

3 changed files with 73 additions and 5 deletions

View File

@ -0,0 +1,69 @@
package com.customization.youhong.guoxiaojun.sendtodo.impl;
import lombok.Setter;
import weaver.ofs.interfaces.SendRequestStatusDataInterfaces;
import weaver.workflow.request.todo.DataObj;
import java.util.ArrayList;
/**
* <h1></h1>
*
* <p>create: 2023/7/15 13:32</p>
*
* @author youHong.ai
*/
@Setter
public class SendTodoTaskImpl implements SendRequestStatusDataInterfaces {
/**
* id
*/
public String id;
/**
*
*/
public String syscode;
/**
* URL
*/
public String serverurl;
/**
*
*/
public ArrayList<String> workflowwhitelist;
/**
*
*/
public ArrayList<String> userwhitelist;
@Override
public String getId() {
return id;
}
@Override
public String getSyscode() {
return syscode;
}
@Override
public String getServerurl() {
return serverurl;
}
@Override
public ArrayList<String> getWorkflowwhitelist() {
return workflowwhitelist;
}
@Override
public ArrayList<String> getUserwhitelist() {
return userwhitelist;
}
@Override
public void SendRequestStatusData(ArrayList<DataObj> datas) {
}
}

View File

@ -116,9 +116,9 @@ public class BuilderPackageEcology extends Application {
try {
FileCompressor.compressFiles(filePaths, outputFile.getAbsolutePath(), path -> {
String rootPath = Util.class.getResource("/").getPath();
if(rootPath.startsWith("/")){
if (rootPath.startsWith("/") && File.separator.equals("\\")) {
rootPath = rootPath.substring(1);
rootPath = rootPath.replace("/",File.separator);
rootPath = rootPath.replace("/", File.separator);
}
rootPath = rootPath.split(Pattern.quote(File.separator + FileTreeBuilder.targetPath))[0] + File.separator + FileTreeBuilder.targetPath + FileTreeBuilder.classPath;
String replace = "/ecology/" + (isEcology ? "WEB-INF/classes/" : "classbean/");
@ -258,7 +258,6 @@ public class BuilderPackageEcology extends Application {
Node rootIcon = new ImageView(
new javafx.scene.image.Image(Objects.requireNonNull(getClass().getResourceAsStream(iconName)))
);// 定义一个图片类型节点对象
checkBox.setGraphic(rootIcon);
} else if (item.getFileName().endsWith(".jar")) {
Node fileIcon = new ImageView(

View File

@ -26,9 +26,9 @@ public class AutoPackageJar {
public static void createJar(String targetPath) {
String path = AutoPackageJar.class.getResource("").getPath();
if(path.startsWith("/")){
if (path.startsWith("/") && File.separator.equals("\\")) {
path = path.substring(1);
path = path.replace("/",File.separator);
path = path.replace("/", File.separator);
}
String regex = File.separator + targetPath;
String finalPath = path.split(Pattern.quote(regex))[0] + File.separator + targetPath + FileTreeBuilder.classPath;