Browse Source

Added debug-attribute to rmic (Bug #224)

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268580 13f79535-47bb-0310-9956-ffa450edef68
master
Nico Seessle 24 years ago
parent
commit
5c1e42a954
2 changed files with 13 additions and 0 deletions
  1. +5
    -0
      docs/index.html
  2. +8
    -0
      src/main/org/apache/tools/ant/taskdefs/Rmic.java

+ 5
- 0
docs/index.html View File

@@ -4649,6 +4649,11 @@ supports all attributes of <code>&lt;fileset&gt;</code>
<td valign="top">additional arguments for IDL file generation</td>
<td align="center" valign="top">No</td>
</tr>
<tr>
<td valign="top">debug</td>
<td valign="top">generate debug info (passes -g to rmic). Defaults to false.</td>
<td align="center" valign="top">No</td>
</tr>
</table>
<h3>Parameters specified as nested elements</h3>
<h4>classpath</h4>


+ 8
- 0
src/main/org/apache/tools/ant/taskdefs/Rmic.java View File

@@ -108,6 +108,7 @@ public class Rmic extends MatchingTask {
private String iiopopts;
private boolean idl = false;
private String idlopts;
private boolean debug = false;

private Vector compileList = new Vector();

@@ -133,6 +134,10 @@ public class Rmic extends MatchingTask {
filtering = filter;
}

public void setDebug(boolean debug) {
this.debug = debug;
}

/**
* Set the classpath to be used for this compilation.
*/
@@ -273,6 +278,9 @@ public class Rmic extends MatchingTask {
if( idlopts != null )
cmd.createArgument().setValue(idlopts);
}
if( debug ) {
cmd.createArgument().setValue("-g");
}

int fileCount = compileList.size();
if (fileCount > 0) {


Loading…
Cancel
Save