ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: Can't get even the first thing to work
Date Sun, 11 Aug 2002 18:34:11 GMT
--- Carl Dreher <> wrote:
> For example, here is the project directory structure:
> MyProject
>  |--src
>    |--util
>    |--sql
>      <javac srcdir="sql" destdir="${outputDir}">
>        <classpath refid="MyProject.path"/>
>      </javac>
> The error reported is:
> compile:
>     [javac] D:\LSR\src\sql\ package util does not
> exist
>     [javac] import util.*;

> Yet, I can do to the command line and type:
>   c:\MyProject\src> javac sql\
> and it compiles fine.

But that's not the equivalent of you have in your <javac> task -- the
equivalent from the command line would be:

  cd sql

which would result in the same error. 

Change your <javac> task to be:
      <javac srcdir="src" destdir="${outputDir}"
        <classpath refid="MyProject.path"/>

> I read the ANT documentation.  (Awful, really, really awful.)

Well, Ant -is- an open-source project, so any contributions you want to
make to improve on our "awful, really, really awful" documentation, please
feel free.



Do You Yahoo!?
HotJobs - Search Thousands of New Jobs

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message