I need to create build file for ant to build my JavaFX project
, I have searched a lot, but nothing helped me. It still show errors and does not compiles. When I try to run jar file - the jar file cannot get deleted.
Here is part of build.xml
which shows error
<target depends="init" name="-do-clean">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
</target>
Here is the error
init:
deps-clean:
Updating property file: D:\javaFx\JavaFXApplication3\build\built-clean.properties
Deleting directory D:\javaFx\JavaFXApplication3\build
D:\javaFx\JavaFXApplication3\nbproject\build-impl.xml:1388: Unable to delete file D:\javaFx\JavaFXApplication3\dist\run1228379781\JavaFXApplication3.jar
BUILD FAILED (total time: 2 seconds)