- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for getAbsoluteFile (0.2 sec)
-
compat/maven-compat/src/test/java/org/apache/maven/project/path/DefaultPathTranslatorTest.java
String aligned = new DefaultPathTranslator().alignToBaseDirectory("${basedir}", basedir); assertEquals(basedir.getAbsolutePath(), aligned); } @Test void testAlignToBasedirWhereBasedirExpressionIsTheValuePrefix() { File basedir = new File(System.getProperty("java.io.tmpdir"), "test").getAbsoluteFile();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/net/URLUtilTest.java
*/ public void testToFile() throws Exception { final File file = new File("Program Files/hoge.txt"); final URL url = file.toURI().toURL(); assertEquals(file.getAbsoluteFile(), URLUtil.toFile(url)); assertEquals(file.getAbsoluteFile(), URLUtil.toFile(new URL("file:Program%20Files/hoge.txt"))); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.9K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java
@Inject private PlexusContainer container; protected List<ArtifactRepository> getRemoteRepositories() throws Exception { File repoDir = new File(getBasedir(), "src/test/remote-repo").getAbsoluteFile(); RepositoryPolicy policy = new RepositoryPolicy(); policy.setEnabled(true); policy.setChecksumPolicy("ignore"); policy.setUpdatePolicy("always");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8.8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.1K bytes - Viewed (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/event/ExecutionEventLoggerTest.java
executionEventLogger = new ExecutionEventLogger(messageBuilderFactory, logger); } @Test void testProjectStarted() { // prepare File basedir = new File("").getAbsoluteFile(); ExecutionEvent event = mock(ExecutionEvent.class); MavenProject project = mock(MavenProject.class); when(project.getGroupId()).thenReturn("org.apache.maven");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 12.2K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/ResolveFile.java
return null; } else if (file.isAbsolute()) { return file; } else if (file.getPath().startsWith(File.separator)) { // drive-relative Windows path return file.getAbsoluteFile(); } else { return Paths.get(baseDirectory, file.getPath()).normalize().toFile(); } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.4K bytes - Viewed (0) -
compat/maven-settings-builder/src/test/java/org/apache/maven/settings/building/DefaultSettingsBuilderFactoryTest.java
/** */ class DefaultSettingsBuilderFactoryTest { private File getSettings(String name) { return new File("src/test/resources/settings/factory/" + name + ".xml").getAbsoluteFile(); } @Test void testCompleteWiring() throws Exception { SettingsBuilder builder = new DefaultSettingsBuilderFactory().newInstance(); assertNotNull(builder);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.7K bytes - Viewed (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/FileSourceTest.java
} @Test void testGetFile() { File txtFile = new File("target/test-classes/source.txt"); FileSource source = new FileSource(txtFile); assertEquals(txtFile.getAbsoluteFile(), source.getFile()); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.2K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/ComplexActivationTest.java
import static org.junit.jupiter.api.Assertions.assertNull; /** */ class ComplexActivationTest { private File getPom(String name) { return new File("src/test/resources/poms/factory/" + name + ".xml").getAbsoluteFile(); } @Test void testAndConditionInActivation() throws Exception { Properties sysProperties = new Properties(); sysProperties.setProperty("myproperty", "test");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.1K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java
} if (request.getLocalRepositoryPath() == null) { request.setLocalRepositoryPath(new File(request.getLocalRepository().getBasedir()).getAbsoluteFile()); } } // ------------------------------------------------------------------------ // Artifact Transfer Mechanism
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8.4K bytes - Viewed (0)