ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@mad.scientist.com>
Subject Re: Using excludesfile in javac?
Date Mon, 11 Sep 2000 01:04:28 GMT
At 11:10  10/9/00 -0700, you wrote:
>As a file relative to the project basedir:

uh - dont you mean task basedir (in this case javacs srcdir)
:P

>  <!-- The index server component jar -->
>  <target name="index-server" depends="racs-jar,racs-startup">
>    <javac destdir="build" classpathref="project.class.path"
>      excludesfile="index-server.excludes"
>    >
>      <include name="com/bear/racs/server/index/*" />
>      <include name="com/bear/racs/server/index/common/*" />
>      <src path="${java_proj}" />
>    </javac>
>  ...
>  </target>
>bash-2.04$ cat index-server.excludes
>com/bear/racs/server/index/tst*.java
>bash-2.04$
>
>I tend to use nested <exclude>...</exclude> tags rather than the excludes
or excludesfile
>attributes though:

same - much easier to maintain

Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*

Mime
View raw message