[jboss-cvs] JBossAS SVN: r68451 - in projects/aop/trunk: build and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Dec 20 07:42:49 EST 2007


Author: flavia.rainone at jboss.com
Date: 2007-12-20 07:42:49 -0500 (Thu, 20 Dec 2007)
New Revision: 68451

Modified:
   projects/aop/trunk/aop/build.sh
   projects/aop/trunk/build/build.sh
Log:
Updating scripts for working on directories with the character ' ' in their names.

Modified: projects/aop/trunk/aop/build.sh
===================================================================
--- projects/aop/trunk/aop/build.sh	2007-12-20 10:18:47 UTC (rev 68450)
+++ projects/aop/trunk/aop/build.sh	2007-12-20 12:42:49 UTC (rev 68451)
@@ -126,7 +126,7 @@
 	done
 
 	# make sure we get back
-	cd $_cwd
+	cd "$_cwd"
 
 	if [ "$cwd" != "$ROOT" ]; then
 	    found="true"
@@ -159,9 +159,9 @@
 
     # execute in debug mode, or simply execute
     if [ "x$ANT_DEBUG" != "x" ]; then
-       /bin/sh -x $ANT $ANT_OPTIONS "$@"
+       /bin/sh -x "$ANT" $ANT_OPTIONS "$@"
     else
-       exec $ANT $ANT_OPTIONS "$@"
+       exec "$ANT" $ANT_OPTIONS "$@"
     fi
 }
 

Modified: projects/aop/trunk/build/build.sh
===================================================================
--- projects/aop/trunk/build/build.sh	2007-12-20 10:18:47 UTC (rev 68450)
+++ projects/aop/trunk/build/build.sh	2007-12-20 12:42:49 UTC (rev 68451)
@@ -126,7 +126,7 @@
 	done
 
 	# make sure we get back
-	cd $_cwd
+	cd "$_cwd"
 
 	if [ "$cwd" != "$ROOT" ]; then
 	    found="true"
@@ -152,16 +152,16 @@
 
     # change to the directory where the script lives so users are not forced
     # to be in the same directory as build.xml
-    cd $DIRNAME
+    cd "$DIRNAME"
 
     # export some stuff for ant
     export ANT ANT_HOME ANT_OPTS
 
     # execute in debug mode, or simply execute
     if [ "x$ANT_DEBUG" != "x" ]; then
-	/bin/sh -x $ANT $ANT_OPTIONS "$@"
+	/bin/sh -x "$ANT" $ANT_OPTIONS "$@"
     else
-	exec $ANT $ANT_OPTIONS "$@"
+	exec "$ANT" $ANT_OPTIONS "$@"
     fi
 }
 




More information about the jboss-cvs-commits mailing list