aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "creating directory" Watch "creating directory" New topic
Author

creating directory

Mailer Daemon
Greenhorn

Joined: Jul 17, 2003
Posts: 1
hi,
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>
<target name="prepare" depends="init">
<mkdir dir="${build}" />
</target>
<target name="about">
<echo message="A trial script" />
<echo message=" " />
</target>
</project>
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
 
 
subject: creating directory