View Javadoc
1   /*
2    * Copyright The Plexus developers.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.codehaus.plexus.archiver;
17  
18  /**
19   * What an {@link UnArchiver} does with a symbolic link entry when the file system refuses to create the link,
20   * for example on Windows without the "Create symbolic links" right or Developer Mode.
21   *
22   * @since 4.15.0
23   */
24  public enum SymlinkFailureMode {
25      /**
26       * Fail the extraction.
27       */
28      FAIL,
29  
30      /**
31       * Log a warning and, once every entry is extracted, copy the link target in place of the link.
32       * Targets outside the destination directory, missing targets and link cycles are skipped with a warning.
33       */
34      COPY_TARGET,
35  
36      /**
37       * Log a warning and leave the entry out.
38       */
39      SKIP
40  }