- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for getResourceAsStream (0.13 sec)
-
compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/merge/MavenToolchainMergerTest.java
} @Test void testMergeJdk() throws Exception { try (InputStream isDominant = MavenToolchainMergerTest.class.getResourceAsStream("toolchains-jdks.xml"); InputStream isRecessive = MavenToolchainMergerTest.class.getResourceAsStream("toolchains-jdks.xml")) { PersistedToolchains dominant = read(isDominant); PersistedToolchains recessive = read(isRecessive);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/SerializationTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; class SerializationTest { @Test void testModelSerialization() throws Exception { Model model; try (InputStream is = getClass().getResourceAsStream("/xml/pom.xml")) { model = new MavenXpp3Reader().read(is); } // Serialize an inner child here so that the BaseObject.childrenTracking is non null Build build = model.getBuild();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.5K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/v4/MavenModelVersionTest.java
class MavenModelVersionTest { private static Model model; @BeforeAll static void setup() throws Exception { try (InputStream is = MavenModelVersionTest.class.getResourceAsStream("/xml/pom.xml")) { model = new MavenStaxReader().read(is); } } @Test void testV4Model() { assertEquals("4.0.0", new MavenModelVersion().getModelVersion(model)); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.5K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/superpom/DefaultSuperPomProvider.java
return SUPER_MODELS.computeIfAbsent(Objects.requireNonNull(version), v -> { String resource = "/org/apache/maven/model/pom-" + v + ".xml"; InputStream is = getClass().getResourceAsStream(resource); if (is == null) { throw new IllegalStateException("The super POM " + resource + " was not found" + ", please verify the integrity of your Maven installation");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.3K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/MergerTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; class MergerTest { @Test void testMergerPreserveLocations() throws Exception { try (InputStream is = getClass().getResourceAsStream("/poms/factory/complex.xml")) { InputSource inputSource = new InputSource(null, "classpath:/poms/factory/complex.xml"); Model model = new MavenStaxReader().read(is, true, inputSource);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.6K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java
ClassLoader docLoader = initializeDocLoader(); for (String root : EXPRESSION_ROOTS) { try (InputStream docStream = docLoader.getResourceAsStream(EXPRESSION_DOCO_ROOTPATH + root + ".paramdoc.xml")) { if (docStream != null) { Map<String, Expression> doco = parseExpressionDocumentation(docStream);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.2K bytes - Viewed (0) -
compat/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java
* */ class PluginDescriptorBuilderTest { private PluginDescriptor build(String resource) throws IOException, PlexusConfigurationException { try (InputStream is = getClass().getResourceAsStream(resource)) { return new PluginDescriptorBuilder().build(is, null); } } @Test void testBuildReader() throws Exception { PluginDescriptor pd = build("/plugin.xml");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.4K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java
} public static Properties getBuildProperties() { Properties properties = new Properties(); try (InputStream resourceAsStream = MavenCli.class.getResourceAsStream("/org/apache/maven/messages/build.properties")) { if (resourceAsStream != null) { properties.load(resourceAsStream); } } catch (IOException e) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 7.3K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java
private ModelValidator validator; private Model read(String pom) throws Exception { String resource = "/poms/validation/" + pom; try (InputStream is = getClass().getResourceAsStream(resource)) { assertNotNull(is, "missing resource: " + resource); return new Model(new MavenStaxReader().read(is)); } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 32.8K bytes - Viewed (0)