ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harkness, David" <DHarkn...@sonypictures.com>
Subject RE: newbie question re srcdir and destdir (edg)
Date Tue, 05 Aug 2003 20:39:43 GMT
You didn't paste in the directory tree that got created.

> When I execute this script, I get a directory tree created as
>
>
> I would have expected the compiler to create
> 	./WEB-INF/classes/foo/loo/moo/test.class

Otherwise, your <javac> task looks fine.

David Harkness
Sony Pictures Digital Networks
(310) 482-4756

-----Original Message-----
From: Ed Greenberg [mailto:edg@greenberg.org] 
Sent: Tuesday, August 05, 2003 1:36 PM
To: user@ant.apache.org
Subject: newbie question re srcdir and destdir (edg)


I'm trying to understand my first ant scripts.

I have
<project basedir="." default="all" name="myapp">
	...
    <target depends="init" name="compile">
         <javac debug="true" deprecation="true"
destdir="./WEB-INF/classes" 
srcdir="./src"/>
    </target>
	...
</project>

My build.xml sits in the same directory as src/ and WEB-INF/.

I have one source file located in
	./src/foo/loo/moo/test.java
When I execute this script, I get a directory tree created as
	

I would have expected the compiler to create
	./WEB-INF/classes/foo/loo/moo/test.class
given the statement in the ant manual that:

  <javac srcdir="${src}"
         destdir="${build}"
         classpath="xyz.jar"
         debug="on"
  />
compiles all .java files under the ${src} directory,
                         ^^^^^
and stores the .class files in the ${build} directory.

Can somebody tell me what I'm doing wrong?

Thanks,
</edg>




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


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


Mime
View raw message