--- Diane Holt <[EMAIL PROTECTED]> wrote:
> Well, the built-in solution would be much the same
> approach, but using
> <dirset> and <pathconvert> (you need the <dirset> so
> you have a datatype
> to pass to <pathconvert>):
>
> <dirset id="user.dir" dir="${user.dir}"/>
> <pathconvert property="cur.dir" pathsep=""
> refid="user.dir">
> <map from="${basedir}${file.separator}" to=""/>
> </pathconvert>
> <javac srcdir=... destdir=...
> includes="${cur.dir}/**/*.java"/>
>
> [Note: <dirset is only available as of 1.5]
>
> Diane
>
> =====
> ([EMAIL PROTECTED])
Hi Diane,
we still have the problem of removing the ${basedir}
prefix from the resulting string, e.g. if 'includes'
is
/home/bela/JavaGroups-2.0/src/org/javagroups/util/*.java,
we need to convert it to org/javagroups/util/*.java.
The basic problem is:
- I want to use 1 build.xml file located at the root
of my src directory
- I want to cd to ANY directory below the root and do
an 'ant -find build.xml compile'. This compile should
only compile the files in the current directory (if
needed). An eval of all files (e.g.
includes="**/*.java") would be too costly in a large
project
I guess I'll leave my <trim> task in there for now...
BTW: congrats to the whole team for an excellent job
!!!
Bela Ban
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>