- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for getResourceAsStream (0.17 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) -
src/main/java/org/codelibs/fess/suggest/settings/BadWordSettings.java
} final List<String> list = new ArrayList<>(); try (BufferedReader br = new BufferedReader(new InputStreamReader( Thread.currentThread().getContextClassLoader().getResourceAsStream("suggest_settings/default-badwords.txt")))) { String line; while ((line = br.readLine()) != null) { if (line.length() > 0 && !line.startsWith("#")) {
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 4.3K 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) -
src/main/java/org/codelibs/fess/suggest/Suggester.java
final StringBuilder mappingSource = new StringBuilder(); try (BufferedReader br = new BufferedReader(new InputStreamReader( this.getClass().getClassLoader().getResourceAsStream("suggest_indices/suggest/mappings-default.json")))) { String line; while ((line = br.readLine()) != null) { mappingSource.append(line); } }
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 14.6K 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) -
src/main/java/org/codelibs/fess/suggest/settings/AnalyzerSettings.java
final StringBuilder sb = new StringBuilder(); try (BufferedReader br = new BufferedReader(new InputStreamReader(this.getClass().getClassLoader().getResourceAsStream(getSuggestAnalyzerPath())))) { String line; while ((line = br.readLine()) != null) { sb.append(line); } }
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 19.4K 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)