Skip to content

Commit b33bcea

Browse files
committed
Merge remote-tracking branch 'origin/development' into master
2 parents 36da142 + 8e46f15 commit b33bcea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

task-unzip/src/com/github/maybeec/oomph/task/unzip/impl/unzipTaskImpl.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ public class unzipTaskImpl extends SetupTaskImpl implements unzipTask
9191
*/
9292
protected int priority = PRIORITY_EDEFAULT;
9393

94+
private boolean isNeeded = true;
95+
9496
/**
9597
* <!-- begin-user-doc -->
9698
* <!-- end-user-doc -->
@@ -300,14 +302,15 @@ public String toString()
300302

301303
public boolean isNeeded(SetupTaskContext context) throws Exception
302304
{
303-
return true;
305+
return isNeeded;
304306
}
305307

306308
public void perform(SetupTaskContext context) throws Exception
307309
{
308310
SetupTaskLogger.getLogger().setContext(context);
309311
UnzipUtil unzipUtil = UnzipUtil.getInstance();
310312
unzipUtil.unzip(zipFile, destinationDir);
313+
isNeeded = false;
311314
}
312315

313316
@Override

0 commit comments

Comments
 (0)