feat():测试

yuan
yuan 2024-09-01 22:23:10 +08:00
parent 10a211b6ef
commit 602de88ba3
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ public class OSSFileLoad {
return Result.error("预下载文件不存在");
}
// 本地文件下载路径
String localPath = "home/app.jar"+fileName;
String localPath = "home/app.jar/"+fileName;
// ObjectMetadata object = ossClient.getObject(new GetObjectRequest(bucketName, filePath + fileName), new File(localPath));
// System.out.println(object);
//
@ -76,9 +76,9 @@ public class OSSFileLoad {
}
//对路径里的.java文件进行编译
SourceCodeCompiler.javaCompilerPath("/home/app.jar");
SourceCodeCompiler.javaCompilerPath("/home/app.jar/");
System.out.println("第一步");
File outputDir = new File("home/app.jar"); // 或者是你指定的其他输出目录
File outputDir = new File("home/app.jar/"); // 或者是你指定的其他输出目录
System.out.println("第一步");
File[] classFiles = outputDir.listFiles(); // 获取输出目录中的所有文件
System.out.println("第三步");