View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.plugin.surefire.booterclient;
20  
21  import javax.annotation.Nonnull;
22  import javax.annotation.Nullable;
23  
24  import java.io.File;
25  import java.util.Map;
26  import java.util.Properties;
27  
28  import org.apache.maven.plugin.surefire.log.api.ConsoleLogger;
29  import org.apache.maven.surefire.booter.Classpath;
30  import org.apache.maven.surefire.extensions.ForkNodeFactory;
31  
32  /**
33   * @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
34   * @since 2.21.0.Jigsaw
35   */
36  abstract class AbstractClasspathForkConfiguration extends DefaultForkConfiguration {
37  
38      @SuppressWarnings("checkstyle:parameternumber")
39      AbstractClasspathForkConfiguration(
40              @Nonnull Classpath bootClasspath,
41              @Nonnull File tempDirectory,
42              @Nullable String debugLine,
43              @Nonnull File workingDirectory,
44              @Nonnull Properties modelProperties,
45              @Nullable String argLine,
46              @Nonnull Map<String, String> environmentVariables,
47              @Nonnull String[] excludedEnvironmentVariables,
48              boolean debug,
49              int forkCount,
50              boolean reuseForks,
51              @Nonnull Platform pluginPlatform,
52              @Nonnull ConsoleLogger log,
53              @Nonnull ForkNodeFactory forkNodeFactory) {
54          super(
55                  bootClasspath,
56                  tempDirectory,
57                  debugLine,
58                  workingDirectory,
59                  modelProperties,
60                  argLine,
61                  environmentVariables,
62                  excludedEnvironmentVariables,
63                  debug,
64                  forkCount,
65                  reuseForks,
66                  pluginPlatform,
67                  log,
68                  forkNodeFactory);
69      }
70  
71      @Override
72      @Nonnull
73      protected String extendJvmArgLine(@Nonnull String jvmArgLine) {
74          return jvmArgLine;
75      }
76  }