ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional Script.java
Date Sat, 29 Sep 2001 03:51:53 GMT
donaldp     01/09/28 20:51:53

  Modified:    docs/manual/OptionalTasks script.html
               src/main/org/apache/tools/ant/taskdefs/optional Script.java
  Log:
  Make the project accessible via consistent name ("project").
  
  Submitted by: "Erik Hatcher" <jakarta-ant@ehatchersolutions.com>
  
  Revision  Changes    Path
  1.4       +1 -1      jakarta-ant/docs/manual/OptionalTasks/script.html
  
  Index: script.html
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/docs/manual/OptionalTasks/script.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- script.html	2001/08/30 13:23:14	1.3
  +++ script.html	2001/09/29 03:51:53	1.4
  @@ -15,7 +15,7 @@
   See <a href="../install.html#librarydependencies">Library Dependencies</a>
for more information.</p>
   <p>All items (tasks, targets, etc) of the running project are
   accessible from the script, using either their <code>name</code> or
  -<code>id</code> attributes.</p>
  +<code>id</code> attributes.  The name "project" is a pre-defined reference
to the Project, which can be used instead of the project name.</p>
   <p>Scripts can do almost anything a task written in Java could do.</p>
   <h3>Parameters</h3>
   <table border="1" cellpadding="2" cellspacing="0">
  
  
  
  1.6       +2 -0      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/Script.java
  
  Index: Script.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/Script.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Script.java	2001/01/03 14:18:35	1.5
  +++ Script.java	2001/09/29 03:51:53	1.6
  @@ -97,6 +97,8 @@
               addBeans(project.getTargets());
               addBeans(project.getReferences());
   
  +            beans.put("project", getProject());
  +
               BSFManager manager = new BSFManager ();
   
               for (Enumeration e = beans.keys() ; e.hasMoreElements() ;) {
  
  
  

Mime
View raw message