Issue-134: make sure the {build.dir} directory actually exist (it normally gets created by the invoking ./gridworks shell file, but only when calling a build, not a dist, so act more defensively here)

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1275 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Stefano Mazzocchi 2010-09-19 17:08:39 +00:00
parent 0a0add9e8e
commit 06e83a66ff

View File

@ -187,11 +187,15 @@
<!-- ================================================================== --> <!-- ================================================================== -->
<target name="jar_server" depends="build_server"> <target name="prepare_jar">
<mkdir dir="${build.dir}"/>
</target>
<target name="jar_server" depends="prepare_jar, build_server">
<jar destfile="${build.dir}/${fullname}-server.jar" basedir="${server.classes.dir}"/> <jar destfile="${build.dir}/${fullname}-server.jar" basedir="${server.classes.dir}"/>
</target> </target>
<target name="jar_webapp" depends="build_webapp"> <target name="jar_webapp" depends="prepare_jar, build_webapp">
<jar destfile="${build.dir}/${fullname}.jar" basedir="${webapp.classes.dir}"/> <jar destfile="${build.dir}/${fullname}.jar" basedir="${webapp.classes.dir}"/>
</target> </target>