- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for toAbsolutePath (0.12 seconds)
-
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/MavenInvokerTestSupport.java
public abstract class MavenInvokerTestSupport { static { System.setProperty( "library.jline.path", Path.of("target/dependency/org/jline/nativ").toAbsolutePath().toString()); } public static final String POM_STRING = """ <?xml version="1.0" encoding="UTF-8"?>Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Oct 21 12:17:55 GMT 2025 - 6.8K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Mar 19 13:42:58 GMT 2026 - 25.8K bytes - Click Count (0) -
maven-tests/mvnw
public static void main( String[] args ) throws Exception { setDefault( new Downloader() ); java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() ); } } END # For Cygwin/MinGW, switch paths to Windows format before running javac and java verbose " - Compiling Downloader.java ..."
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Sep 25 18:22:49 GMT 2025 - 10.4K bytes - Click Count (0) -
.teamcity/scripts/CheckRemoteProjectRef.java
System.exit(2); } Path propsPath = Paths.get("gradle.properties"); if (!Files.exists(propsPath)) { System.err.println("gradle.properties not found at: " + propsPath.toAbsolutePath()); System.exit(2); } Map<String, String> props = readProperties(propsPath); List<String> missing = new ArrayList<>(); List<String> empty = new ArrayList<>();
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Jan 20 03:53:25 GMT 2026 - 3.4K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/toolchain/java/JavaToolchainImpl.java
} @Override public String findTool(String toolName) { Path toRet = findTool(toolName, Paths.get(getJavaHome()).normalize()); if (toRet != null) { return toRet.toAbsolutePath().toString(); } return null; } private static Path findTool(String toolName, Path installDir) { Path bin = installDir.resolve("bin"); // NOI18NCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 2.6K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java
jtc.setJavaHome(Paths.get(javahome.getValue()).normalize().toString()); } else { throw new MisconfiguredToolchainException( "Non-existing JDK home configuration at " + normal.toAbsolutePath()); } return jtc; } @Override public ToolchainPrivate createDefaultToolchain() { // not sure it's necessary to provide a default toolchain here.
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 4.1K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformer.java
Model model = builder.build(session, project, src); write(model, tgt); } private void deferDeleteFile(Path generatedFile) { toDelete.add(generatedFile.toAbsolutePath()); } @PreDestroy private void doDeleteFiles() { for (Path file : toDelete) { try { Files.delete(file); } catch (IOException e) {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Mar 04 19:49:40 GMT 2026 - 8.9K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CliUtils.java
str = str.substring(1, length - 1); } return str; } @Nonnull public static Path getCanonicalPath(Path path) { requireNonNull(path, "path"); return path.toAbsolutePath().normalize(); } @Nonnull public static Map<String, String> toMap(Properties properties) { requireNonNull(properties, "properties"); HashMap<String, String> map = new HashMap<>();
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Oct 13 18:30:29 GMT 2025 - 5K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
assertArgumentNotNull("pathToCheck", pathToCheck); assertArgumentNotNull("baseDirectory", baseDirectory); final Path normalizedPath = pathToCheck.toAbsolutePath().normalize(); final Path normalizedBase = baseDirectory.toAbsolutePath().normalize(); return normalizedPath.startsWith(normalizedBase); } /** * Validates that a given file is safe and does not attempt path traversal attacks.
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Feb 12 12:10:45 GMT 2026 - 13.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
} } public void testCreateParentDirectories_relativePath() throws IOException { Path path = FS.getPath("nonexistent.file"); assertThat(path.getParent()).isNull(); assertThat(path.toAbsolutePath().getParent()).isNotNull(); MoreFiles.createParentDirectories(path); // test that there's no exception } public void testCreateParentDirectories_noParentsNeeded() throws IOException {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 27.5K bytes - Click Count (0)