Re: problem with jtags

Søren Lund <[email protected]> Fri, 25 May 2007 11:12:11 +0000 (UTC)
Newsgroups gmane.emacs.jdee
Message-ID <[email protected]>
Paul Kinnucan <Paul.Kinnucan <at> mathworks.com> writes:

> exceed the default value (I don't remember what it is). Try setting the
> ARG_MAX variable to a value larger than the default. Google xargs for
> more info.

... or add an --max-chars=16384 option to xargs in the jtags script.

Also, the script does not exclude .svn directories from the search.

I'm using this modified find in my jtags script to solve both issues:

find $java_dir \( -name RCS -prune \) -o \( -name CVS -prune \) \
-o \( -name .svn -prune \) -o \( -name '*.java' -print \) \
| xargs  --max-chars=16384 \
"${etags_dir}etags"  -l none -a -o ${java_dir}/TAGS  \
"--regex=$class1" "--regex=$class2"  "--regex=$constructor"  \
"--regex=$method1" "--regex=$method2" \
"--regex=$var1" "--regex=$var2"


- Søren