org.eclipse.xtext.builder.debug.IBuildLogger Java Examples
The following examples show how to use
org.eclipse.xtext.builder.debug.IBuildLogger.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DoUpdateImplementation.java From n4js with Eclipse Public License 1.0 | 6 votes |
public DoUpdateImplementation(N4ClusteringBuilderState state, BuildData buildData, ResourceDescriptionsData newData, IProgressMonitor monitor, IBuildLogger buildLogger, IResourceLoader crossLinkingResourceLoader, IResourceClusteringPolicy clusteringPolicy) { this.clusteringPolicy = clusteringPolicy; this.crossLinkingResourceLoader = crossLinkingResourceLoader; this.buildLogger = buildLogger; this.state = state; this.buildData = buildData; this.newData = newData; this.progress = SubMonitor.convert(monitor); this.cancelMonitor = new MonitorBasedCancelIndicator(progress); this.toBeDeleted = buildData.getAndRemoveToBeDeleted(); this.resourceSet = buildData.getResourceSet(); this.newState = new CurrentDescriptions(resourceSet, newData, buildData); this.currentProject = state.getBuiltProject(buildData); this.queue = buildData.getURIQueue(); }
Example #2
Source File: WriteNewResourceDescriptionsImplementation.java From n4js with Eclipse Public License 1.0 | 6 votes |
public WriteNewResourceDescriptionsImplementation(N4ClusteringBuilderState state, BuildData buildData, IResourceDescriptions oldState, CurrentDescriptions newState, IProgressMonitor monitor, IBuildLogger buildLogger, IResourceLoader globalIndexResourceLoader, IResourceClusteringPolicy clusteringPolicy, CompilerPhases compilerPhases) { this.compilerPhases = compilerPhases; this.clusteringPolicy = clusteringPolicy; this.globalIndexResourceLoader = globalIndexResourceLoader; this.state = state; this.buildData = buildData; this.oldState = oldState; this.newState = newState; this.progress = SubMonitor.convert(monitor, buildData.getToBeUpdated().size()); this.buildLogger = buildLogger; this.resourceSet = buildData.getResourceSet(); this.currentProject = state.getBuiltProject(buildData); }
Example #3
Source File: N4JSClusteringBuilderConfiguration.java From n4js with Eclipse Public License 1.0 | 6 votes |
@Override protected void configure() { bind(IResourceClusteringPolicy.class).to(VerboseClusteringPolicy.class); bind(XtextBuilder.class).to(N4JSBuildTypeTrackingBuilder.class); bind(IBuilderState.class).to(N4JSGenerateImmediatelyBuilderState.class).in(Scopes.SINGLETON); bind(IMarkerUpdater.class).to(N4JSMarkerUpdater.class); bind(IStorage2UriMapper.class).to(N4JSStorage2UriMapper.class); bind(PersistedStateProvider.class).to(ContributingResourceDescriptionPersister.class); bind(IBuildLogger.class).annotatedWith(BuilderState.class).to(BuilderStateLogger.class); bind(DirtyStateManager.class).to(PrevStateAwareDirtyStateManager.class); bind(IResourceLoader.class).annotatedWith( Names.named(ClusteringBuilderState.RESOURCELOADER_GLOBAL_INDEX)).toProvider( new BuildScopeAwareParallelLoaderProvider()); bind(BuilderStateDiscarder.class); bind(SharedStateContributionRegistryImpl.class).to(DefaultSharedContributionOverridingRegistry.class); binder().install(new MyReferenceSearchResultContentProviderCustomModule()); }
Example #4
Source File: BuildAffectionTest.java From xtext-xtend with Eclipse Public License 2.0 | 5 votes |
private void assertBuildLogs(final CharSequence expected) { final StringBuilder logs = new StringBuilder(); final IBuildLogger _function = (Object it) -> { String _trim = it.toString().trim(); String _plus = (_trim + "\n"); logs.append(_plus); }; ((XtextBuildConsole.Logger) this.logger).registerDelegate(_function); this.autoBuild(); Assert.assertTrue(logs.toString().trim(), logs.toString().trim().matches(expected.toString().trim())); }