1 package org.apache.maven.project.interpolation;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.model.Model;
23 import org.apache.maven.project.ProjectBuilderConfiguration;
24
25 import java.io.File;
26 import java.util.Map;
27
28
29
30
31
32
33 public interface ModelInterpolator
34 {
35 String DEFAULT_BUILD_TIMESTAMP_FORMAT = "yyyyMMdd-HHmm";
36
37 String BUILD_TIMESTAMP_FORMAT_PROPERTY = "maven.build.timestamp.format";
38
39 String ROLE = ModelInterpolator.class.getName();
40
41
42
43
44 Model interpolate( Model project, Map<String, ?> context )
45 throws ModelInterpolationException;
46
47
48
49
50 Model interpolate( Model model, Map<String, ?> context, boolean strict )
51 throws ModelInterpolationException;
52
53 Model interpolate( Model model,
54 File projectDir,
55 ProjectBuilderConfiguration config,
56 boolean debugEnabled )
57 throws ModelInterpolationException;
58
59 String interpolate( String src,
60 Model model,
61 File projectDir,
62 ProjectBuilderConfiguration config,
63 boolean debugEnabled )
64 throws ModelInterpolationException;
65 }