Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Ant <iajc/> task and CVS watch/edit

The ajc compiler's -sourceroots option did not prune CVS or
SCCS dirs, 
so <iajc> does the same.  There's a workaround in the
AspectJ
tree (circa January) for bug

  https://bugs.eclipse.org/bugs/show_bug.cgi?id=48650

However, it should work to exclude the files using
filesets.
(Don't specify sourceroots, which takes any source file
and is not under Ant's control.) Enable iajc's verbose 
attribute to list the files being compiled.  As a
degenerate
case, you can use <javac> but specify ajc using the
build.compiler property.

Wes

On Mon, 14 Mar 2005 17:39:36 -0600
 <Bruce.E.Sturgen@xxxxxxxxxxxxxx> wrote:
> I am trying to debug an ant build script issue with the
> <iajc/> task.
> Here is the scenario:
> 
> I have a CVS module that has cvs watch enabled on it, so
> that all files
> are checked out read-only and users are forced to use the
> cvs edit
> command. The cvs edit command puts the original copy
> under the file's
> CVS sub-folder. Along comes <iajc/> and it tries to
> compile both .java
> files (and generates a corresponding error).
> 
> I have tried various and sundry methods of attempting to
> exclude files
> under the CVS sub-tree, but to no avail. It seems that
> the <iajc/> task
> does not leverage traditional filesets like the <javac/>
> task such that
> an exclude="**/CVS/**" attribute (which I am currently
> using with
> <javac/>) would accomplish what I am trying to do.
> 
> Have others experienced this problem, and if so, what was
> the work
> around? Thanks in advance.
> 



Back to the top