Skip to content

Commit b3b1e96

Browse files
committed
transpiler fix for package foo on path /foo/..../foo/
1 parent 423c281 commit b3b1e96

File tree

5 files changed

+3
-3
lines changed

5 files changed

+3
-3
lines changed
3 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20191027191514
1+
20191029103701
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20191027191514
1+
20191029103701

sources/net.sf.j2s.core/src/net/sf/j2s/core/Java2ScriptCompiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ boolean compileToJavaScript(IFile javaSource) {
391391
packageName = packageName.substring(0, pt);
392392
if (!copyResources.contains(packageName)) {
393393
copyResources.add(packageName);
394-
String sourceDir = sourceLocation.substring(0, sourceLocation.indexOf("/" + packageName + "/"));
394+
String sourceDir = sourceLocation.substring(0, sourceLocation.lastIndexOf("/" + packageName + "/"));
395395
File src = new File(sourceDir, packageName);
396396
File dest = new File(j2sPath, packageName);
397397
copySiteResources(src, dest);

0 commit comments

Comments
 (0)