ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28101] - bootstrap.sh fails::qsh has limited space when running shell command.
Date Thu, 01 Apr 2004 22:37:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28101>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28101

bootstrap.sh fails::qsh has limited space when running shell command.





------- Additional Comments From gudnabrsam@yahoo.com  2004-04-01 22:37 -------
This looks okay, but if there is a way to detect qsh, I'd rather see something 
like:
<pre>
parallel=true

if some-way-to-determine qsh ; then
  parallel=false
fi

sourcefiles=${TOOLS}/bzip2/*.java \
            ${TOOLS}/tar/*.java ${TOOLS}/zip/*.java \
            ${TOOLS}/ant/util/regexp/RegexpMatcher.java \
            ${TOOLS}/ant/util/regexp/RegexpMatcherFactory.java \
            ${TOOLS}/ant/types/*.java \
            ${TOOLS}/ant/*.java ${TOOLS}/ant/taskdefs/*.java \
            ${TOOLS}/ant/taskdefs/compilers/*.java \
            ${TOOLS}/ant/taskdefs/condition/*.java

if $parallel ; then
  ret=0
  for X in $sourcefiles ; do
    if [ $ret == 0 ] ; then
      "${JAVAC}" $BOOTJAVAC_OPTS -d ${CLASSDIR} $X 
      ret=$?
    fi
  done
else
  "${JAVAC}" $BOOTJAVAC_OPTS -d ${CLASSDIR} $X $sourcefiles
  ret=$?
fi

if [ $ret != 0 ]; then  
  echo ... Failed compiling Ant classes !
  exit $ret
fi
</pre>

-just being nitpicky to avoid multiple invocations of the compiler except when 
necessary.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message