[Anthill-pro] How to reference the current working directory in a script

Ryan Smith rws at urbancode.com
Mon Apr 9 08:04:56 CDT 2007


${anthill3/work.dir} is the base work directory. You don't want to do
anything there. The current working directory is not available as a
property, you have to use a little script to get it:

${bsh:WorkDirPath.getPath()}


Ryan Smith

Jeff Rodgers (jerodger) wrote:
> This is probably just an oversight on my part, but I need to pass the 
> current working directory for a job into an Ant script. Except for 
> replicating the working directory script in the property definition, I 
> couldn't find a way to do this in the docs or with a Google search. Is 
> there an easy way to reference this? I'm looking for something simple 
> like ${anthill3/current.working.dir}.
>  
> As a side note, why doesn't ${anthill3/work.dir} reference the current 
> working dir for the job? Does every job step get evaluated at the 
> beginning of the job or after the previous one?
>  
>
> *Jeff Rodgers*
> *Software Engineer*
> **Customer Advocacy*
> *
> jerodger at cisco.com <mailto:jerodger at cisco.com>
> Phone :*(512) 340-3204*
> Mobile :*(512) 470-8267*
>
> 	
>
> **
> 9500 Amberglen Blvd.
> Austin, TX 78729
> United States
> www.cisco.com <http://www.cisco.com/>
>
> 	 
>
> This e-mail may contain confidential and privileged material for the 
> sole use of the intended recipient. Any review, use, distribution or 
> disclosure by others is strictly prohibited. If you are not the 
> intended recipient (or authorized to receive for the recipient), 
> please contact the sender by reply e-mail and delete all copies of 
> this message.
>
>
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>   

-- 
===========================================================
Ryan Smith.           		2044 Euclid Ave., Suite 600
Lead Developer                  Cleveland, Ohio 44115
Urbancode, Inc.
                                email:  rws at urbancode.com
web:     www.urbancode.com      phone:  216-858-9000
web:     www.anthillpro.com     fax:    216-858-9602
===========================================================




More information about the Anthill-pro mailing list