java - Ant Freezes with no warning on exception -
i have been experiencing weird problem can't find solution to. when running project through ant , there's uncaught exception, ant freezes absolutely no error. here build file. multi threaded environment, also
<fileset id="masterlibs" dir="${lib.dir}"> <patternset> <include name="*.jar"/> </patternset> </fileset> <target name="clean"> <delete dir="${build.dir}"/> </target> <target name="init"> <mkdir dir="${build.dir}"/> </target> <target name="compile" depends="init"> <javac srcdir="${src.dir}" destdir="${build.dir}"> <classpath> <pathelement location="${build.dir}"/> <fileset refid="masterlibs"/> </classpath> </javac> </target> <target name="run" depends="compile"> <java classname="stockdata.alerthandler" fork="true"> <classpath> <pathelement location="${build.dir}"/> <fileset refid="masterlibs"/> </classpath> <arg line="true"/> <arg line="true"/> <arg line="true"/> <arg line="true"/> <arg line="false"/> <arg line="27_4"/> <arg line="false"/> </java> </target>
ctrl+break show dump of threads , indicate each doing (plus deadlocks). i'm guessing it's spawned alerthandler
process , may easier debug outside ant environment.
if ctrl+break doesn't work (from article)
on unix platforms can send signal program using kill command. quit signal, handled jvm. example, on solaris can use command kill -quit process_id, process_id process number of java program.
Comments
Post a Comment