This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
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
It's not a secret anymore!