Jan:
I feel like a complete idiot... I glanced over this fairly quickly
yesterday and didn't read the whole document. Good grief. Now I know
where I figured out the project variable.
Thanks so much for the reponse!
Flossy
On Wed, 24 Feb 2010, jan.mate...@rzf.fin-nrw.de wrote:
From the <script> manual:
"All items (tasks, targets, etc) of the running project are accessible from the script, using either their name or
id attributes (as long as their names are considered valid Java identifiers, that is). This is controlled by the
"setbeans" attribute of the task. The name "project" is a pre-defined reference to the Project,
which can be used instead of the project name. The name "self" is a pre-defined reference to the actual
<script>-Task instance.
From these objects you have access to the Ant Java API, see the JavaDoc (especially
for Project and Script) for more information."
JavaDoc <script>
http://hudson.zones.apache.org/hudson/view/Ant/job/Ant_Nightly/javadoc/org/apache/tools/ant/taskdefs/optional/Script.html
JavaDoc 'Project'
http://hudson.zones.apache.org/hudson/view/Ant/job/Ant_Nightly/javadoc/org/apache/tools/ant/Project.html
Jan
-----Ursprüngliche Nachricht-----
Von: Scot P. Floess [mailto:sflo...@nc.rr.com]
Gesendet: Dienstag, 23. Februar 2010 21:41
An: user@ant.apache.org
Betreff: Variables available to Beanshell scripts within Ant
I did some google-ing and haven't yet found what information I
am looking
for...
At some point, I figured out in Beanshell (can't remember how
I got this
information) I can access the project variable - to do things like set
properties, etc.
I am trying to find some documentation that states what Beanshell
variables I have available to me from within Ant. By
variables, I mean
Ant related variables such as project.
Thanks ahead of time...
Flossy
--
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-890-8117 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Architect Keros http://sourceforge.net/projects/keros
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
--
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-890-8117 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Architect Keros http://sourceforge.net/projects/keros
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org