hudson.plugins.caroline
Class InVMAnt

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by hudson.tasks.Ant
              extended by hudson.plugins.caroline.InVMAnt
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep

public class InVMAnt
extends hudson.tasks.Ant

In Caroline grid, we can't fork new processes. So run Ant in the same JVM.

Obviously eventually we have to do something about this "no fork" limitation, but we need some builder to get something going, and Ant was the easiest to run in the same JVM.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class InVMAnt.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.tasks.Ant
hudson.tasks.Ant.AntInstallation, hudson.tasks.Ant.AntInstaller
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
InVMAnt(java.lang.String targets, java.lang.String antName, java.lang.String antOpts, java.lang.String buildFile, java.lang.String properties)
           
 
Method Summary
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
Methods inherited from class hudson.tasks.Ant
getAnt, getAntOpts, getBuildFile, getDescriptor, getProperties, getTargets
 
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, prebuild
 

Constructor Detail

InVMAnt

@DataBoundConstructor
public InVMAnt(java.lang.String targets,
                                    java.lang.String antName,
                                    java.lang.String antOpts,
                                    java.lang.String buildFile,
                                    java.lang.String properties)
Method Detail

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws java.lang.InterruptedException,
                       java.io.IOException
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.Ant
Throws:
java.lang.InterruptedException
java.io.IOException


Copyright © 2011. All Rights Reserved.