Examples of BuildContext


Examples of org.drools.reteoo.builder.BuildContext

    private BuildContext buildContext;
    private EntryPointNode entryPoint;
   
    protected void setUp() throws Exception {
        this.ruleBase = ( ReteooRuleBase ) RuleBaseFactory.newRuleBase();
        this.buildContext = new BuildContext( ruleBase, ((ReteooRuleBase)ruleBase).getReteooBuilder().getIdGenerator() );
        this.entryPoint = new EntryPointNode( 0,
                                              this.ruleBase.getRete(),
                                              buildContext );
        this.entryPoint.attach();
    }
View Full Code Here

Examples of org.drools.reteoo.builder.BuildContext

                                                                       null );

        RuleBaseConfiguration conf = new RuleBaseConfiguration();
        conf.setSequential( true );
        final ReteooRuleBase ruleBase = (ReteooRuleBase) RuleBaseFactory.newRuleBase( conf );
        buildContext = new BuildContext( ruleBase, ((ReteooRuleBase)ruleBase).getReteooBuilder().getIdGenerator() );
        buildContext.setObjectTypeNodeMemoryEnabled( false );
       
        final ReteooWorkingMemory workingMemory = new ReteooWorkingMemory( 1,
                                                                           ruleBase );
View Full Code Here

Examples of org.eclipse.jdt.core.compiler.BuildContext

    public IStatus runInWorkspace(final IProgressMonitor mon) throws CoreException
    {
      String taskName = "JMockit file analysis";
      int workSize = files.size(), worked = 0;
      mon.beginTask(taskName, workSize);
      BuildContext f = files.poll();

      while( f != null && !mon.isCanceled() )
      {
        IFile file = f.getFile();

        if( file.isAccessible() && !file.isDerived(IResource.CHECK_ANCESTORS) )
        {
          ICompilationUnit cunit = JavaCore.createCompilationUnitFrom(file);
View Full Code Here

Examples of org.eclipse.tycho.p2.tools.BuildContext

    protected File getBuildDirectory() {
        return new File(getProject().getBuild().getDirectory());
    }

    protected BuildContext getBuildContext() {
        return new BuildContext(qualifier, getEnvironmentsForFacade(), getBuildDirectory());
    }
View Full Code Here

Examples of org.hibernate.search.spi.BuildContext

  private HibernateSearchResourceLoader resourceLoader;

  @Before
  public void setUp() {
    SearchConfiguration searchConfiguration = new SearchConfigurationForTest();
    BuildContext buildContext = new BuildContextForTest( searchConfiguration );
    ServiceManager serviceManager = new StandardServiceManager( searchConfiguration, buildContext );
    resourceLoader = new HibernateSearchResourceLoader( serviceManager );
  }
View Full Code Here

Examples of org.jfrog.build.context.BuildContext

        try {
            buildInfoLog = new IvyBuildInfoLog(event.getProject());
            ArtifactoryClientConfiguration clientConf = new ArtifactoryClientConfiguration(buildInfoLog);
            Properties props = getMergedEnvAndSystemProps();
            clientConf.fillFromProperties(props);
            ctx = new BuildContext(clientConf);
            DEPENDENCY_TRIGGER.setIvyBuildContext(ctx);
            PUBLISH_TRIGGER.setIvyBuildContext(ctx);
            buildInfoLog.info("[buildinfo:ant] Artifactory Build Info Listener Initialized");
        } catch (Exception e) {
            RuntimeException re = new RuntimeException(
View Full Code Here

Examples of org.sonatype.plexus.build.incremental.BuildContext

  public Set<IProject> build(int kind, IProgressMonitor monitor) throws Exception {
    // execute mojo
    Set<IProject> result = super.build(kind, monitor);
    if (true) {
      IMaven maven = MavenPlugin.getMaven();
      BuildContext buildContext = getBuildContext();
      IMavenProjectFacade mproj = getMavenProjectFacade();

      IProject proj = mproj.getProject();

      proj.refreshLocal(IResource.DEPTH_INFINITE, monitor);

      for (String dirName : outputDirs) {
        IFile generatedSource = proj.getFile(dirName);
        File generatedSourceFolder = generatedSource.getFullPath().toFile();
        buildContext.refresh(generatedSourceFolder);
        // tell m2e builder to refresh generated files
        File generated = maven.getMojoParameterValue(getSession(), getMojoExecution(), dirName, File.class);
        if (generated != null) {
          buildContext.refresh(generated);
        }
      }
    }
    return result;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.