Source code: com/arranger/jarl/ant/GetReturnValue.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 * GetReturnValue created on Feb 4, 2003
8 */
9 public class GetReturnValue extends Task {
10
11 protected String m_name;
12
13 public String getName() {
14 return m_name;
15 }
16
17 public void setName(String name) {
18 m_name = name;
19 }
20
21 /**
22 * Uses system.properties to get return values
23 * @throws BuildException
24 */
25 public void execute() throws BuildException {
26 //set project property
27 String value = System.getProperty(m_name);
28 if (value != null) {
29 project.setUserProperty(m_name, value);
30 }
31 }
32 }