Author: bodewig
Date: Wed Aug 19 04:17:05 2009
New Revision: 805659
URL: http://svn.apache.org/viewvc?rev=805659&view=rev
Log:
prefix and fullpath are empty strings by default
Modified:
ant/sandbox/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/ArchiveBase.java
Modified:
ant/sandbox/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/ArchiveBase.java
URL:
http://svn.apache.org/viewvc/ant/sandbox/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/ArchiveBase.java?rev=805659&r1=805658&r2=805659&view=diff
==============================================================================
---
ant/sandbox/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/ArchiveBase.java
(original)
+++
ant/sandbox/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/ArchiveBase.java
Wed Aug 19 04:17:05 2009
@@ -553,10 +553,14 @@
public boolean hasDirModeBeenSet() { return dirMode >= 0; }
public int getDirMode() { return dirMode; }
- public boolean hasPrefix() { return prefix != null; }
+ public boolean hasPrefix() {
+ return prefix != null && !"".equals(prefix);
+ }
public String getPrefix() { return prefix; }
- public boolean hasFullpath() { return fullpath != null; }
+ public boolean hasFullpath() {
+ return fullpath != null && !"".equals(fullpath);
+ }
public String getFullpath() { return fullpath; }
}