Package org.springframework.beans.factory.xml

Examples of org.springframework.beans.factory.xml.DocumentLoader.loadDocument()


    if (!m2Settings.exists())
      return null;

    try {
      DocumentLoader docLoader = new DefaultDocumentLoader();
      Document document = docLoader.loadDocument(new InputSource(m2Settings.getInputStream()), null, null,
        XmlValidationModeDetector.VALIDATION_NONE, false);

      return (DomUtils.getChildElementValueByTagName(document.getDocumentElement(), LOCAL_REPOSITORY_ELEM));
    }
    catch (Exception ex) {
View Full Code Here


   * @return a <tt>pom.xml</tt> <tt>groupId</tt>.
   */
  String getGroupIdFromPom(Resource pomXml) {
    try {
      DocumentLoader docLoader = new DefaultDocumentLoader();
      Document document = docLoader.loadDocument(new InputSource(pomXml.getInputStream()), null, null,
        XmlValidationModeDetector.VALIDATION_NONE, false);

      String groupId = DomUtils.getChildElementValueByTagName(document.getDocumentElement(), GROUP_ID_ELEM);
      // no groupId specified, try the parent definition
      if (groupId == null) {
View Full Code Here

   * @return a <tt>pom.xml</tt> <tt>groupId</tt>.
   */
  String getGroupIdFromPom(Resource pomXml) {
    try {
      DocumentLoader docLoader = new DefaultDocumentLoader();
      Document document = docLoader.loadDocument(new InputSource(pomXml.getInputStream()), null, null,
        XmlValidationModeDetector.VALIDATION_NONE, false);

      String groupId = DomUtils.getChildElementValueByTagName(document.getDocumentElement(), GROUP_ID_ELEM);
      // no groupId specified, try the parent definition
      if (groupId == null) {
View Full Code Here

    if (!m2Settings.exists())
      return null;

    try {
      DocumentLoader docLoader = new DefaultDocumentLoader();
      Document document = docLoader.loadDocument(new InputSource(m2Settings.getInputStream()), null, null,
        XmlValidationModeDetector.VALIDATION_NONE, false);

      return (DomUtils.getChildElementValueByTagName(document.getDocumentElement(), LOCAL_REPOSITORY_ELEM));
    }
    catch (Exception ex) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.