I tried to run jython script that expects one argument. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
I set: maven.was5.script.args=config, but the script don't get the arg. The code is from the plugin.jelly: <!-- run a script --> <goal name="was5:run-script"> ..... <!-- set args --> <j:if test="${!empty(args)}"> <u:tokenize var="argList" delim=" ">${args}</u:tokenize> <j:forEach var="arg" items="${argList}"> <ant:arg value="${context.getVariable(arg)}"/> </j:forEach> </j:if> </ant:wsAdmin> </goal> I added an <echo>${arg}</echo> just before the line <ant:arg value="${context.getVariable(arg)}"/> and it was the value i defined. I added additional echo for ${context.getVariable(arg)} and it was empty, which mean my script don't get the arg. I changed <ant:arg value="${context.getVariable(arg)}"/> to <ant:arg value="${arg}"/> and it worked. Why <ant:arg value="${context.getVariable(arg)}"/> and not <ant:arg value="${arg}"/> ? Oren Berenson Java Developer Morpheus - eBusiness Solutions Morpheus Limited, Unit 6, The Courtyard, Eastern Road, Bracknell, Berkshire, RG12 2XB Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Tel: 01344 458188; Fax: 01344 458189 Web: http://www.morpheus.co.uk <http://www.morpheus.co.uk/> *Small Business of the Year - Royal Borough Business Excellence Awards 2004* *Rising Star Platinum Achievement Award - IBM Software 2003* *Accredited Investors In People* **************************************************************************** This email and any files transmitted with it contain information that may be confidential or privileged, and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient any disclosure, copying, distribution or use of the information is prohibited. If you have received this email in error, please notify me by return email immediately. Any opinions expressed are those of the author, not of Morpheus Limited. This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre. ****************************************************************************