I upgraded from Emacs version 20.6 to 21.2 (on Windows 2000), and the problem went away. Not sure if it was due to the upgrade, or something else that happened as a side-effect of the upgrade. Anyway, thanks again for your help, Jack.
--- Jack Donohue <[EMAIL PROTECTED]> wrote: > Hi Sharath. > > I just tried your build.xml, and autocompletion > displayed all of the > targets. I have the same jde version, and my regex > is the same as yours, so > I don't think that is where the problem is. > > Just a theory, but I wonder if it is the character > set encoding of your xml > file? Maybe try saving your build.xml as raw text. > > Another theory: Is the jde reading the build.xml > file you think it is? ... > i.e., Is there another build.xml file in the same > directory structure which > only has those two targets? > > Sorry I don't have a better answer for you. > > Jack. > > > -----Original Message----- > From: sharath reddy [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 30, 2002 11:09 AM > To: [EMAIL PROTECTED] > Subject: auto completion of ant targets not working > correctly? > > > Hi, > > I set the option jde-ant-read-target. However, when > I > am prompted for a target, auto completion only > reveals > two targets: 'clean' and 'unzip'. The rest of the > targets in my build.xml are not accepted. > > The regular expression used to locate targets is the > default that came with JDEE: > > <\s-*target\s-[^...]*?name\s-*=\s-*"\s-*\([^"]+\) > > I am not that comfortable with emacs regex syntax. > Is > there anyway I can change this regular expression to > locate the rest of my targets? > > My configuration is: > jde-2.2.9beta9.1 > semantic-1.4beta13.tar.gz > elib-1.0.tar.gz > eieio-0.17beta3.tar.gz > > A copy of my build.xml follows. Thanks for your help > ! > > <?xml version="1.0" ?> > <project name="XXXXXX" default="compile" > basedir="d:/YYYY"> > <property name="subCompName" value="XYZ"/> > <property name="buildRoot" > value="${basedir}/sem/src/${subCompName}/"/> > <property name="src" value="${buildRoot}"/> > <property name="classes" > value="${buildRoot}/classes"/> > <property name="jars" > value="${basedir}/sem/src/${subCompName}/jars"/> > <property name="toplib" > value="${basedir}/build/external/lib"/> > <property name="jrelib" > value="d:/jdk1.3/jre/lib"/> > <property name="jarFile" > value="${toplib}/${subCompName}.jar"/> > > <path id="buildlibs"> > <fileset dir="${jrelib}"> > <include name="rt.jar"/> > </fileset> > <fileset dir="${toplib}"> > <include name="*.jar"/> > <include name="*.zip"/> > <exclude name="abcde.jar"/> > </fileset> > </path> > > <target name="init"> > <tstamp/> > <mkdir dir="${classes}"/> > <mkdir dir="${jars}"/> > </target> > > <target name="unzip"> > <unzip > src="${src}/xxx/yyyyyyyy/zzz/ttt/abc.zip" > dest="${src}/xxx/yyyyyyyy/zzz/ttt"/> > </target> > > <target name="build" depends="jar"> > </target> > > <target name="jar" depends="compile"> > <jar jarfile="${jarFile}" > basedir="${classes}"/> > <copy file="${jarFile}" > todir="${jars}"/> > </target> > > <target name="compile" depends="init"> > <delete file="${jarFile}"/> > <javac srcdir="${src}" > destdir="${classes}" > deprecation="on" > debug="on" > verbose="on" > failonerror="true"> > <classpath refid="buildlibs"/> > </javac> > </target> > > <target name="clean"> > <delete dir="${classes}"/> > <delete dir="${jars}"/> > <delete file="${jarFile}"/> > </target> > > </project> > > > > > > > > > > > ===== > Sharath Reddy > Home : 512 401 2979 > Cell : 512 689 4360 > > __________________________________________________ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com ===== Sharath Reddy Home : 512 401 2979 Cell : 512 689 4360 __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com