[Anthill-pro] scripting a label.

Ronald Barrett ronald.barrett at venyon.com
Fri Apr 25 07:44:35 CDT 2008


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)

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


More information about the Anthill-pro mailing list