File tree 1 file changed +4
-1
lines changed
task-unzip/src/com/github/maybeec/oomph/task/unzip/impl
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ public class unzipTaskImpl extends SetupTaskImpl implements unzipTask
91
91
*/
92
92
protected int priority = PRIORITY_EDEFAULT ;
93
93
94
+ private boolean isNeeded = true ;
95
+
94
96
/**
95
97
* <!-- begin-user-doc -->
96
98
* <!-- end-user-doc -->
@@ -300,14 +302,15 @@ public String toString()
300
302
301
303
public boolean isNeeded (SetupTaskContext context ) throws Exception
302
304
{
303
- return true ;
305
+ return isNeeded ;
304
306
}
305
307
306
308
public void perform (SetupTaskContext context ) throws Exception
307
309
{
308
310
SetupTaskLogger .getLogger ().setContext (context );
309
311
UnzipUtil unzipUtil = UnzipUtil .getInstance ();
310
312
unzipUtil .unzip (zipFile , destinationDir );
313
+ isNeeded = false ;
311
314
}
312
315
313
316
@ Override
You can’t perform that action at this time.
0 commit comments