@@ -40,26 +40,31 @@ class FileHolder {
40
40
41
41
final String stageName
42
42
43
- FileHolder ( Path inputFile ) {
43
+ final Path origPath
44
+
45
+ FileHolder ( Path inputFile , Path origPath = null ) {
44
46
assert inputFile
45
47
this . sourceObj = inputFile
46
48
this . storePath = real(inputFile)
47
49
this . stageName = norm(inputFile. getFileName())
50
+ this . origPath = origPath
48
51
}
49
52
50
- FileHolder ( def origin , Path path ) {
53
+ FileHolder ( def origin , Path path , Path origPath = null ) {
51
54
assert origin != null
52
55
assert path != null
53
56
54
57
this . sourceObj = origin
55
58
this . storePath = path
56
59
this . stageName = norm(path. getFileName())
60
+ this . origPath = origPath
57
61
}
58
62
59
- protected FileHolder ( def source , Path store , def stageName ) {
63
+ protected FileHolder ( def source , Path store , def stageName , Path origPath = null ) {
60
64
this . sourceObj = source
61
65
this . storePath = store
62
66
this . stageName = norm(stageName)
67
+ this . origPath = origPath
63
68
}
64
69
65
70
FileHolder withName ( def stageName ) {
@@ -70,6 +75,8 @@ class FileHolder {
70
75
71
76
String getStageName () { stageName }
72
77
78
+ Path getOrigPath () { origPath }
79
+
73
80
@PackageScope
74
81
static FileHolder get ( def path , def name = null ) {
75
82
Path storePath = path as Path
0 commit comments