| Home >> All >> com >> arranger >> jarl >> [ ant Javadoc ] |
Source code: com/arranger/jarl/ant/SetReturnValue.java
1 package com.arranger.jarl.ant; 2 3 import org.apache.tools.ant.Task; 4 import org.apache.tools.ant.BuildException; 5 6 /** 7 * SetReturnValue created on Feb 4, 2003 8 */ 9 public class SetReturnValue extends Task { 10 11 protected String m_name; 12 protected String m_value; 13 14 public String getName() { 15 return m_name; 16 } 17 18 public void setName(String name) { 19 m_name = name; 20 } 21 22 public String getValue() { 23 return m_value; 24 } 25 26 public void setValue(String value) { 27 m_value = value; 28 } 29 30 /** 31 * Uses system.properties to pass return values 32 * @throws BuildException 33 */ 34 public void execute() throws BuildException { 35 //set system property 36 System.setProperty(m_name, m_value); 37 } 38 }