jvanzyl 2002/07/09 15:49:24
Modified: src/bin driver.jelly
Added: src/bin driver.properties
Log:
o The driver.jelly now has a corresponding driver.properties.
Revision Changes Path
1.8 +34 -8 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.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- driver.jelly 6 Jul 2002 02:02:36 -0000 1.7
+++ driver.jelly 9 Jul 2002 22:49:23 -0000 1.8
@@ -1,11 +1,37 @@
-
-<project>
-
- <!--
-
- Nothing here, but a hook to place things.
-
- -->
+<project
+ xmlns:j="jelly:core"
+ xmlns:define="jelly:define"
+ xmlns:m="maven">
+
+ <!-- ================================================================== -->
+ <!-- U S E R N A M E C H E C K -->
+ <!-- ================================================================== -->
+ <!-- For several goals we need to make sure that Maven can grab -->
+ <!-- hold of a valid username. For deployment goals in particular -->
+ <!-- where Maven needs to upload an artifact to a server. -->
+ <!-- ================================================================== -->
+
+ <define:taglib uri="maven">
+ <define:tag 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>
+ </define:tag>
+ </define:taglib>
</project>
1.1 jakarta-turbine-maven/src/bin/driver.properties
Index: driver.properties
===================================================================
# -------------------------------------------------------------------
# D R I V E R P R O P E R T I E S
# -------------------------------------------------------------------
maven.username=USERNAME_NOT_SET
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>