You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Randy Xu <r...@post.harvard.edu> on 2005/01/06 03:34:46 UTC

Goal to compile only certain classes

Short of circumventing or overwriting java:compile, is there a way to 
compile only certain classes in a project?  I'd like the default 
behavior to be compile everything in /src/java but I want to define a 
target to compile everything except one directory.  I know how to 
addPath but is there any way to have a goal that removes a directory or 
a patternset from the build path and then runs java:compile?

-Randy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Goal to compile only certain classes

Posted by dan tran <da...@gmail.com>.
the recommend way of maven thru separation of builds (concern) is to  create
another probject which share the same src with original one but with filter 

-D


On Wed, 05 Jan 2005 21:34:46 -0500, Randy Xu <r...@post.harvard.edu> wrote:
> Short of circumventing or overwriting java:compile, is there a way to
> compile only certain classes in a project?  I'd like the default
> behavior to be compile everything in /src/java but I want to define a
> target to compile everything except one directory.  I know how to
> addPath but is there any way to have a goal that removes a directory or
> a patternset from the build path and then runs java:compile?
> 
> -Randy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org