本文整理汇总了Java中org.eclipse.xtext.generator.OutputConfiguration.setCleanUpDerivedResources方法的典型用法代码示例。如果您正苦于以下问题:Java OutputConfiguration.setCleanUpDerivedResources方法的具体用法?Java OutputConfiguration.setCleanUpDerivedResources怎么用?Java OutputConfiguration.setCleanUpDerivedResources使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.xtext.generator.OutputConfiguration
的用法示例。
在下文中一共展示了OutputConfiguration.setCleanUpDerivedResources方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createDescriptor
import org.eclipse.xtext.generator.OutputConfiguration; //导入方法依赖的package包/类
private static CompilerDescriptor createDescriptor() {
final CompilerDescriptor result = new CompilerDescriptor();
result.setIdentifier(COMPILER_ID);
result.setName("N4JS to ECMAScript transpiler");
result.setDescription(
"Transpiles N4JS to ECMAScript, currently ES5 plus some selected ES6 features supported by V8.");
result.setActive(true);
result.setCompiledFileExtension("js");
result.setCompiledFileSourceMapExtension("map");
final OutputConfiguration outCfg = new OutputConfiguration(COMPILER_ID);
outCfg.setDescription("N4JS to ECMAScript transpiler");
outCfg.setOutputDirectory(calculateOutputDirectory("src-gen", COMPILER_ID));
outCfg.setOverrideExistingResources(true);
outCfg.setCreateOutputDirectory(true);
outCfg.setCleanUpDerivedResources(true);
outCfg.setSetDerivedProperty(true);
outCfg.setKeepLocalHistory(true);
outCfg.setCanClearOutputDirectory(true);
result.setOutputConfiguration(outCfg);
return result;
}
示例2: getFileSystemAccess
import org.eclipse.xtext.generator.OutputConfiguration; //导入方法依赖的package包/类
protected IFileSystemAccess2 getFileSystemAccess(final IProject project, final IProgressMonitor monitor) {
EclipseResourceFileSystemAccess2 access = fileSystemAccessProvider.get();
access.setContext(project);
access.setMonitor(monitor);
OutputConfiguration defaultOutput = new OutputConfiguration(IFileSystemAccess.DEFAULT_OUTPUT);
defaultOutput.setDescription("Output Folder");
defaultOutput.setOutputDirectory("./");
defaultOutput.setOverrideExistingResources(true);
defaultOutput.setCreateOutputDirectory(true);
defaultOutput.setCleanUpDerivedResources(false);
defaultOutput.setSetDerivedProperty(false);
defaultOutput.setKeepLocalHistory(false);
HashMap<String, OutputConfiguration> outputConfigurations = new HashMap<String, OutputConfiguration>();
outputConfigurations.put(IFileSystemAccess.DEFAULT_OUTPUT, defaultOutput);
access.setOutputConfigurations(outputConfigurations);
return access;
}
示例3: getFormatterConfig
import org.eclipse.xtext.generator.OutputConfiguration; //导入方法依赖的package包/类
/**
* Creates output configuration for a Formatter.
*
* @return output configuration
*/
private OutputConfiguration getFormatterConfig() {
OutputConfiguration config = new OutputConfiguration(FormatConstants.FORMATTER);
config.setDescription("Output configuration for a formatter");
config.setOverrideExistingResources(false);
config.setCanClearOutputDirectory(false);
config.setCleanUpDerivedResources(false);
config.setOutputDirectory("src");
return config;
}
示例4: getStubConfig
import org.eclipse.xtext.generator.OutputConfiguration; //导入方法依赖的package包/类
/**
* Creates output configuration for generated stubs.
*
* @return output configuration
*/
private OutputConfiguration getStubConfig() {
OutputConfiguration config = new OutputConfiguration(STUB_OUTPUT);
config.setDescription("Output configuration for stubs");
config.setOverrideExistingResources(false);
config.setCanClearOutputDirectory(false);
config.setCleanUpDerivedResources(false);
config.setOutputDirectory("src");
return config;
}
示例5: getServiceRegistryConfig
import org.eclipse.xtext.generator.OutputConfiguration; //导入方法依赖的package包/类
/**
* Gets the service registry output configuration.
*
* @return the service registry configuration
*/
private OutputConfiguration getServiceRegistryConfig() {
OutputConfiguration config = new OutputConfiguration(CheckGeneratorConstants.CHECK_REGISTRY_OUTPUT);
config.setDescription("Output configuration for service registry use");
config.setOutputDirectory("META-INF/services");
config.setOverrideExistingResources(true);
config.setCreateOutputDirectory(true);
config.setCleanUpDerivedResources(false);
config.setSetDerivedProperty(true);
return config;
}
示例6: getOutputConfigurations
import org.eclipse.xtext.generator.OutputConfiguration; //导入方法依赖的package包/类
/**
* @return a set of {@link OutputConfiguration} available for the generator
*/
public Set<OutputConfiguration> getOutputConfigurations() {
OutputConfiguration defaultOutput = new OutputConfiguration(IFileSystemAccess.DEFAULT_OUTPUT);
defaultOutput.setDescription("Output Folder");
defaultOutput.setOutputDirectory("./src-gen");
defaultOutput.setOverrideExistingResources(true);
defaultOutput.setCreateOutputDirectory(true);
defaultOutput.setCleanUpDerivedResources(true);
defaultOutput.setSetDerivedProperty(true);
return newHashSet(defaultOutput);
}
示例7: getOutputConfigurations
import org.eclipse.xtext.generator.OutputConfiguration; //导入方法依赖的package包/类
public Set<OutputConfiguration> getOutputConfigurations() {
OutputConfiguration defaultOutput = new OutputConfiguration(IFileSystemAccess.DEFAULT_OUTPUT);
defaultOutput.setDescription("Output Folder");
defaultOutput.setOutputDirectory("./application-gen");
defaultOutput.setOverrideExistingResources(true);
defaultOutput.setCreateOutputDirectory(true);
defaultOutput.setCleanUpDerivedResources(true);
defaultOutput.setSetDerivedProperty(true);
defaultOutput.setKeepLocalHistory(true);
return newHashSet(defaultOutput);
}