Hey all,

So I can't see an obvious way to do it in project.xml,
but I can write a preGoal in maven.xml that will allow
the core build to use non-core tags for unit tests. 
E.g. this is what you would need to do if we removed
the "bean" classes from the core:

  <preGoal name="test:compile">
  
    <mkdir dir="target/test-source"/>

    <copy todir="target/test-source">
      <!-- core unit test classes -->
      <fileset dir="src/test"/>
 
      <!-- 
        core unit tests rely on both the bean
        taglib and classes in the bean taglib's
        unit tests
      -->
      <fileset dir="jelly-tags/bean/src/test">
          <exclude name="**/Test*.java"/>
      </fileset>
      <fileset dir="jelly-tags/bean/src/java"/>
    </copy>
    
  </preGoal>

And then, of course, the "unitTestSourceDirectory" in
project.xml becomes "target/test-source".  Works
great, but unfortunately it doesn't allow for
automatic generation of the ant script.  Does anyone
know of a way to create a similar result while
preserving ant script generation?

- Morgan

=====
Morgan Delagrange
http://jakarta.apache.org/taglibs
http://jakarta.apache.org/commons
http://axion.tigris.org
http://jakarta.apache.org/watchdog

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to