Skip to content

Commit

Permalink
Fixed build errors on OS X, when ant is run from a location other tha…
Browse files Browse the repository at this point in the history
…n build/macosx
  • Loading branch information
martinleopold committed Oct 10, 2013
1 parent 5fcf6ac commit 6b1eb45
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
public class BundleDocument {
private String name = "editor";
private String role = "";
private String icon = null;
private File iconFile;
private File icon = null;
private String[] extensions;
private boolean isPackage = false;

Expand All @@ -56,9 +55,8 @@ public void setExtensions(String extensionsList) {
}
}

public void setIcon(String icon) {
public void setIcon(File icon) {
this.icon = icon;
this.iconFile = new File(icon);
}

public void setName(String name) {
Expand All @@ -82,12 +80,12 @@ public void setIsPackage(String isPackageString) {
// }

public String getIconName() {
return iconFile.getName();
return icon.getName();
}


public File getIconFile() {
return iconFile;
return icon;
}

public String getName() {
Expand Down

0 comments on commit 6b1eb45

Please sign in to comment.