ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: problem with include
Date Thu, 23 Nov 2000 10:06:23 GMT
Robert Davies <Robert.Davies@astro.cf.ac.uk> wrote:

> I am having a problem with including files with the build. It does
> not include them when compileing. It's probably a silly mistake like
> looking in the wrong path but I can't figure it out.

> The directory I am in is ~/triana/src/triana, the file I want
> to include is ~/triana/toolboxes/Common/Logic/src/UNTIL.java. Thanks
> for any help. The build file is below :

> <javac srcdir="util:gui:toolkit:types:image:audio:ocl"
>        destdir="../../classes" deprecation="on" optimize="on" > 
>   <include name="../../toolboxes/Common/Logic/src/UNTIL.java" />
>   <exclude name="tmp/**" /> 
...
> </javac>

You can't include things that are outside the base directory of a
given task. In your case you need to add something above
~/triana/toolboxes/Common/Logic/src/UNTIL.java to the src attribute
(which one, depends on the package UNTIL.java lives in).

For example

<javac srcdir="util:gui:toolkit:types:image:audio:ocl:../../toolboxes/Common/Logic/src/"
       destdir="../../classes" deprecation="on" optimize="on" > 
  <include name="UNTIL.java" />
  <exclude name="tmp/**" /> 
...
</javac>

Stefan

Mime
View raw message