From 5f9b623098969ba4670b64aaf45fed9227552c74 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 28 Nov 2003 10:17:35 +0000 Subject: [PATCH] Expose vm attribute in and git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275714 13f79535-47bb-0310-9956-ffa450edef68 --- .../optional/dotnet/AbstractBuildTask.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/proposal/sandbox/dotnet/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/AbstractBuildTask.java b/proposal/sandbox/dotnet/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/AbstractBuildTask.java index d6ac81008..078c304f3 100644 --- a/proposal/sandbox/dotnet/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/AbstractBuildTask.java +++ b/proposal/sandbox/dotnet/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/AbstractBuildTask.java @@ -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());