<target name="createwar" depends="init">
<jar jarfile="${root}/myapp.jar" basedir="${root}">
<fileset dir="${root}"/>
</jar>
</target>
<target name="all" depends="init" description="buildeverything">
<echo message="application build"/>
</target>
Hey, you are not calling the createwar target at all !!
Maybe you want to change the "all" target as
<target name="all" depends="createwar" description="buildeverything">
<echo message="application build"/>
</target>