- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 55 for seed (0.13 sec)
-
maven-core/src/test/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeTest.java
MojoExecutionScope scope = new MojoExecutionScope(); scope.enter(); Object o1 = new Object(); scope.seed(Object.class, o1); assertSame(o1, scope.scope(Key.get(Object.class), null).get()); scope.enter(); Object o2 = new Object(); scope.seed(Object.class, o2); assertSame(o2, scope.scope(Key.get(Object.class), null).get()); scope.exit();
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Sat Apr 15 17:24:20 GMT 2023 - 3.6K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java
} stack.removeFirst(); if (stack.isEmpty()) { values.remove(); } } public <T> void seed(Class<T> clazz, Provider<T> value) { getScopeState().seeded.put(Key.get(clazz), value); } public <T> void seed(Class<T> clazz, final T value) { getScopeState().seeded.put(Key.get(clazz), Providers.of(value)); }
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Mon Dec 26 15:12:32 GMT 2022 - 5.2K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScope.java
throw new IllegalStateException(); } values.remove(0); } public <T> void seed(Class<T> clazz, Provider<T> value) { getScopeState().seed(clazz, value); } public <T> void seed(Class<T> clazz, final T value) { seed(clazz, (Provider<T>) () -> value); } public <T> Provider<T> scope(final Key<T> key, final Provider<T> unscoped) {
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Tue Apr 23 12:52:20 GMT 2024 - 6.8K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java
protected String component() { return "deployer"; } @Test void testArtifactInstallation() throws Exception { sessionScope.enter(); try { sessionScope.seed(MavenSession.class, mock(MavenSession.class)); String artifactBasedir = new File(getBasedir(), "src/test/resources/artifact-install").getAbsolutePath();
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-core/src/test/java/org/apache/maven/session/scope/SessionScopeProxyTest.java
assertNotSame(bean.myBean.getClass(), MySessionScopedBean.class); assertThrows(OutOfScopeException.class, () -> bean.myBean.getSession()); sessionScope.enter(); sessionScope.seed(Session.class, this.session); assertNotNull(bean.myBean.getSession()); assertNotNull(bean.myBean.getAnotherBean()); assertSame(bean.myBean.getAnotherBean().getClass(), AnotherBean.class);
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Tue Apr 23 12:52:20 GMT 2024 - 4.2K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/artifact/installer/ArtifactInstallerTest.java
protected String component() { return "installer"; } @Test void testArtifactInstallation() throws Exception { sessionScope.enter(); try { sessionScope.seed(MavenSession.class, mock(MavenSession.class)); String artifactBasedir = new File(getBasedir(), "src/test/resources/artifact-install").getAbsolutePath();
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Apr 25 05:46:50 GMT 2024 - 2.1K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/lifecycle/MavenExecutionPlan.java
import org.apache.maven.plugin.descriptor.MojoDescriptor; // TODO lifecycles being executed // TODO what runs in each phase // TODO plugins that need downloading // TODO project dependencies that need downloading // TODO unfortunately the plugins need to be downloaded in order to get the plugin.xml file. need to externalize this // from the plugin archive. // TODO this will be the class that people get in IDEs to modify /**
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Wed Jan 10 12:55:54 GMT 2024 - 6.2K bytes - Viewed (0) -
maven-compat/src/main/java/org/apache/maven/project/MavenProjectBuilder.java
throws ProjectBuildingException; // TODO this is only to provide a project for plugins that don't need a project to execute but need some // of the values from a MavenProject. Ideally this should be something internal and nothing outside Maven // would ever need this so it should not be exposed in a public API
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Mon Dec 26 15:12:32 GMT 2022 - 3.4K bytes - Viewed (0) -
maven-compat/src/test/projects/project-dependencies-resolver/it0063/jdk/jre/placeholder.txt
need it so that empty directory does not get deleted...
Plain Text - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Jun 15 14:24:56 GMT 2023 - 53 bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java
* phase they want to execute and we can easily determine what lifecycle we need to run. * * @return A map of lifecycles, indexed on id */ public Map<String, Lifecycle> getPhaseToLifecycleMap() { // If people are going to make their own lifecycles then we need to tell people how to namespace them correctly // so that they don't interfere with internally defined lifecycles.
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 6K bytes - Viewed (0)