net.sf.mavenjython
Class JythonMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by net.sf.mavenjython.JythonMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class JythonMojo
extends org.apache.maven.plugin.AbstractMojo

Goal which generates jython-standalone into .


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
JythonMojo()
           
 
Method Summary
 void execute()
          Strategy A: include jython in plugin.
 Collection<File> extractJarToDirectory(File jar, File outputDirectory)
           
 void runJythonScriptOnInstall(File outputDirectory, List<String> args)
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JythonMojo

public JythonMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Strategy A: include jython in plugin. Extract on the run. Strategy B: Project also has dependency on jython. We find that jar and extract it and work from there. B has the benefit that we don't have to update this plugin for every version and the user needs the jython dependency anyway to call the Python Console

Throws:
org.apache.maven.plugin.MojoExecutionException

runJythonScriptOnInstall

public void runJythonScriptOnInstall(File outputDirectory,
                                     List<String> args)
                              throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

extractJarToDirectory

public Collection<File> extractJarToDirectory(File jar,
                                              File outputDirectory)
                                       throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2011. All Rights Reserved.