blob: ba87ab9692b3f738e457e532964a2490b0e31f2f (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/*******************************************************************************
* Copyright (c) 2006, 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM - Initial API and implementation
*******************************************************************************/
package org.eclipse.internal.provisional.equinox.p2.jarprocessor;
import java.io.File;
import java.util.List;
import java.util.Properties;
/**
* @author aniefer@ca.ibm.com
*
*/
public interface IProcessStep {
/**
* The effect of this processing step if the JarProcessor was to recurse on this entry.
* Return null if this step will not do anything with this entry.
* Return the new entryName if this step will modify this entry on recursion.
* @param entryName
* @return The new entry name, or <code>null</code>
*/
public String recursionEffect(String entryName);
/**
* Perform some processing on the input file before the JarProcessor considers the entries for recursion.
* @param input
* @param workingDirectory
* @param containers inf properties for containing jars, innermost jar is first on the list
* @return the file containing the result of the processing
*/
public File preProcess(File input, File workingDirectory, List containers);
/**
* Perform some processing on the input file after the JarProcessor returns from recursion.
*
* @param input
* @param workingDirectory
* @param containers inf properties for containing jars, innermost jar is first on the list
* @return the file containing the result of the processing
*/
public File postProcess(File input, File workingDirectory, List containers);
/**
* Return the name of this process step
* @return the name of this process step
*/
public String getStepName();
/**
* Adjust any properties in the eclipse.inf as appropriate for this step
* @param input
* @param inf
* @param containers inf properties for containing jars, innermost jar is first on the list
*/
public void adjustInf(File input, Properties inf, List containers);
}
|