|
|
@@ -233,6 +233,15 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable { |
|
|
|
platform = PLATFORM_UNIX; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Unix permission. |
|
|
|
* |
|
|
|
* @since Ant 1.6 |
|
|
|
*/ |
|
|
|
public int getUnixMode() { |
|
|
|
return (int) ((getExternalAttributes() >> 16) & 0xFFFF); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Platform specification to put into the "version made |
|
|
|
* by" part of the central file header. |
|
|
@@ -404,6 +413,13 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable { |
|
|
|
return name == null ? super.getName() : name; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 1.10 |
|
|
|
*/ |
|
|
|
public boolean isDirectory() { |
|
|
|
return getName().endsWith("/"); |
|
|
|
} |
|
|
|
|
|
|
|
protected void setName(String name) { |
|
|
|
this.name = name; |
|
|
|
} |
|
|
|