kaz         02/03/24 09:23:26

  Modified:    src/java/org/apache/maven ProjectProperties.java
  Log:
  Add the value of the project descriptor's <Url> element to the set of
  Ant properties.  I need access to this value when defining the location
  of images in CSS stylesheets.  These stylesheets are copied by Ant (with
  filtering enabled) to include this base url.
  
  This is part of the changes required for the new Scarab look and feel
  that will be checked in as soon as the logos are completed (you can
  preview at http://www.kazmier.com/~kaz/maven)
  
  Revision  Changes    Path
  1.13      +6 -1      
jakarta-turbine-maven/src/java/org/apache/maven/ProjectProperties.java
  
  Index: ProjectProperties.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/ProjectProperties.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ProjectProperties.java    18 Mar 2002 19:10:44 -0000      1.12
  +++ ProjectProperties.java    24 Mar 2002 17:23:26 -0000      1.13
  @@ -80,7 +80,7 @@
    * the project.
    *
    * @author <a href="[EMAIL PROTECTED]">Jason van Zyl</a>
  - * @version $Id: ProjectProperties.java,v 1.12 2002/03/18 19:10:44 jvanzyl Exp $
  + * @version $Id: ProjectProperties.java,v 1.13 2002/03/24 17:23:26 kaz Exp $
    */
   public class ProjectProperties
       extends ProjectExecutor
  @@ -146,6 +146,11 @@
               getProject().setProperty("package", mavenProject.getPackage());
           }
           
  +        if (mavenProject.getUrl() != null)
  +        {
  +            getProject().setProperty("url", mavenProject.getUrl());
  +        }
  +
           if (mavenProject.getSiteAddress() != null)
           {
               getProject().setProperty("siteAddress", mavenProject.getSiteAddress());
  
  
  

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

Reply via email to