Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 26346 Details for
Bug 107535
batch compiler should put is own version in the compiler log file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_107535.txt (text/plain), 3.37 KB, created by
Olivier Thomann
on 2005-08-22 12:29:21 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-08-22 12:29:21 EDT
Size:
3.37 KB
patch
obsolete
>Index: batch/org/eclipse/jdt/internal/compiler/batch/Main.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java,v >retrieving revision 1.204 >diff -u -r1.204 Main.java >--- batch/org/eclipse/jdt/internal/compiler/batch/Main.java 10 Aug 2005 18:09:44 -0000 1.204 >+++ batch/org/eclipse/jdt/internal/compiler/batch/Main.java 22 Aug 2005 16:28:25 -0000 >@@ -718,6 +718,7 @@ > } > > /** >+ * Print the usage of the compiler > * @param usage > */ > public void logUsage(String usage) { >@@ -725,20 +726,35 @@ > } > > /** >- * >+ * Print the version of the compiler in the log and/or the out field > */ >- public void logVersion() { >- this.printlnOut(Main.bind("misc.version", //$NON-NLS-1$ >- new String[] { >- Main.bind("compiler.name"), //$NON-NLS-1$ >- Main.bind("compiler.version"), //$NON-NLS-1$ >- Main.bind("compiler.copyright") //$NON-NLS-1$ >- } >- )); >+ public void logVersion(final boolean printToOut) { >+ if (this.log != null && !this.isXml) { >+ final String version = Main.bind("misc.version", //$NON-NLS-1$ >+ new String[] { >+ Main.bind("compiler.name"), //$NON-NLS-1$ >+ Main.bind("compiler.version"), //$NON-NLS-1$ >+ Main.bind("compiler.copyright") //$NON-NLS-1$ >+ } >+ ); >+ this.log.println(version); >+ if (printToOut) { >+ this.out.println(version); >+ } >+ } else if (printToOut) { >+ final String version = Main.bind("misc.version", //$NON-NLS-1$ >+ new String[] { >+ Main.bind("compiler.name"), //$NON-NLS-1$ >+ Main.bind("compiler.version"), //$NON-NLS-1$ >+ Main.bind("compiler.copyright") //$NON-NLS-1$ >+ } >+ ); >+ this.out.println(version); >+ } > } > > /** >- * >+ * Print the usage of wrong JDK > */ > public void logWrongJDK() { > if (isXml) { >@@ -806,28 +822,22 @@ > } > private void printErr(String s) { > this.err.print(s); >- if (!this.isXml) { >- if (this.log != null) { >- this.log.print(s); >- } >+ if (!this.isXml && this.log != null) { >+ this.log.print(s); > } > } > > private void printlnErr(String s) { > this.err.println(s); >- if (!this.isXml) { >- if (this.log != null) { >- this.log.println(s); >- } >+ if (!this.isXml && this.log != null) { >+ this.log.println(s); > } > } > > private void printlnOut(String s) { > this.out.println(s); >- if (!this.isXml) { >- if (this.log != null) { >- this.log.println(s); >- } >+ if (!this.isXml && this.log != null) { >+ this.log.println(s); > } > } > >@@ -1446,7 +1456,7 @@ > } > if (currentArg.equals("-version") //$NON-NLS-1$ > || currentArg.equals("-v")) { //$NON-NLS-1$ >- printVersion(); >+ this.logger.logVersion(true); > this.proceed = false; > return; > } >@@ -2180,15 +2190,13 @@ > } else { > this.showProgress = false; > } >+ this.logger.logVersion(printVersionRequired); > > if (printUsageRequired || filesCount == 0) { > printUsage(); > this.proceed = false; > return; > } >- if (printVersionRequired) { >- printVersion(); >- } > > if (filesCount != 0) > System.arraycopy( >@@ -2716,8 +2724,4 @@ > )); > this.logger.flush(); > } >- public void printVersion() { >- this.logger.logVersion(); >- this.logger.flush(); >- } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 107535
:
26325
|
26345
| 26346