This happens in the validate-war target for the j2ee plugin - it's just a
case of referencing it like you do below.

Is there something that doesn't work when u do this?
--
dIon Gillard, Multitask Consulting
Work:      http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers


                                                                                       
                                
                    "James Strachan"                                                   
                                
                    <james_strachan@ya       To:     
<[EMAIL PROTECTED]>                           
                    hoo.co.uk>               cc:                                       
                                
                                             Subject:     Reusing the classpath from 
the dependencies...               
                    05/21/02 11:40 PM                                                  
                                
                    Please respond to                                                  
                                
                    "Turbine Maven                                                     
                                
                    Users List"                                                        
                                
                                                                                       
                                
                                                                                       
                                




I just wondered if anyone had figured out how to do this in Maven yet. I
tend to add a bunch of helper targets in build files to run certain sample
programs or individual test cases. e.g. like this...

<target name="demo.hw" depends="compile.test"  description="Runs the Hello
World demo">
  <java classname="org.apache.commons.jelly.Jelly" fork="yes">
    <classpath refid="test.classpath"/>
    <arg value="src/test/org/apache/commons/jelly/hello_world.jelly"/>
  </java>
</target>

What'd be really cool is if running the maven:compile task we could export
the ${maven.dependency.classpath} so that it can be used by the project
build.xml. I guess we could be constrained here with what Ant can support
and whether it can output <path> variables from an inner Ant build to an
outer one.

James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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






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

Reply via email to