Skip to content

Commit 7787065

Browse files
author
zhourenjian@gmail.com
committed
Fixed bug that building projects with both JavaBuilder and Java2Script builder may lock eclipse on building forever.
1 parent 975177e commit 7787065

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public class Java2ScriptCompiler implements IExtendedCompiler {
4141

4242
public void process(ICompilationUnit sourceUnit, IContainer binaryFolder) {
4343
final IProject project = binaryFolder.getProject();
44+
/*
4445
synchronized (project) {
4546
if (Java2ScriptProjectNature.hasJavaBuilder(project)) {
4647
if (Java2ScriptProjectNature.removeJavaBuilder(project)) {
@@ -62,6 +63,7 @@ public void run() {
6263
}
6364
}
6465
}
66+
// */
6567
String prjFolder = project.getLocation().toOSString();
6668
File file = new File(prjFolder, ".j2s"); //$NON-NLS-1$
6769
if (!file.exists()) {

0 commit comments

Comments
 (0)