Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating directory

 
Mailer Daemon
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You missed the depends attribute for target 'about'.
<target name="about" depends="prepare">
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic