| 
| thread from ant build does not exit [message #468349] | Wed, 05 August 2009 04:17 |  | 
| Eclipse User  |  |  |  |  | Hello there! 
 When have an ant-skript that intermittently lets a java thread alive,
 which is annoying, as the thread holds a file lock on a newly built class
 file. Subsequent  clean builds fail with "could not delete ..." until I
 kill the thread using the debug perspective.
 
 This happens both with script execution in the workspace jvm and an in
 external one.
 
 In bugzilla I have only found bug 43618 regarding child jvms not exiting
 which is resolved.
 
 What the script is doing is:
 
 <target name="enhance" description="Aufruf des openjpa-Enhancers">
 <java classname="org.apache.openjpa.enhance.PCEnhancer">
 <arg line="-directory bin" />
 <classpath>
 <pathelement path="${bin}" />
 <fileset dir="${openjpa}">
 <include name="**/*.jar" />
 </fileset>
 </classpath>
 </java>
 <jar destfile="${bin}/VTMPersistence.jar">
 <fileset dir="${bin}" includes="**/*.class" />
 <fileset dir="${source}" includes="**/*" />
 </jar>
 </target>
 
 environment:
 Eclipse build 20090621-0832
 Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
 
 Should this become a bug report?
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.55006 seconds