aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2011-04-04 18:16:38 +0000
committeraclement <aclement>2011-04-04 18:16:38 +0000
commit72615f4ecc7f5ecab5653ec207d478183761b34a (patch)
tree912aa883955c7c82932d02a2a2d897e0819d0023
parent365882f2f263f03439760f05226bbffa587116c3 (diff)
downloadaspectj-72615f4ecc7f5ecab5653ec207d478183761b34a.tar.gz
aspectj-72615f4ecc7f5ecab5653ec207d478183761b34a.zip
290741: encoding option on ICompilerConfiguration
-rw-r--r--ajde.core/src/org/aspectj/ajde/core/ICompilerConfiguration.java6
-rw-r--r--ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java2
2 files changed, 8 insertions, 0 deletions
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;
}