Skip to content

Commit

Permalink
Merge branch 'master' into v1.28
Browse files Browse the repository at this point in the history
  • Loading branch information
stoicflame committed Dec 4, 2013
2 parents 73cc436 + 8d45bd5 commit adc00bb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
28 changes: 28 additions & 0 deletions core/src/main/java/org/codehaus/enunciate/main/EnunciateTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public class EnunciateTask extends MatchingTask {
private File scratchDir;
private File gwtHome;
private File flexHome;
private String javacSourceVersion = null;
private String javacTargetVersion = null;
private Enunciate.Target target;
private final ArrayList<Export> exports = new ArrayList<Export>();
private final ArrayList<JavacArgument> javacArguments = new ArrayList<JavacArgument>();
Expand Down Expand Up @@ -147,6 +149,14 @@ public void execute() throws BuildException {
proxy.setTarget(this.target);
}

if (this.javacSourceVersion != null) {
proxy.setJavacSourceVersion(this.javacSourceVersion);
}

if (this.javacTargetVersion != null) {
proxy.setJavacTargetVersion(this.javacTargetVersion);
}

for (Export export : exports) {
proxy.addExport(export.getArtifactId(), export.getDestination());
}
Expand Down Expand Up @@ -305,6 +315,24 @@ public void setCompileDebugInfo(boolean compileDebugInfo) {
this.compileDebugInfo = compileDebugInfo;
}

/**
* javac -source version parameter
*
* @param javacSourceVersion javac -source version parameter
*/
public void setJavacSourceVersion(String javacSourceVersion) {
this.javacSourceVersion = javacSourceVersion;
}

/**
* javac -target version parameter
*
* @param javacTargetVersion javac -target version parameter
*/
public void setJavacTargetVersion(String javacTargetVersion) {
this.javacTargetVersion = javacTargetVersion;
}

/**
* The classpath to use to enunciate.
*
Expand Down
10 changes: 10 additions & 0 deletions documentation/executables.html
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,16 @@ <h2>Enunciate Task Attributes</h2>
<td>The reference to the classpath to use to Enunciate (used to find modules, invoke APT, and copy jars for building the war).</td>
<td class="last">No; Defaults to the system classpath</td>
</tr>
<tr>
<td>javacSourceVersion</td>
<td>String</td>
<td class="last">javac -source version parameter</td>
</tr>
<tr>
<td>javacTargetVersion</td>
<td>String</td>
<td class="last">javac -target version parameter</td>
</tr>
<tr>
<td>compileDebugInfo</td>
<td>Whether to compile with debug info.</td>
Expand Down

0 comments on commit adc00bb

Please sign in to comment.