Skip to content

Commit 6b1eb45

Browse files
committed
Fixed build errors on OS X, when ant is run from a location other than build/macosx
1 parent 5fcf6ac commit 6b1eb45

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

build/macosx/appbundler/src/com/oracle/appbundler/BundleDocument.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
public class BundleDocument {
3535
private String name = "editor";
3636
private String role = "";
37-
private String icon = null;
38-
private File iconFile;
37+
private File icon = null;
3938
private String[] extensions;
4039
private boolean isPackage = false;
4140

@@ -56,9 +55,8 @@ public void setExtensions(String extensionsList) {
5655
}
5756
}
5857

59-
public void setIcon(String icon) {
58+
public void setIcon(File icon) {
6059
this.icon = icon;
61-
this.iconFile = new File(icon);
6260
}
6361

6462
public void setName(String name) {
@@ -82,12 +80,12 @@ public void setIsPackage(String isPackageString) {
8280
// }
8381

8482
public String getIconName() {
85-
return iconFile.getName();
83+
return icon.getName();
8684
}
8785

8886

8987
public File getIconFile() {
90-
return iconFile;
88+
return icon;
9189
}
9290

9391
public String getName() {

0 commit comments

Comments
 (0)