maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: maven-components/maven-core-it-verifier/src/main/java/org/apache/maven/it Verifier.java
Date Wed, 15 Dec 2004 11:26:56 GMT
brett       2004/12/15 03:26:56

  Modified:    maven-core-it-verifier/src/main/java/org/apache/maven/it
                        Verifier.java
  Log:
  remove crimson dependency
  
  Revision  Changes    Path
  1.19      +7 -3      maven-components/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java
  
  Index: Verifier.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- Verifier.java	6 Dec 2004 10:47:39 -0000	1.18
  +++ Verifier.java	15 Dec 2004 11:26:56 -0000	1.19
  @@ -5,6 +5,8 @@
   import org.apache.maven.it.cli.CommandLineUtils;
   import org.apache.maven.it.cli.StreamConsumer;
   import org.w3c.dom.Document;
  +import org.w3c.dom.Element;
  +import org.w3c.dom.Node;
   
   import javax.xml.parsers.DocumentBuilder;
   import javax.xml.parsers.DocumentBuilderFactory;
  @@ -216,8 +218,10 @@
                   File pom = new File( System.getProperty( "user.home" ), ".m2/override.xml"
);
   
                   Document dom = builder.parse( pom );
  -    
  -                repo = XPathAPI.selectSingleNode( dom, "/project/local/repository/text()"
).getNodeValue();
  +                Element e = dom.getDocumentElement();
  +                e = (Element) e.getElementsByTagName( "local" ).item( 0 );
  +                Node n = (Element) e.getElementsByTagName( "repository" ).item( 0 );
  +                repo = n.getFirstChild().getNodeValue();
               }
               catch ( Exception e )
               {
  
  
  

Mime
View raw message