@Test public void shouldRelativizeOnRealPlatform() { Path parentDir = new File( TMP, "test-parent-1" ) .toPath(); Path testDir = new File( TMP, "@1 test with white spaces" ) .toPath(); String relativeTestDir = relativize( parentDir, testDir ); assertThat( relativeTestDir ) .isEqualTo( ".." + File.separator + "@1 test with white spaces" ); }
static String relativize( @Nonnull Path parent, @Nonnull Path child ) throws IllegalArgumentException { return parent.relativize( child ) .toString(); }
JarManifestForkConfiguration extends AbstractClasspathForkConfiguration { static String relativize( @Nonnull Path parent, @Nonnull Path child ) throws IllegalArgumentException { return parent.relativize( child ) .toString(); } }
JarManifestForkConfiguration extends AbstractClasspathForkConfiguration { static String relativize( @Nonnull Path parent, @Nonnull Path child ) throws IllegalArgumentException { return parent.relativize( child ) .toString(); } @SuppressWarnings( "checkstyle:parameternumber" )  JarManifestForkConfiguration( @Nonnull Classpath bootClasspath, @Nonnull File tempDirectory,
                                         @Nullable String debugLine, @Nonnull File workingDirectory,
                                         @Nonnull Properties modelProperties, @Nullable String argLine,
                                         @Nonnull Map<String, String> environmentVariables,
                                         @Nonnull String[] excludedEnvironmentVariables,
                                         boolean debug,
                                         int forkCount, boolean reuseForks, @Nonnull Platform pluginPlatform,
                                         @Nonnull ConsoleLogger log,
                                         @Nonnull ForkNodeFactory forkNodeFactory ); }
JarManifestForkConfiguration extends AbstractClasspathForkConfiguration { static String relativize( @Nonnull Path parent, @Nonnull Path child ) throws IllegalArgumentException { return parent.relativize( child ) .toString(); } @SuppressWarnings( "checkstyle:parameternumber" )  JarManifestForkConfiguration( @Nonnull Classpath bootClasspath, @Nonnull File tempDirectory,
                                         @Nullable String debugLine, @Nonnull File workingDirectory,
                                         @Nonnull Properties modelProperties, @Nullable String argLine,
                                         @Nonnull Map<String, String> environmentVariables,
                                         @Nonnull String[] excludedEnvironmentVariables,
                                         boolean debug,
                                         int forkCount, boolean reuseForks, @Nonnull Platform pluginPlatform,
                                         @Nonnull ConsoleLogger log,
                                         @Nonnull ForkNodeFactory forkNodeFactory );  }
JarManifestForkConfiguration extends AbstractClasspathForkConfiguration { static String relativize( @Nonnull Path parent, @Nonnull Path child ) throws IllegalArgumentException { return parent.relativize( child ) .toString(); } @SuppressWarnings( "checkstyle:parameternumber" )  JarManifestForkConfiguration( @Nonnull Classpath bootClasspath, @Nonnull File tempDirectory,
                                         @Nullable String debugLine, @Nonnull File workingDirectory,
                                         @Nonnull Properties modelProperties, @Nullable String argLine,
                                         @Nonnull Map<String, String> environmentVariables,
                                         @Nonnull String[] excludedEnvironmentVariables,
                                         boolean debug,
                                         int forkCount, boolean reuseForks, @Nonnull Platform pluginPlatform,
                                         @Nonnull ConsoleLogger log,
                                         @Nonnull ForkNodeFactory forkNodeFactory );   }