ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <ddevie...@gmail.com>
Subject Re: cannot mkdir in a target
Date Wed, 07 Nov 2007 23:15:26 GMT
On 11/7/07, fabien_pichard <fabien_pichard@hotmail.com> wrote:
> <project description="test build">
>  <target name="foo">
>     <mkdir dir="foo1"/>
>  </target>
> </project>
>
> If I do this
> <project description="test build">
>     <mkdir dir="foo1"/>
> </project>
>
> it works, no problem...
> I have checked misc FAQ, this site and other and I wondering what I am doing
> wrong.

Well, how do you call Ant on the command line?

All tasks not in a target are always executed, but the ones in targets
are executed only if their target is executed, and since you didn't
specify the project's default target, if you don't explicitly specify
the target name "foo" as argument to the build, it will not be
executed by default.

Just running "ant foo" should fix your problem. I don't see how else
this build could not work ;-) --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message