- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for getOutputDirectory (0.12 seconds)
-
api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java
* } * Path outputDir = project.getOutputDirectory(scope()); * return configured.map(outputDir::resolve).orElse(outputDir); * }</pre> * * @param project the project to use for obtaining the output directory * @return the absolute path where files from {@link #directory()} should be copied * * @see #targetPath() * @see Project#getOutputDirectory(ProjectScope) */ @NonnullCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Nov 07 13:11:07 GMT 2025 - 14.2K bytes - Click Count (0) -
compat/maven-model/src/test/java/org/apache/maven/model/ModelTest.java
build.setOutputDirectory("myOutputDirectory"); model.setBuild(build); Build build2 = model.getBuild(); assertNotNull(build2); assertEquals("myOutputDirectory", build2.getOutputDirectory()); model.setBuild(null); assertNull(model.getBuild()); } @Test void testEqualsNullSafe() { assertNotEquals(null, new Model());
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Dec 16 08:09:30 GMT 2025 - 2.4K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/Project.java
* Path mainOutput = project.getOutputDirectory(ProjectScope.MAIN); * // Result: /home/user/myproject/target/classes * * // Get test output directory * Path testOutput = project.getOutputDirectory(ProjectScope.TEST); * // Result: /home/user/myproject/target/test-classes * * // Get build directory * Path buildDir = project.getOutputDirectory(null);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Nov 07 13:11:07 GMT 2025 - 15.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java
} } else { String type = artifact.getProperty("type", ""); File outputDirectory = new File(project.getBuild().getOutputDirectory()); // Check if the project is being built during this session, and if we can expect any output. // There is no need to check if the build has created any outputs, see MNG-2222.Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Dec 15 11:20:38 GMT 2025 - 24.4K bytes - Click Count (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/SourceRootTest.java
when(build.getOutputDirectory()).thenReturn("target/classes"); when(build.getTestOutputDirectory()).thenReturn("target/test-classes"); Project project = mock(Project.class); when(project.getBuild()).thenReturn(build); when(project.getBasedir()).thenReturn(Path.of("myproject")); when(project.getOutputDirectory(any(ProjectScope.class))).thenCallRealMethod();
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sun Oct 26 17:22:14 GMT 2025 - 2.9K bytes - Click Count (0)