[Anthill-pro] Re: Publish Dir

Ryan Smith rws at urbancode.com
Wed Sep 27 15:34:20 CDT 2006


Hi Barry, are you using the Intranet Publisher to publish these? If so, 
I assume you want a URL to the directory so you can provide a link in a 
email or something.

To get the URL in the template, you would use something like the following:

#set( $junitDir = "/junit" )
#set( $intranetModule = $WebUtils.getIntranetModule() )
#if( $intranetModule && $buildOwner.getBuildPublisher() )
#set( $anthillURL = $Anthill.getAnthillURL() )
#if( $anthillURL.endsWith("/") )
#set( $anthillURLtargetLength = $anthillURL.length() - 1)
#set( $anthillURL = $anthillURL.substring(0, $anthillURLtargetLength) )
#end
#set( $junitURL = 
$WebUtils.getIntranetFileActionURL($intranetModule.getBuildOwnerAndBuildVersionDirectoryName($buildDef) 
+ $junitDir, "") )
JUnit results published to Anthill Pro intranet:
$anthillURL$$junitURL
#end




Barry Pape wrote:
> Anyone know what the variable/property name is that stores the Publish 
> Dir, and is it available to be used in the reports templates?
>
> Thanks,
> Barry Pape
>


More information about the Anthill-pro mailing list