#!/bin/sh DELIVERABLE=$1 while [ "$DELIVERABLE" == "" ] do read -p "请输入要build的deliverable名称(exit回车退出):" DELIVERABLE done if [ "$DELIVERABLE" != "exit" ]; then shellpath=`dirname $0` cd $shellpath/$DELIVERABLE mvn eclipse:clean mvn -npu eclipse:eclipse -Dwtpversion=1.0 -DdownloadSources=true else echo "exit" fi exit 0