Author: tchemit Date: 2008-01-12 16:13:13 +0000 (Sat, 12 Jan 2008) New Revision: 146 Modified: trunk/jaxx/src/java/jaxx/compiler/CompilerOptions.java Log: on doit permettre de diff?\195?\169rencer le r?\195?\169pertoire de g?\195?\169n?\195?\169ration du r?\195?\169pertoire de compilation Modified: trunk/jaxx/src/java/jaxx/compiler/CompilerOptions.java =================================================================== --- trunk/jaxx/src/java/jaxx/compiler/CompilerOptions.java 2008-01-12 16:12:30 UTC (rev 145) +++ trunk/jaxx/src/java/jaxx/compiler/CompilerOptions.java 2008-01-12 16:13:13 UTC (rev 146) @@ -8,6 +8,7 @@ */ public class CompilerOptions { private File targetDirectory; + private File javacTargetDirectory; private String classPath; private String javacOpts; private boolean runJavac; @@ -20,6 +21,21 @@ * @return the target directory * @see #setTargetDirectory */ + public File getJavacTargetDirectory() { + if (javacTargetDirectory==null) { + // to use the old way : if javacTargetDirectory not specified, + // use same directory as targetDirectory (says where the java sources + // are generated) + return targetDirectory; + } + return javacTargetDirectory; + } + /** + * Returns the target directory, generally specified with the "-d" option on the command line. + * + * @return the target directory + * @see #setTargetDirectory + */ public File getTargetDirectory() { return targetDirectory; } @@ -35,6 +51,9 @@ this.targetDirectory = targetDirectory; } + public void setJavacTargetDirectory(File javacTargetDirectory) { + this.javacTargetDirectory = javacTargetDirectory; + } /** * Returns the class path to be used during compilation.
participants (1)
-
tchemit@users.labs.libre-entreprise.org