dion        2002/06/10 19:02:13

  Modified:    src/java/org/apache/maven UpdatePomCheck.java
  Log:
  Changed to use new isPomCurrent method on project.
  
  Revision  Changes    Path
  1.7       +2 -11     
jakarta-turbine-maven/src/java/org/apache/maven/UpdatePomCheck.java
  
  Index: UpdatePomCheck.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/UpdatePomCheck.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- UpdatePomCheck.java       3 Jun 2002 03:44:56 -0000       1.6
  +++ UpdatePomCheck.java       11 Jun 2002 02:02:13 -0000      1.7
  @@ -128,16 +128,7 @@
   
           // Check and see if the version of the POM being used matches
           // the version of the POM that this version of Maven expects.
  -        // If the version property is null we know that we are dealing
  -        // with v1 of the POM because the <version> element doesn't
  -        // exist in v1 of the POM.
  -        if (project.getPomVersion() == null)
  -        {
  -            project.setPomVersion("1");
  -        }
  -
  -        if (Integer.parseInt(project.getPomVersion()) !=
  -            MavenConstants.POM_VERSION)
  +        if (!project.isPomCurrent())
           {
               getProject().setProperty("maven.pomUpdateRequired", "true");
               getProject().setProperty("maven.fromVersion", 
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to