Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b77533

Browse files
author
zhourenjian
committed
Fixing bug that create Java2Script SWT project result incorrect ECLIPSE_SWT jar (detecting SWT's source jar file)
1 parent 497f3f4 commit 1b77533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/sf/j2s/ui/variables/SWTVariableInitializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void initialize(String variable) {
5757
File[] swtJars = file.listFiles(new FileFilter() {
5858
public boolean accept(File pathname) {
5959
String name = pathname.getName().toLowerCase();
60-
if (name.startsWith("org.eclipse.swt.") && name.endsWith(".jar")) {
60+
if (name.startsWith("org.eclipse.swt.") && name.endsWith(".jar") && name.indexOf("source") == -1) {
6161
return true;
6262
}
6363
return false;

0 commit comments

Comments
 (0)