@@ -82,30 +82,6 @@ private CompressionStrategy dynamicInstantiation(String className) {
82
82
}
83
83
}
84
84
85
- // http://jira.qos.ch/browse/LBCORE-98
86
- // The name of the compressed file as nested within the zip archive
87
- //
88
- // Case 1: RawFile = null, Pattern = foo-%d.zip
89
- // nestedFilename = foo-${current-date}
90
- //
91
- // Case 2: RawFile = hello.txt, Pattern = = foo-%d.zip
92
- // nestedFilename = foo-${current-date}
93
- //
94
- // in both cases, the strategy consisting of removing the compression
95
- // suffix of zip file works reasonably well. The alternative strategy
96
- // whereby the nested file name was based on the value of the raw file name
97
- // (applicable to case 2 only) has the disadvantage of the nested files
98
- // all having the same name, which could make it harder for the user
99
- // to unzip the file without collisions
100
- // ZipEntry computeZipEntry(File zippedFile) {
101
- // return computeZipEntry(zippedFile.getName());
102
- // }
103
- //
104
- // ZipEntry computeZipEntry(String filename) {
105
- // String nameOfFileNestedWithinArchive = computeFileNameStrWithoutCompSuffix(filename, compressionMode);
106
- // return new ZipEntry(nameOfFileNestedWithinArchive);
107
- // }
108
-
109
85
static public String computeFileNameStrWithoutCompSuffix (String fileNamePatternStr , CompressionMode compressionMode ) {
110
86
int len = fileNamePatternStr .length ();
111
87
switch (compressionMode ) {
@@ -130,13 +106,6 @@ static public String computeFileNameStrWithoutCompSuffix(String fileNamePatternS
130
106
throw new IllegalStateException ("Execution should not reach this point" );
131
107
}
132
108
133
- // void createMissingTargetDirsIfNecessary(File file) {
134
- // boolean result = FileUtil.createMissingParentDirectories(file);
135
- // if (!result) {
136
- // addError("Failed to create parent directories for [" + file.getAbsolutePath() + "]");
137
- // }
138
- // }
139
-
140
109
@ Override
141
110
public String toString () {
142
111
return this .getClass ().getName ();
0 commit comments