[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jdt-core-dev] about eclipse Java compiler
|
Those are useful changes, we will adopt them.
Thanks !
Takashi Okamoto
<toraneko@xxxxxxxxx To: jdt-core-dev@xxxxxxxxxxx
> cc:
Sent by: Subject: [jdt-core-dev] about eclipse Java compiler
jdt-core-dev-admin@
eclipse.org
04/01/2002 12:58 AM
Please respond to
jdt-core-dev
Hi, eclipse.
I want to use eclipse Java compiler with other software like ant
instead of SUN's compiler. I investigated how I can do. Finally I
found org.eclipse.jdt.internal.compiler.batch.Main is useful to do it.
But some of features aren't enough.
- can't distinguish wheather compiling is success or not.
- constructor and compile(String[] argv) method isn't public.
So, I wrote a patch briefly. Could you commit it?
regards,
Takashi Okamoto
--- org/eclipse/jdt/internal/compiler/batch/Main.java.orig Mon Apr
1 00:19:51 2002
+++ org/eclipse/jdt/internal/compiler/batch/Main.java Mon Apr 1
00:23:58 2002
@@ -79,7 +79,7 @@
private boolean proceed = true;
- protected Main(PrintWriter writer, boolean
systemExitWhenFinished) {
+ public Main(PrintWriter writer, boolean
systemExitWhenFinished) {
this.out = writer;
this.systemExitWhenFinished =
systemExitWhenFinished;
@@ -138,7 +138,7 @@
/*
* Low-level API performing the actual compilation
*/
- protected void compile(String[] argv) {
+ public boolean compile(String[] argv) {
// decode command line arguments
try {
@@ -249,6 +249,11 @@
if (this.log != null) {
out.close();
}
+ }
+ if (globalErrorsCount == 0) {
+ return true;
+ } else {
+ return false;
}
}
_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-core-dev