o do the project.xml check after the processing of arguments. user might

just want the version or usage.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162529 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2004-01-03 06:32:24 +00:00
parent 3d4fde1009
commit 505a51e02c
1 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,5 @@
#!/bin/sh
[ -z $MBOOT_HOME ] && echo && echo "You must set MBOOT_HOME to use mboot!" && echo && exit
. ${MBOOT_HOME}/maven.functions
VERSION=1.0
dir="."
@ -43,6 +39,10 @@ while [ $# -gt 0 ]; do
shift
done
[ -z $MBOOT_HOME ] && echo && echo "You must set MBOOT_HOME to use mboot!" && echo && exit
. ${MBOOT_HOME}/maven.functions
[ ! -d $dir ] && echo "Specified directory doesn't exist!" && exit
[ ! -f $dir/project.xml ] && echo "No project.xml in specified directory!" && exit