Hi James,

You can use Ant to launch another program. Here is a Jelly script sniplet
that we used to launch a JVM (we launched the Axis Admin Tool to merge
wsdds). Maybe that helps you.


<!-- define classpath: -->
<ant:path id="wsdd.merge.classpath">
    <ant:path refid="maven.dependency.classpath"/>

    <!-- add axis to classpath if not already there -->
    <pathelement location="${pom.getDependencyPath('axis:axis')}"/>
    <j:set var="axis-dep-var" 
        value="${pom.getDependencyPath('axis:axis')}"/>
    <j:if test="${context.getVariable('axis-dep-var') == null}">
        <pathelement location="${plugin.getDependencyPath('axis:axis')}"/>
        <echo>Added Axis ${plugin.getDependencyPath('axis:axis')} to
classpath.</echo>
    </j:if>

    <pathelement location="${plugin.getDependencyPath('axis:axis-ant')}"/>
    <pathelement location="${plugin.getDependencyPath('ant:ant')}"/>
    <pathelement
location="${plugin.getDependencyPath('axis:axis-jaxrpc')}"/>
    <pathelement
location="${plugin.getDependencyPath('commons-logging:commons-logging')}"/>
    <pathelement
location="${plugin.getDependencyPath('axis:axis-commons-discovery')}"/>
    <pathelement location="${plugin.getDependencyPath('axis:axis-saaj')}"/>
</ant:path>        


<!-- call Axis Admin tool -->
<ant:apply executable="java"
dir="${maven.build.dir}/${pom.artifactId}/WEB-INF" failonerror="yes"
parallel="true">
    <arg value="org.apache.axis.utils.Admin"/>
    <arg value="server"/>
    <env key="classpath"
value="${context.project.antProject.references.get('wsdd.merge.classpath')}"
/>
    <fileset dir="${maven.jabba.temp.dir}/ws" includes="**/*.wsdd"/>
</ant:apply>


Best regards,
Jörn


> -----Ursprüngliche Nachricht-----
> Von: James A. Hillyerd [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 2. März 2004 03:59
> An: [EMAIL PROTECTED]
> Betreff: Launching BeanShell/Groovy from Maven?
> 
> 
> I'm looking for a way to launch BeanShell (or Groovy, either one will 
> work for me) from Maven.  My goal is to have an interactive scripting 
> shell with a classpath containing all of my project's 
> dependencies, and 
> "target/classes" itself.
> 
> I'm new to Maven, it's not something I can figure out how to 
> do myself. 
> I've searched the web for an example but there was a lot of 
> noise in the 
> results since Groovy uses Maven to build, and Maven 
> supports(?) writing 
> plugins in BeanShell.
> 
> Has anyone done this?  It seems like it would make a really 
> useful maven 
> plugin, since it would let you test ideas without writing 
> experimental 
> classes and launch scripts, etc.
> 
> Thanks!
> 
> -james
> 
> -- 
> James A. Hillyerd <[EMAIL PROTECTED]>
> http://www.activerain.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to