You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by tc...@apache.org on 2006/07/22 13:25:05 UTC
svn commit: r424548 -
/jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/
Author: tcurdt
Date: Sat Jul 22 04:25:03 2006
New Revision: 424548
URL: http://svn.apache.org/viewvc?rev=424548&view=rev
Log:
GSoC: parsing of javac output by Peter Konstantinov
Added:
jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/FileOutputStreamProxy.java (with props)
jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacCompilationProblem.java (with props)
jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompilerSettings.java (with props)
Modified:
jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/FileInputStreamProxy.java
jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacClassLoader.java
jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompiler.java
Modified: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/FileInputStreamProxy.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/FileInputStreamProxy.java?rev=424548&r1=424547&r2=424548&view=diff
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/FileInputStreamProxy.java (original)
+++ jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/FileInputStreamProxy.java Sat Jul 22 04:25:03 2006
@@ -64,6 +64,7 @@
public FileChannel getChannel()
{
+ // TODO
throw new RuntimeException(":(");
}
Added: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/FileOutputStreamProxy.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/FileOutputStreamProxy.java?rev=424548&view=auto
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/FileOutputStreamProxy.java (added)
+++ jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/FileOutputStreamProxy.java Sat Jul 22 04:25:03 2006
@@ -0,0 +1,116 @@
+package org.apache.commons.jci.compilers;
+
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.FileDescriptor;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.OutputStream;
+import org.apache.commons.jci.stores.ResourceStore;
+
+public class FileOutputStreamProxy extends OutputStream
+{
+ private ByteArrayOutputStream out = null;
+
+ private ResourceStore store = null;
+
+ private String fileName;
+
+ public FileOutputStreamProxy(File file, boolean append)
+ throws FileNotFoundException
+ {
+ fileName = file.getName();
+ out = new ByteArrayOutputStream();
+ if(append)
+ try
+ {
+ out.write(getStore().read(fileName));
+ }
+ catch (IOException e)
+ {
+ }
+ }
+
+ public FileOutputStreamProxy(File file) throws FileNotFoundException
+ {
+ fileName = file.getName();
+ out = new ByteArrayOutputStream();
+ }
+
+ public FileOutputStreamProxy(FileDescriptor fdObj)
+ {
+ throw new RuntimeException(":(");
+ }
+
+ public FileOutputStreamProxy(String name, boolean append)
+ throws FileNotFoundException
+ {
+ fileName = name;
+ out = new ByteArrayOutputStream();
+ if(append)
+ try
+ {
+ out.write(getStore().read(fileName));
+ }
+ catch (IOException e)
+ {
+ }
+ }
+
+ public FileOutputStreamProxy(String name) throws FileNotFoundException
+ {
+ fileName = name;
+ out = new ByteArrayOutputStream();
+ }
+
+ private ResourceStore getStore()
+ {
+ if (store == null)
+ {
+ JavacClassLoader loader = (JavacClassLoader)Thread.currentThread().getContextClassLoader();
+ store = loader.getStore();
+ }
+ return store;
+ }
+
+ public void close() throws IOException
+ {
+ getStore().write(fileName, out.toByteArray());
+ out.close();
+ }
+
+ public boolean equals(Object obj)
+ {
+ return out.equals(obj);
+ }
+
+ public void flush() throws IOException
+ {
+ out.flush();
+ }
+
+ public int hashCode()
+ {
+ return out.hashCode();
+ }
+
+ public String toString()
+ {
+ return out.toString();
+ }
+
+ public void write(byte[] b, int off, int len) throws IOException
+ {
+ out.write(b, off, len);
+ }
+
+ public void write(byte[] b) throws IOException
+ {
+ out.write(b);
+ }
+
+ public void write(int b) throws IOException
+ {
+ out.write(b);
+ }
+}
Propchange: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/FileOutputStreamProxy.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/FileOutputStreamProxy.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Modified: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacClassLoader.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacClassLoader.java?rev=424548&r1=424547&r2=424548&view=diff
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacClassLoader.java (original)
+++ jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacClassLoader.java Sat Jul 22 04:25:03 2006
@@ -1,14 +1,14 @@
package org.apache.commons.jci.compilers;
import java.io.FileInputStream;
-import java.net.URL;
-import java.net.URLClassLoader;
+import java.io.FileOutputStream;
+import javassist.ClassMap;
import javassist.ClassPool;
import javassist.CtClass;
import org.apache.commons.jci.readers.ResourceReader;
import org.apache.commons.jci.stores.ResourceStore;
-public class JavacClassLoader extends URLClassLoader
+public class JavacClassLoader extends ClassLoader
{
private ClassPool classPool;
@@ -17,9 +17,9 @@
private ResourceStore store;
public JavacClassLoader(ClassPool classPool, ResourceReader reader,
- ResourceStore store, URL[] urls, ClassLoader parent)
+ ResourceStore store, ClassLoader parent)
{
- super(urls, parent);
+ super(parent);
this.classPool = classPool;
this.reader = reader;
this.store = store;
@@ -27,24 +27,25 @@
protected Class findClass(String name) throws ClassNotFoundException
{
- // System.out.println(name);
- if (name.equals(JavacClassLoader.class.getName()))
- {
- return JavacClassLoader.class;
- }
- if (name.equals(ResourceReader.class.getName()))
- {
- return ResourceReader.class;
- }
try
{
- // if (!name.equals(FileInputStreamProxy.class.getName()))
- if (name.equals("com.sun.tools.javac.main.JavaCompiler"))
+ CtClass jc = classPool.get(name);
+ if (jc != null)
{
- CtClass jc = classPool.get(name);
- jc.replaceClassName(FileInputStream.class.getName(),
- FileInputStreamProxy.class.getName());
+ if (name.startsWith("com.sun.tools.javac"))
+ {
+ ClassMap classMap = new ClassMap();
+ classMap.put(FileOutputStream.class.getName(),
+ FileOutputStreamProxy.class.getName());
+ classMap.put(FileInputStream.class.getName(),
+ FileInputStreamProxy.class.getName());
+ jc.replaceClassName(classMap);
+ }
return jc.toClass();
+ }
+ else
+ {
+ return getParent().loadClass(name);
}
}
catch (Exception e)
Added: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacCompilationProblem.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacCompilationProblem.java?rev=424548&view=auto
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacCompilationProblem.java (added)
+++ jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacCompilationProblem.java Sat Jul 22 04:25:03 2006
@@ -0,0 +1,87 @@
+package org.apache.commons.jci.compilers;
+
+import org.apache.commons.jci.problems.CompilationProblem;
+
+public class JavacCompilationProblem implements CompilationProblem
+{
+ private int endCoumn;
+
+ private int endLine;
+
+ private String fileName;
+
+ private String message;
+
+ private int startCoumn;
+
+ private int startLine;
+
+ private boolean isError;
+
+ public JavacCompilationProblem(String message, boolean isError)
+ {
+ this.message = message;
+ this.isError = isError;
+ this.fileName = "";
+ }
+
+ public JavacCompilationProblem(String fileName, boolean isError,
+ int startLine, int startCoumn, int endLine, int endCoumn,
+ String message)
+ {
+ this.message = message;
+ this.isError = isError;
+ this.fileName = fileName;
+ this.startCoumn = startCoumn;
+ this.endCoumn = endCoumn;
+ this.startLine = startLine;
+ this.endLine = endLine;
+ }
+
+ public int getEndColumn()
+ {
+ return endCoumn;
+ }
+
+ public int getEndLine()
+ {
+ return endLine;
+ }
+
+ public String getFileName()
+ {
+ return fileName;
+ }
+
+ public String getMessage()
+ {
+ return message;
+ }
+
+ public int getStartColumn()
+ {
+ return startCoumn;
+ }
+
+ public int getStartLine()
+ {
+ return startLine;
+ }
+
+ public boolean isError()
+ {
+ return isError;
+ }
+
+ public String toString()
+ {
+ final StringBuffer sb = new StringBuffer();
+ sb.append(getFileName()).append(" (");
+ sb.append(getStartLine());
+ sb.append(":");
+ sb.append(getStartColumn());
+ sb.append(") : ");
+ sb.append(getMessage());
+ return sb.toString();
+ }
+}
Propchange: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacCompilationProblem.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacCompilationProblem.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Modified: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompiler.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompiler.java?rev=424548&r1=424547&r2=424548&view=diff
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompiler.java (original)
+++ jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompiler.java Sat Jul 22 04:25:03 2006
@@ -1,96 +1,267 @@
package org.apache.commons.jci.compilers;
-import java.io.File;
+import java.io.BufferedReader;
+import java.io.IOException;
import java.io.PrintWriter;
-import java.lang.reflect.InvocationTargetException;
+import java.io.StringReader;
+import java.io.StringWriter;
import java.lang.reflect.Method;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.net.URLClassLoader;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.NoSuchElementException;
+import java.util.StringTokenizer;
import javassist.ClassPool;
import javassist.NotFoundException;
+import org.apache.commons.jci.problems.CompilationProblem;
import org.apache.commons.jci.readers.ResourceReader;
import org.apache.commons.jci.stores.ResourceStore;
-import org.apache.commons.lang.ArrayUtils;
public class JavacJavaCompiler extends AbstractJavaCompiler
{
+ protected static final String EOL = System.getProperty("line.separator");;
+
+ private static final String WARNING_PREFIX = "warning: ";
+
+ private static final String NOTE_PREFIX = "Note: ";
+
+ private static final String ERROR_PREFIX = "error: ";
+
+ private final JavacJavaCompilerSettings settings;
+
+ public JavacJavaCompiler(final JavacJavaCompilerSettings settings)
+ {
+ super();
+ this.settings = settings;
+ }
+
public CompilationResult compile(String[] resourcePaths,
ResourceReader reader, ResourceStore store,
ClassLoader baseClassLoader)
{
- File toolsJar = new File(System.getProperty("java.home"),
- "../lib/tools.jar");
- URL[] urls = null;
+ ClassPool classPool = ClassPool.getDefault();
try
{
- if (baseClassLoader instanceof URLClassLoader)
- {
- urls = (URL[]) ArrayUtils.add(
- ((URLClassLoader) baseClassLoader).getURLs(), toolsJar
- .toURI().toURL());
- }
- else
- {
- urls = new URL[] { new File(".").toURI().toURL(),
- toolsJar.toURL() };
- }
+ classPool.appendClassPath(System.getProperty("java.home")
+ + "/../lib/tools.jar");
}
- catch (MalformedURLException e)
+ catch (NotFoundException e)
{
- // TODO Auto-generated catch block
- e.printStackTrace();
+ return new CompilationResult(
+ new CompilationProblem[] { new JavacCompilationProblem(
+ "tools.jar not fount", true) });
}
- ClassPool classPool = ClassPool.getDefault();
JavacClassLoader javacClassLoader = new JavacClassLoader(classPool,
- reader, store, urls, baseClassLoader.getParent());
+ reader, store, baseClassLoader);
ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(javacClassLoader);
- Class javacMain = null;
try
{
- javacMain = javacClassLoader.loadClass("com.sun.tools.javac.Main");
+ Class javacMain = javacClassLoader
+ .loadClass("com.sun.tools.javac.Main");
+ Method compile = javacMain.getMethod("compile", new Class[] {
+ String[].class, PrintWriter.class });
+ StringWriter out = new StringWriter();
+ Integer ok = (Integer) compile.invoke(null,
+ new Object[] { buildCompilerArguments(resourcePaths),
+ new PrintWriter(out) });
+ CompilationResult result = parseModernStream(new BufferedReader(
+ new StringReader(out.toString())));
+ if (result.getErrors().length == 0 && ok.intValue() != 0)
+ return new CompilationResult(
+ new CompilationProblem[] { new JavacCompilationProblem(
+ "Failure executing javac, but could not parse the error: "
+ + out.toString(), true) });
+ return result;
+ }
+ catch (Exception e)
+ {
+ return new CompilationResult(
+ new CompilationProblem[] { new JavacCompilationProblem(
+ "Error while executing the compiler: "
+ + e.toString(), true) });
}
- catch (ClassNotFoundException e)
+ finally
{
- e.printStackTrace();
+ Thread.currentThread().setContextClassLoader(oldLoader);
}
- Method compile = null;
- try
- {
- compile = javacMain.getMethod("compile", new Class[] {
- String[].class, PrintWriter.class });
+ }
+
+ private CompilationResult parseModernStream(BufferedReader input)
+ throws IOException
+ {
+ List problems = new ArrayList();
+ String line;
+ StringBuffer buffer;
+ while (true)
+ {
+ // cleanup the buffer
+ buffer = new StringBuffer(); // this is quicker than clearing it
+ // most errors terminate with the '^' char
+ do
+ {
+ line = input.readLine();
+ if (line == null)
+ {
+ return new CompilationResult(
+ (CompilationProblem[]) problems
+ .toArray(new CompilationProblem[problems
+ .size()]));
+ }
+ // TODO: there should be a better way to parse these
+ if (buffer.length() == 0 && line.startsWith(ERROR_PREFIX))
+ {
+ problems.add(new JavacCompilationProblem(line, true));
+ }
+ else
+ if (buffer.length() == 0 && line.startsWith(NOTE_PREFIX))
+ {
+ // skip this one - it is JDK 1.5 telling us that the
+ // interface is deprecated.
+ }
+ else
+ {
+ buffer.append(line);
+ buffer.append(EOL);
+ }
+ }
+ while (!line.endsWith("^"));
+ // add the error bean
+ problems.add(parseModernError(buffer.toString()));
}
- catch (SecurityException e)
+ }
+
+ private CompilationProblem parseModernError(String error)
+ {
+ StringTokenizer tokens = new StringTokenizer(error, ":");
+ boolean isError = true;
+ StringBuffer msgBuffer;
+ try
{
- // TODO Auto-generated catch block
- e.printStackTrace();
+ String file = tokens.nextToken();
+ // When will this happen?
+ if (file.length() == 1)
+ {
+ file = new StringBuffer(file).append(":").append(
+ tokens.nextToken()).toString();
+ }
+ int line = Integer.parseInt(tokens.nextToken());
+ msgBuffer = new StringBuffer();
+ String msg = tokens.nextToken(EOL).substring(2);
+ isError = !msg.startsWith(WARNING_PREFIX);
+ // Remove the 'warning: ' prefix
+ if (!isError)
+ {
+ msg = msg.substring(WARNING_PREFIX.length());
+ }
+ msgBuffer.append(msg);
+ String context = tokens.nextToken(EOL);
+ String pointer = tokens.nextToken(EOL);
+ if (tokens.hasMoreTokens())
+ {
+ msgBuffer.append(EOL);
+ msgBuffer.append(context); // 'symbol' line
+ msgBuffer.append(EOL);
+ msgBuffer.append(pointer); // 'location' line
+ msgBuffer.append(EOL);
+ context = tokens.nextToken(EOL);
+ try
+ {
+ pointer = tokens.nextToken(EOL);
+ }
+ catch (NoSuchElementException e)
+ {
+ pointer = context;
+ context = null;
+ }
+ }
+ String message = msgBuffer.toString();
+ int startcolumn = pointer.indexOf("^");
+ int endcolumn = context == null ? startcolumn : context.indexOf(
+ " ", startcolumn);
+ if (endcolumn == -1)
+ {
+ endcolumn = context.length();
+ }
+ return new JavacCompilationProblem(file, isError, line,
+ startcolumn, line, endcolumn, message);
}
- catch (NoSuchMethodException e)
+ catch (NoSuchElementException e)
{
- e.printStackTrace();
+ return new JavacCompilationProblem(
+ "no more tokens - could not parse error message: " + error,
+ isError);
}
- try
+ catch (NumberFormatException e)
{
- compile.invoke(null, new Object[] { new String[] { "test.java" },
- new PrintWriter(System.out) });
+ return new JavacCompilationProblem(
+ "could not parse error message: " + error, isError);
}
- catch (IllegalArgumentException e)
+ catch (Exception e)
{
- // TODO Auto-generated catch block
- e.printStackTrace();
+ return new JavacCompilationProblem(
+ "could not parse error message: " + error, isError);
}
- catch (IllegalAccessException e)
+ }
+
+ private String[] buildCompilerArguments(String[] resourcePaths)
+ {
+ List args = new ArrayList();
+ for (int i = 0; i < resourcePaths.length; i++)
{
- // TODO Auto-generated catch block
- e.printStackTrace();
+ args.add(resourcePaths[i]);
}
- catch (InvocationTargetException e)
+ if (settings != null)
{
- // TODO Auto-generated catch block
- e.printStackTrace();
+ if (settings.isOptimize())
+ args.add("-O");
+ if (settings.isDebug())
+ args.add("-g");
+ if (settings.isVerbose())
+ args.add("-verbose");
+ if (settings.isShowDeprecation())
+ {
+ args.add("-deprecation");
+ // This is required to actually display the deprecation messages
+ settings.setShowWarnings(true);
+ }
+ if (settings.getMaxmem() != null)
+ args.add("-J-Xmx" + settings.getMaxmem());
+ if (settings.getMeminitial() != null)
+ args.add("-J-Xms" + settings.getMeminitial());
+ if (!settings.isShowWarnings())
+ args.add("-nowarn");
+ // TODO: this could be much improved
+ if (settings.getTargetVersion() != null)
+ {
+ // Required, or it defaults to the target of your JDK (eg 1.5)
+ args.add("-target");
+ args.add("1.1");
+ }
+ else
+ {
+ args.add("-target");
+ args.add(settings.getTargetVersion());
+ }
+ // TODO suppressSource
+ if (settings.getSourceVersion() != null)
+ {
+ // If omitted, later JDKs complain about a 1.1 target
+ args.add("-source");
+ args.add("1.3");
+ }
+ else
+ {
+ args.add("-source");
+ args.add(settings.getSourceVersion());
+ }
+ // TODO suppressEncoding
+ if (settings.getSourceEncoding() != null)
+ {
+ args.add("-encoding");
+ args.add(settings.getSourceEncoding());
+ }
+ // TODO CustomCompilerArguments
}
- Thread.currentThread().setContextClassLoader(oldLoader);
- return null;
+ return (String[]) args.toArray(new String[args.size()]);
}
}
Added: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompilerSettings.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompilerSettings.java?rev=424548&view=auto
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompilerSettings.java (added)
+++ jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompilerSettings.java Sat Jul 22 04:25:03 2006
@@ -0,0 +1,138 @@
+package org.apache.commons.jci.compilers;
+
+import java.util.List;
+
+public class JavacJavaCompilerSettings implements JavaCompilerSettings
+{
+ private boolean optimize;
+
+ private boolean debug;
+
+ private boolean verbose;
+
+ private boolean showDeprecation;
+
+ private String maxmem;
+
+ private String meminitial;
+
+ private boolean showWarnings;
+
+ private String targetVersion;
+
+ private String sourceVersion;
+
+ private String sourceEncoding;
+
+ private List customCompilerArguments;
+
+ public List getCustomCompilerArguments()
+ {
+ return customCompilerArguments;
+ }
+
+ public void setCustomCompilerArguments(List customCompilerArguments)
+ {
+ this.customCompilerArguments = customCompilerArguments;
+ }
+
+ public boolean isDebug()
+ {
+ return debug;
+ }
+
+ public void setDebug(boolean debug)
+ {
+ this.debug = debug;
+ }
+
+ public boolean isShowDeprecation()
+ {
+ return showDeprecation;
+ }
+
+ public void setShowDeprecation(boolean deprecation)
+ {
+ this.showDeprecation = deprecation;
+ }
+
+ public String getMaxmem()
+ {
+ return maxmem;
+ }
+
+ public void setMaxmem(String maxmem)
+ {
+ this.maxmem = maxmem;
+ }
+
+ public String getMeminitial()
+ {
+ return meminitial;
+ }
+
+ public void setMeminitial(String meminitial)
+ {
+ this.meminitial = meminitial;
+ }
+
+ public boolean isOptimize()
+ {
+ return optimize;
+ }
+
+ public void setOptimize(boolean optimize)
+ {
+ this.optimize = optimize;
+ }
+
+ public boolean isShowWarnings()
+ {
+ return showWarnings;
+ }
+
+ public void setShowWarnings(boolean showWarnings)
+ {
+ this.showWarnings = showWarnings;
+ }
+
+ public String getSourceEncoding()
+ {
+ return sourceEncoding;
+ }
+
+ public void setSourceEncoding(String sourceEncoding)
+ {
+ this.sourceEncoding = sourceEncoding;
+ }
+
+ public String getSourceVersion()
+ {
+ return sourceVersion;
+ }
+
+ public void setSourceVersion(String sourceVersion)
+ {
+ this.sourceVersion = sourceVersion;
+ }
+
+ public String getTargetVersion()
+ {
+ return targetVersion;
+ }
+
+ public void setTargetVersion(String targetVersion)
+ {
+ this.targetVersion = targetVersion;
+ }
+
+ public boolean isVerbose()
+ {
+ return verbose;
+ }
+
+ public void setVerbose(boolean verbose)
+ {
+ this.verbose = verbose;
+ }
+}
Propchange: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompilerSettings.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompilerSettings.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org