Browse Source

Expose vm attribute in <nant> and <msbuild>

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275714 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
5f9b623098
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      proposal/sandbox/dotnet/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/AbstractBuildTask.java

+ 17
- 0
proposal/sandbox/dotnet/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/AbstractBuildTask.java View File

@@ -94,6 +94,11 @@ public abstract class AbstractBuildTask extends Task {
*/
private XMLFragment buildSnippet;

/**
* The vm attribute - if given.
*/
private String vm;

/**
* Empty constructor.
*/
@@ -119,6 +124,15 @@ public abstract class AbstractBuildTask extends Task {
}
}

/**
* Set the name of the executable for the virtual machine.
*
* @param value the name of the executable for the virtual machine
*/
public void setVm(String value) {
this.vm = value;
}

/**
* A target.
*/
@@ -226,6 +240,9 @@ public abstract class AbstractBuildTask extends Task {
}

DotNetExecTask exec = new DotNetExecTask();
if (vm != null) {
exec.setVm(vm);
}
exec.setProject(getProject());
exec.setExecutable(getExecutable());
exec.setTaskName(getTaskName());


Loading…
Cancel
Save