Hi
On Sat, 29 Dec 2001 21:37, Jim Clayson wrote:
> My hierarchy is as follows:
> (link to /usr/local/dev in home dir)
>
> ~/dev/examples/org/jboss/docs/cmp/cd/bean/*.java
> ~/dev/examples/org/jboss/docs/cmp/cd/interfaces/*.java
> ~/dev/test/servlets/src/classes/TestServlet.java
> ~/dev/test/servlets/src/classes/EJBClientServlet.java (This one
> contains the ejb import stmts)
>
> My ant's compile target looks like this:
>
> <target name="compile" depends="prepare">
> <javac srcdir="${src.home}"
> destdir="/tmp/unwrap/boo"
> classpath="${classpath}"
> debug="on">
>
> </javac>
> </target>
The key idea is that each <javac/> task is rooted in a particular directory
(${src.home} in your case) and the includes will then act on this base
directory. So you can not include files outside this directory. The solution
is to add another root and add in the includes via something like
<javac srcdir="${src.home}"
destdir="/tmp/unwrap/boo"
classpath="${classpath}"
debug="on">
<src path="~/dev/examples">
<include name="org/jboss/docs/cmp/cd/bean/*.java"/>
<include name="org/jboss/docs/cmp/cd/interfaces/*.java"/>
</src>
</javac>
--
Cheers,
Pete
---------------------------------------------------
"If you don't know where you want to go, we'll make
sure you get taken."
Microsoft ad slogan, translated into Japanese.
---------------------------------------------------
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>