ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Mapping src to dest files in Javac
Date Wed, 19 Jun 2002 08:28:10 GMT
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

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message