File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes creating directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "creating directory" Watch "creating directory" New topic

creating directory

Mailer Daemon

Joined: Jul 17, 2003
Posts: 1
I'm new to using ant.
I'm trying this code
<project name="trial" default="about" basedir=".">
<target name="init">
<property name="build" value="build" />
<target name="prepare" depends="init">
<mkdir dir="${build}" />
<target name="about">
<echo message="A trial script" />
<echo message=" " />
But this is not working, how can i create directory for destination of compiled files?
Wot is wrong in this code?
Tony Yan
Ranch Hand

Joined: Apr 10, 2002
Posts: 170
You missed the depends attribute for target 'about'.
<target name="about" depends="prepare">

Tony Yan<br /> <br />IBM Certified Developer XML and Related Technology<br />Sun Certified Web Component Developer For J2EE Platform<br />Sun Certified Programmer For Java 2 Platform
I agree. Here's the link:
subject: creating directory