| Author |
Ant - compile task and source directory setup
|
Bruce Nguyen
Greenhorn
Joined: Apr 28, 2004
Posts: 2
|
|
Hi All, I am creating my project directory structure. So here it is: myproject -src - com - packagename - ClassName.java And here is my build.xml: <project basedir="." default="all" name="myproject"> <target name="init"> <property location="classes" name="classes.dir"/> <property location="src" name="src.dir"/> </target> <target depends="init" name="compile"> <mkdir dir="${classes.dir}"/> <javac debug="true" deprecation="true" destdir="${classes.dir}" srcdir="${src.dir}"> </javac> </target> <target depends="init" name="clean"> <delete dir="${classes.dir}"/> </target> <target depends="init, compile" name="all"/> </project> What happened after I ran the compile task was that Ant created the classes structure as follow: myproject -classes -src - com - packagename - ClassName.class I don't understand why the src directory was created under the classes directory? It would be appreciated if someone could provide me the explanation of the above problem. Thanks, Bruce
|
 |
 |
|
|
subject: Ant - compile task and source directory setup
|
|
|