jvanzyl     2002/07/09 16:05:53

  Modified:    src/bin  driver.jelly
  Log:
  o Trying to use a <goal> instead of tag.
  
  Revision  Changes    Path
  1.9       +23 -0     jakarta-turbine-maven/src/bin/driver.jelly
  
  Index: driver.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/bin/driver.jelly,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- driver.jelly      9 Jul 2002 22:49:23 -0000       1.8
  +++ driver.jelly      9 Jul 2002 23:05:53 -0000       1.9
  @@ -11,6 +11,28 @@
     <!-- where Maven needs to upload an artifact to a server.               -->
     <!-- ================================================================== -->
       
  +  <goal name="user-check">
  +      
  +    <echo>${maven.username}</echo>
  +    <j:set var="tmp" value="${maven.username}"/>
  +        
  +    <j:if test="${tmp.equals('USERNAME_NOT_SET')}">
  +      <fail message="">
  ++------------------------------------------------------------------
  +| ERROR!
  +|
  +| You must specify a maven username in order to deploy the site!
  +| You can either set this property in your ~/build.properties
  +| or specify one on the command line:
  +|
  +| maven -Dmaven.username=${user.name} [goal]
  ++------------------------------------------------------------------
  +      </fail>
  +    </j:if>
  +    
  +  </goal>
  +
  +
     <define:taglib uri="maven">
       <define:tag name="user-check">
         
  @@ -32,6 +54,7 @@
         </j:if>
       </define:tag>
     </define:taglib>
  +
   
   </project>
   
  
  
  

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

Reply via email to