- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for exists (0.15 sec)
-
maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java
public void assertFileExistence(File dir, String filename, boolean shouldExist) { File file = new File(dir, filename); if (shouldExist) { assertTrue(file.exists()); } else { assertFalse(file.exists()); } } public void assertFileContents(File dir, String filename, String contentsTest, String encoding) throws IOException {
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Apr 25 05:46:50 GMT 2024 - 4.7K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/ReactorReader.java
// No project, but most certainly a dependency which has been built previously File packagedArtifactFile = findInProjectLocalRepository(artifact); if (packagedArtifactFile != null && packagedArtifactFile.exists()) { return packagedArtifactFile; } return null; } public List<String> findVersions(Artifact artifact) { List<String> versions = getProjects()
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu May 02 16:33:18 GMT 2024 - 21.3K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java
assertFalse(file.exists(), "Remote artifact " + file + " should not be present."); } protected void assertLocalArtifactNotPresent(Artifact artifact) throws Exception { ArtifactRepository localRepo = localRepository(); String path = localRepo.pathOf(artifact); File file = new File(localRepo.getBasedir(), path);
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Apr 25 05:46:50 GMT 2024 - 13.8K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java
File deployedFile = new File(remoteRepository.getBasedir(), remoteRepository.pathOf(artifact)); assertTrue(deployedFile.exists()); assertEquals("dummy", new String(Files.readAllBytes(deployedFile.toPath()), StandardCharsets.UTF_8).trim()); } finally { sessionScope.exit(); } }
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Apr 25 05:46:50 GMT 2024 - 2.8K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManagerTest.java
assertNull( updateCheckManager.readLastUpdated(touchFile, updateCheckManager.getRepositoryKey(remoteRepository))); assertFalse(updateCheckManager.getTouchfile(a).exists()); } @Test void testMissingArtifact() throws Exception { ArtifactRepository remoteRepository = remoteRepository(); ArtifactRepository localRepository = localRepository();
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Apr 25 05:46:50 GMT 2024 - 8.7K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java
ArtifactRepository repo = createStringRepo(); assertThrows(ResourceDoesNotExistException.class, () -> wagonManager.getArtifact(artifact, repo, null, false)); assertFalse(artifact.getFile().exists()); } @Test void testGetMissingJarForced() throws TransferFailedException, UnsupportedProtocolException, IOException {
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Apr 25 05:46:50 GMT 2024 - 13.4K bytes - Viewed (0) -
maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/TestApiStandalone.java
Map.Entry<Artifact, Path> res = session.resolveArtifact(coord); assertNotNull(res); assertNotNull(res.getValue()); assertTrue(Files.exists(res.getValue())); Node node = session.collectDependencies(session.createDependencyCoordinate(coord)); assertNotNull(node); assertEquals(8, node.getChildren().size()); }
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu May 02 15:10:38 GMT 2024 - 2.5K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java
protected ActivationFile.Builder transformActivationFile_Exists( Supplier<? extends ActivationFile.Builder> creator, ActivationFile.Builder builder, ActivationFile target) { final String path = target.getExists(); final String xformed = transformPath(path, target, "exists");
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Fri May 03 08:48:38 GMT 2024 - 61.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableBiMap.java
throw new InvalidObjectException("Use SerializedForm"); } /** * Not supported. Use {@link #toImmutableBiMap} instead. This method exists only to hide {@link * ImmutableMap#toImmutableMap(Function, Function)} from consumers of {@code ImmutableBiMap}. * * @throws UnsupportedOperationException always
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 22.4K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/upgrades/UpgradedProperties.java
public static final String CURRENT_ACCESSORS_OF_UPGRADED_PROPERTIES = "currentAccessorsOfUpgradedProperties"; public static List<UpgradedProperty> parse(String path) { File file = new File(path); if (!file.exists()) { return Collections.emptyList(); } try { return new Gson().fromJson(new FileReader(file), new TypeToken<List<UpgradedProperty>>() {}.getType());
Java - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Tue Apr 23 08:40:36 GMT 2024 - 6.8K bytes - Viewed (0)