@Test public void shouldMakeAbsoluteUriOnRealPlatform() throws Exception { Path testDir = new File( TMP, "@2 test with white spaces" ) .toPath(); URI testDirUri = new URI( toAbsoluteUri( testDir ) ); assertThat( testDirUri.getScheme() ) .isEqualTo( "file" ); assertThat( testDirUri.getRawPath() ) .isEqualTo( testDir.toUri().getRawPath() ); }
static String toAbsoluteUri( @Nonnull Path absolutePath ) { return absolutePath.toUri() .toASCIIString(); }
JarManifestForkConfiguration extends AbstractClasspathForkConfiguration { static String toAbsoluteUri( @Nonnull Path absolutePath ) { return absolutePath.toUri() .toASCIIString(); } }
JarManifestForkConfiguration extends AbstractClasspathForkConfiguration { static String toAbsoluteUri( @Nonnull Path absolutePath ) { return absolutePath.toUri() .toASCIIString(); } @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 toAbsoluteUri( @Nonnull Path absolutePath ) { return absolutePath.toUri() .toASCIIString(); } @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 toAbsoluteUri( @Nonnull Path absolutePath ) { return absolutePath.toUri() .toASCIIString(); } @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 );   }