From: aclement Date: Mon, 4 Apr 2011 18:16:38 +0000 (+0000) Subject: 290741: encoding option on ICompilerConfiguration X-Git-Tag: V1_6_12M1~84 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=72615f4ecc7f5ecab5653ec207d478183761b34a;p=aspectj.git 290741: encoding option on ICompilerConfiguration --- 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; }