From 72615f4ecc7f5ecab5653ec207d478183761b34a Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 4 Apr 2011 18:16:38 +0000 Subject: [PATCH] 290741: encoding option on ICompilerConfiguration --- .../src/org/aspectj/ajde/core/ICompilerConfiguration.java | 6 ++++++ .../aspectj/ajde/core/internal/AjdeCoreBuildManager.java | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ajde.core/src/org/aspectj/ajde/core/ICompilerConfiguration.java b/ajde.core/src/org/aspectj/ajde/core/ICompilerConfiguration.java index 8f52f36da..ecc939ad5 100644 --- a/ajde.core/src/org/aspectj/ajde/core/ICompilerConfiguration.java +++ b/ajde.core/src/org/aspectj/ajde/core/ICompilerConfiguration.java @@ -122,10 +122,16 @@ public interface ICompilerConfiguration extends CompilerConfigurationChangeFlags * classpath element will be checked) */ public List getClasspathElementsWithModifiedContents(); + // // /** // * @return the location where the state can be persisted across eclipse restarts. eg. f:/foo/bar/goo // */ // public String getLocationForPersistingProjectState(); + /** + * Return the encoding to use for this project. Return null if the platform default should be used. Example return value "UTF-8" + */ + public String getProjectEncoding(); + } diff --git a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java index 30b6673df..4895ccc62 100644 --- a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java +++ b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java @@ -329,6 +329,8 @@ public class AjdeCoreBuildManager { config.setIncrementalMode(true); // always force proceedOnError in AJDE config.setProceedOnError(true); + + config.setProjectEncoding(compilerConfig.getProjectEncoding()); return config; } -- 2.39.5