Package de.saumya.mojo.jruby
Class CompileMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.saumya.mojo.jruby.AbstractJRubyMojo
de.saumya.mojo.jruby.CompileMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="compile",
defaultPhase=COMPILE,
requiresDependencyResolution=COMPILE,
requiresProject=true)
public class CompileMojo
extends AbstractJRubyMojo
executes the compiles ruby classes to java bytecode (jrubyc).
NOTE: this goal uses only a small subset of the features of jrubyc.
NOTE: this goal uses only a small subset of the features of jrubyc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Filewhere the java files (needs >=jruby-1.5).protected booleanjust generate java classes and add them to the maven source pathprotected booleando not fail the goalprivate booleanverbose jrubyc related output (only with > jruby-1.6.x)protected Filewhere the compiled class files are written unless you choose to generate java classes (needs >=jruby-1.5).protected FileDeprecated.Fields inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
addProjectClasspath, args, classRealm, DEFAULT_JRUBY_VERSION, eclipseRefresh, eclipseWatches, env, factory, JRUBY_COMPLETE, JRUBY_CORE, JRUBY_STDLIB, jrubyFork, jrubyJvmArgs, jrubySwitches, jrubyVerbose, libDirectory, localRepository, logger, project, repositorySystem, rubySourceDirectoryFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
execute, getDefaultJRubyVersion, getJrubyVersion, getProjectClasspath, launchDirectory, newScriptFactory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, resolveJRubyStdlibArtifactMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
rubyDirectory
Deprecated.directory where to find the ruby files -
outputDirectory
@Parameter(property="project.build.outputDirectory", defaultValue="${project.build.outputDirectory}") protected File outputDirectorywhere the compiled class files are written unless you choose to generate java classes (needs >=jruby-1.5). default is the same as for java classes. -
ignoreFailures
@Parameter(property="jrubyc.ignoreFailure", defaultValue="false") protected boolean ignoreFailuresdo not fail the goal -
generateJava
@Parameter(property="jrubyc.generateJava", defaultValue="false") protected boolean generateJavajust generate java classes and add them to the maven source path -
generatedJavaDirectory
@Parameter(defaultValue="${basedir}/target/jrubyc-generated-sources") protected File generatedJavaDirectorywhere the java files (needs >=jruby-1.5). -
jrubycVerbose
@Parameter(property="jrubyc.verbose", defaultValue="false") private boolean jrubycVerboseverbose jrubyc related output (only with > jruby-1.6.x)
-
-
Constructor Details
-
CompileMojo
public CompileMojo()
-
-
Method Details
-
executeJRuby
public void executeJRuby() throws org.apache.maven.plugin.MojoExecutionException, IOException, ScriptException- Specified by:
executeJRubyin classAbstractJRubyMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionIOExceptionScriptException
-
fixPathSeparator
-