Skip to main content
summaryrefslogtreecommitdiffstats
blob: 67e089ab836756a0cddcd2b9528f83986b0ab535 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package org.eclipse.cdt.internal.p2.touchpoint.natives.actions;

import java.util.Map;

import org.eclipse.core.runtime.IStatus;
import org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction;
import org.eclipse.equinox.internal.provisional.p2.engine.ProvisioningAction;

/**
 * Cleanup an untared artifact.
 * 
 * syntax: cleanupuntar(source:@artifact, target:${installFolder}/<subdir>, compression:[gz|bz2])
 * 
 * @author DSchaefe
 *
 */
public class CleanupUntarAction extends ProvisioningAction {

	@Override
	public IStatus execute(Map parameters) {
		return cleanup(parameters);
	}

	@Override
	public IStatus undo(Map parameters) {
		return UntarAction.untar(parameters);
	}

	public static IStatus cleanup(Map parameters) {
		return CleanupzipAction.cleanupzip(parameters, false);
	}
}

Back to the top