Ant does this by default.

The only thing you have to do is creating the base directory:
    <mkdir dir="${temp.dir}"/>

Your <javac> task may then look like:
    <javac srcdir="${source.dir}" destdir="${temp.dir}" 
      ... other options ...
    </javac>

Hope that helps,
Robert

> -----Urspr�ngliche Nachricht-----
> Von: Peter Kesch [mailto:[EMAIL PROTECTED]]
> Gesendet am: Donnerstag, 10. J�nner 2002 08:25
> An: [EMAIL PROTECTED]
> Betreff: destination directories
> 
> Is there a way to let ant create the directories which are 
> needed for java classes which are in packages ???
> 
> for example a file class.java is in the package 
> crosswordpuzzle.util. now i want ant to compile the file and 
> create the directories by himself, so i can say 
> dest="${temp.dir}" and the classfile lays in 
> ${temp.dir}/crosswordpuzzle/util/ after compiling.
> 
> Peter
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to