Skip to content

Commit 38c95e6

Browse files
committed
3 KayJam version
1 parent 06ca15d commit 38c95e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jar {
2727
dependencies {
2828
implementation group: 'commons-cli', name: 'commons-cli', version: '1.4'
2929
//implementation group: 'com.github.kayjamlang', name: 'core', version: '0.1.2.1'
30-
implementation group: 'com.github.kayjamlang', name: 'executor', version: '0.1.3'
30+
implementation group: 'com.github.kayjamlang', name: 'executor', version: '0.1.3.16'
3131
implementation group: 'com.github.albfernandez', name: 'juniversalchardet', version: '2.4.0'
3232
testCompile group: 'junit', name: 'junit', version: '4.13'
3333
}

src/main/java/com/github/kayjamlang/executor/cli/Main.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ public static void main(String[] args) throws Exception {
4343
executor.addLibrary(new MainLibrary());
4444
File libDir = new File(Paths.get(System.getProperty("user.dir"),
4545
"./libs/").normalize().toString());
46-
if(libDir.exists()){
46+
if(libDir.exists()||libDir.createNewFile()){
4747
File[] files = libDir.listFiles();
4848
if(files!=null)
4949
for(File libJar: files){
50-
if(libDir.getName().endsWith(".jar"))
50+
if(libJar.getName().endsWith(".jar"))
5151
loadJarLibrary(executor, libJar);
5252
}
5353
}
@@ -73,7 +73,7 @@ private static void loadJarLibrary(Executor executor, File file) throws IOExcept
7373
String className = je.getName().substring(0,je.getName().length()-6);
7474
className = className.replace('/', '.');
7575
Class<?> c = cl.loadClass(className);
76-
if(c.isAssignableFrom(Library.class))
76+
if(Library.class.isAssignableFrom(c))
7777
executor.addLibrary((Library) c.newInstance());
7878
}
7979
}

0 commit comments

Comments
 (0)