Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for setAddLocationInformation (0.19 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/io/DefaultModelReader.java

                InputSource source = getSource(options);
                boolean strict = isStrict(options);
                MavenStaxReader mr = new MavenStaxReader();
                mr.setAddLocationInformation(source != null);
                Model model = new Model(mr.read(parser, strict, source != null ? source.toApiSource() : null));
                return model;
            } catch (XMLStreamException e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. compat/maven-model/src/main/java/org/apache/maven/model/io/xpp3/MavenXpp3Reader.java

            delegate =
                    contentTransformer != null ? new MavenStaxReader(contentTransformer::transform) : new MavenStaxReader();
            delegate.setAddLocationInformation(addLocationInformation);
        }
    
        /**
         * Returns the state of the "add default entities" flag.
         *
         * @return boolean
         */
        public boolean getAddDefaultEntities() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. compat/maven-model/src/main/java/org/apache/maven/model/io/xpp3/MavenXpp3Writer.java

        // -----------/
        // - Methods -/
        // -----------/
    
        public MavenXpp3Writer() {
            this(false);
        }
    
        protected MavenXpp3Writer(boolean addLocationInformation) {
            delegate.setAddLocationInformation(addLocationInformation);
        }
    
        /**
         * Method setFileComment.
         *
         * @param fileComment a fileComment object.
         */
        public void setFileComment(String fileComment) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. compat/maven-settings/src/main/java/org/apache/maven/settings/io/xpp3/SettingsXpp3Writer.java

     */
    @Deprecated
    public class SettingsXpp3Writer {
    
        private final SettingsStaxWriter delegate;
    
        public SettingsXpp3Writer() {
            delegate = new SettingsStaxWriter();
            delegate.setAddLocationInformation(false);
        }
        /**
         * Method setFileComment.
         *
         * @param fileComment a fileComment object.
         */
        public void setFileComment(String fileComment) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. compat/maven-model/src/test/java/org/apache/maven/model/v4/Xpp3DomPerfTest.java

            int i = 0;
            for (Path pom : state.poms) {
                try (InputStream is = Files.newInputStream(pom)) {
                    MavenStaxReader reader = new MavenStaxReader();
                    reader.setAddLocationInformation(false);
                    reader.read(is, true, new InputSource("id", pom.toString()));
                    i++;
                } catch (XMLStreamException e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. compat/maven-model/src/test/java/org/apache/maven/model/v4/ModelXmlTest.java

        }
    
        String toXml(Model model) throws IOException, XMLStreamException {
            StringWriter sw = new StringWriter();
            MavenStaxWriter writer = new MavenStaxWriter();
            writer.setAddLocationInformation(false);
            writer.write(sw, model);
            return sw.toString();
        }
    
        Model fromXml(String xml) throws XMLStreamException {
            return new MavenStaxReader().read(new StringReader(xml));
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomArtifactTransformer.java

                writer.setNamespace(String.format(NAMESPACE_FORMAT, version));
                writer.setSchemaLocation(String.format(SCHEMA_LOCATION_FORMAT, version));
                writer.setAddLocationInformation(false);
                writer.write(w, model);
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top