[Anthill-pro] scripting a label.

Steve Boone sbb at urbancode.com
Mon Apr 28 09:19:26 CDT 2008


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/6e2c3b3b/attachment-0001.htm


More information about the Anthill-pro mailing list