[Anthill-pro] scripting a label.

Ronald Barrett ronald.barrett at venyon.com
Mon Apr 28 10:12:27 CDT 2008


Hi Steve,
 
This doesn't work. I am actually using the svn label step provided by anhtillpro. Would it be better to use the Evaluate a Scritp and to set this as  a  property in the Workflow, then to be used by the svn label step? Would you have an exmple of this kind of scipting?
 
Ron

________________________________

From: anthill-pro-bounces at lists.urbancode.com [mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Steve Boone
Sent: Montag, 28. April 2008 16:19
To: AnthillPro user and support list.
Subject: Re: [Anthill-pro] scripting a label.


Ronald,

You could use codestation to store the artifacts and then pull them down for the projects that required them. 

Regards,
Steve


On Fri, Apr 25, 2008 at 8:44 AM, Ronald Barrett <ronald.barrett at venyon.com> wrote:


	Hi I am working on a script to create a subversion label using the version from the pom.xml of a maven build.
	 
	I need to add some jar files to the classpath. What would be the best way to make this jar files available.
	 
	Here is the label script I have created. 
	${bsh:XPathAPI.eval(DocumentBuilderFactory.newInstance().newDocumentBuilder().parse("./pom.xml").getDocumentElement(),"/project/version").toString();}
	 
	It runs as a remote script but if I use it as a label then I get this exception.
	 
	
	 2008-04-25 13:48:07,629 ERROR job/320/19 6 - Exception: 
	 java.security.PrivilegedActionException: org.apache.bsf.BSFException: BeanShell script error: Sourced file: inline evaluation of: ``import com.urbancode.anthill3.runtime.scripting.helpers.*;import com.urbancode.a . . . '' : Attempt to resolve method: newInstance() on undefined variable or class name: DocumentBuilderFactory : at Line: 1 : in file: inline evaluation of: ``import com.urbancode.anthill3.runtime.scripting.helpers.*;import com.urbancode.a . . . '' : DocumentBuilderFactory .newInstance ( ) 
	  BSF info: noFile at line: 0 column: columnNo
	 
	 
	Would codestation work in this case?
	 
	 
	Ronald Barrett
	Senior Software Engineer
	 
	 
	 
	VENYON GmbH
	 
	 
	 
	Email: ronald.barrett at venyon.de
	Willy-Brandt-Platz 2       Phone +49 89 45 21 33 102
	81829 Muenchen             Fax   +49 89 45 21 33 100
	Germany
	 
	 
	 
	Geschäftsführer: Oliver Pannke - Sitz der Gesellschaft: München - HRB 163208
	(Amtsgericht München)
	
	 
	 

	_______________________________________________
	Anthill-pro mailing list
	Anthill-pro at lists.urbancode.com
	http://lists.urbancode.com/mailman/listinfo/anthill-pro
	
	


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20080428/d89d40ba/attachment.htm


More information about the Anthill-pro mailing list