You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@apache.org on 2002/05/05 14:20:41 UTC
cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/workspace DefaultTaskContext.java
donaldp 02/05/05 05:20:41
Modified: api/src/java/org/apache/myrmidon/api TaskContext.java
container/src/java/org/apache/myrmidon/components/workspace
DefaultTaskContext.java
Log:
Added a getLocation method to TaskContext so that debug messages printed
by task can indicate the location of task issuing debug.
Revision Changes Path
1.33 +13 -1 jakarta-ant-myrmidon/api/src/java/org/apache/myrmidon/api/TaskContext.java
Index: TaskContext.java
===================================================================
RCS file: /home/cvs/jakarta-ant-myrmidon/api/src/java/org/apache/myrmidon/api/TaskContext.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- TaskContext.java 2 May 2002 04:03:52 -0000 1.32
+++ TaskContext.java 5 May 2002 12:20:41 -0000 1.33
@@ -16,7 +16,7 @@
* path between the container and the Task.
*
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
- * @version $Revision: 1.32 $ $Date: 2002/05/02 04:03:52 $
+ * @version $Revision: 1.33 $ $Date: 2002/05/05 12:20:41 $
*
* @todo Add some additional standard properties.
*/
@@ -34,6 +34,18 @@
* @return the name
*/
String getName();
+
+ /**
+ * Retrieve the physical location of the task.
+ * The format of this string is not specified but is dependent
+ * on the medium tasks are built from. For standard XML files
+ * it will be in the form "build.xml:20:4" which indicates that
+ * it is in the <code>build.xml</code> file, on line <code>20</code>
+ * and column <code>4</code>.
+ *
+ * @return the location in physical medium
+ */
+ String getLocation();
/**
* Resolve a value according to the context.
1.44 +12 -1 jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/workspace/DefaultTaskContext.java
Index: DefaultTaskContext.java
===================================================================
RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/workspace/DefaultTaskContext.java,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- DefaultTaskContext.java 2 May 2002 04:03:52 -0000 1.43
+++ DefaultTaskContext.java 5 May 2002 12:20:41 -0000 1.44
@@ -28,7 +28,7 @@
* Default implementation of TaskContext.
*
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
- * @version $Revision: 1.43 $ $Date: 2002/05/02 04:03:52 $
+ * @version $Revision: 1.44 $ $Date: 2002/05/05 12:20:41 $
*/
public class DefaultTaskContext
implements TaskContext
@@ -77,6 +77,17 @@
public String getName()
{
return m_name;
+ }
+
+ /**
+ * Get the location of task in physical medium.
+ *
+ * @return the location of task in physical medium
+ * @see TaskContext#getLocation
+ */
+ public String getLocation()
+ {
+ return m_location;
}
/**
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>