[script]masking dotted ant properties ?

2006-11-29 Thread Rebhan, Gilbert
Hi, i use jruby with the task in ant. jruby 0.9.1 / ant 1.6.5 / jdk 1.4.2_05 works fine, but i have problems, when it comes to dotted properties. example =

Changing Date format

2006-11-29 Thread Pritesh Saharey
Dear All, I had a file named "data", which contains the date of an indefinite number in the format year/month/day; The Data file looks like this: Data - 1864/06/22 1854/04/29 1823/12/07 : : : I want to change the format of this date so that the new "datachnage" file will look somet

RE: How to pass property?

2006-11-29 Thread Anderson, Rob (Global Trade)
The property you should set on the command line is do.delete not validargs. Run ant like this... ant target -Ddo.delete=y That should prevent the input task from prompting you. -Rob Anderson > -Original Message- > From: Res Pons [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 29

How to pass property?

2006-11-29 Thread Res Pons
hi I'm hoping someone could help with this. I've tried everything else and can't pass the argument to the input task at the dos prompt or run time. Eventually, i need to add it to Anthill. thanks for your help c:\>ant target -Dvalidargs=y it does not work and I still get a prompt to input

Re: AntForm question

2006-11-29 Thread Patrick Martin
Hello, Antform 2.0 beta 2 just got released. Patrick Changes from 2.0 beta 1 to 2.0 beta 2 Changes that could break older environments: - Empty form do not display any more by default. The previous behaviour can be obtained by setting the new antform/antmenu attribute showwhenempty. Fixed b

Tstamp & co - setting a property with value = milliseconds since 1970

2006-11-29 Thread Numain
Hi I've looked at the tstamp ant task, but it does not seem to answer my need. I'd like to set a property with the milliseconds since 1970 (the long value of new Date().getTime()). The Millisecond format does'nt help me since it only sets the millisecond fraction of the current second.

RE: AntForm question

2006-11-29 Thread Hans Schwaebli
Yes, would be good. Ant scripts must run without interruption if called programmatically, for example from a nightly build with Cruise Control. Then there is noone there to push the ok button. Patrick Martin <[EMAIL PROTECTED]> wrote: Hello, The thing is that antform is meant to be different

RE: Ant-WebLogic problem

2006-11-29 Thread Anderson, Rob (Global Trade)
The wlserver task is provided by BEA. I'm sure there are folk on this list willing and able to help, but you best option is probably to contact BEA for support. -Rob A > -Original Message- > From: Pieter Temmerman [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 29, 2006 8:57 AM >

Ant-WebLogic problem

2006-11-29 Thread Pieter Temmerman
Hi Guys, Please excuse me if this is not the proper mailing list to post my message: I am trying to connect to my WebLogic 9.2 server through Ant. This is my build.xml snippet: (wlserver is a weblogic ant task) When I run Ant with this build.xml file I get BUILD SUCCESSFUL as a result,

Re: where is wsdl2Java?

2006-11-29 Thread James Abley
OK, that looks like the CLI version, rather than the ANT task. Any other candidates in the Axis2 distro? Martin Gainty wrote: Hi Scott- I copied $AXIS2_HOME/lib/axis-codegen-1.0.jar (size 189.558) to %ANT_HOME/lib and ran the samples.xbeans build.xml compile task first I editted the build.xm

Re: where is wsdl2Java?

2006-11-29 Thread Steve Loughran
Martin Gainty wrote: Hi Scott- I copied $AXIS2_HOME/lib/axis-codegen-1.0.jar (size 189.558) to %ANT_HOME/lib and ran the samples.xbeans build.xml compile task first I editted the build.xml to include the WSDL2Java class vi build.xml cd $AXIS2_HOME/samples/xbeans compile: No publi

Re: where is wsdl2Java?

2006-11-29 Thread Martin Gainty
Hi Scott- I copied $AXIS2_HOME/lib/axis-codegen-1.0.jar (size 189.558) to %ANT_HOME/lib and ran the samples.xbeans build.xml compile task first I editted the build.xml to include the WSDL2Java class vi build.xml cd $AXIS2_HOME/samples/xbeans ant compile -Dxmlbeans.present=true Buildfi

Re: where is wsdl2Java?

2006-11-29 Thread James Abley
Part of Apache Axis, so I would expect axis-ant.jar or something similar, in Axis 1 anyway. Martin Gainty wrote: All- I am attempting to locate the jar which contains the taskdef'ed wsdl2java task? Thank You, Martin -- This e-mail communication and any attachments may contain confidential and p

Re: where is wsdl2Java?

2006-11-29 Thread Scot P. Floess
Martin: I believe you have to get a jar from the Apache Axis website... Scot Martin Gainty wrote: All- I am attempting to locate the jar which contains the taskdef'ed wsdl2java task? Thank You, Martin -- This e-mail communication and any attachments may contain confidential and privileged info

where is wsdl2Java?

2006-11-29 Thread Martin Gainty
All- I am attempting to locate the jar which contains the taskdef'ed wsdl2java task? Thank You, Martin -- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient,

RE: AntForm question

2006-11-29 Thread Patrick Martin
Hello, The thing is that antform is meant to be different from . It allows user to override default values. However, I missed the fact that you were using the unless attributes. What we may be able to do is skip the form display if no "widget" (antform sub-element) is to be displayed. Would that

[script] groovy - use existing properties ?

2006-11-29 Thread Rebhan, Gilbert
Hi, just playing with groovy. Question = How do i call an existing property, f.e. = gives me = groovy.lang.MissingPropertyException: No such property: foo for class: Script1 What's the correct syntax ?! env = groovy-1.0-JSR-06, ant 1.6.5, jdk1.4.2_0

RE: AntForm question

2006-11-29 Thread Hans Schwaebli
The thing I tried to suggest kindly is that Antform does not show any form if all properties for the form have already been set. This is the default behavior of Ant scripts comparing to Input tasks. It simply skips the Input task if the property was set. The same behavior should apply to forms i

RE: AntForm question

2006-11-29 Thread Patrick Martin
Hello, Yes, that's the way to go. Antform allows to modify properties. The fact that it shows up when the properties are set is normal. Basically, the usual steps are: 1. You set *default* values for your properties (p1 and p2 for example) 2. You open the antform. Values in the antform are the o

RE: AntForm question

2006-11-29 Thread Rebhan, Gilbert
i just had a quick look in the antform manual, you're already using the unless attributes. so no need for the extra condition the script works as it should, showing only the main screen but you're not able to declare your own recipient,subject, body as those properties are already set. my env h

Re: [help] Search a string in a file

2006-11-29 Thread Patrick Martin
Hello, You may want to have a look at antcount : http://antcount.sourceforge.net/ Cheers, Patrick On 11/28/06, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: Hi, installing JRuby = you don't have to install JRuby, means no need for setting JRUBY_HOME and stuff, but for using the

RE: AntForm question

2006-11-29 Thread Rebhan, Gilbert
Hi, use a condition to check whether those props are already set = and in the target where AntForm comes in use unless = ... so the target useAntForm is only executed if those props are not already set. Regards, Gilbert -Original Me

AntForm question

2006-11-29 Thread Hans Schwaebli
When I run this, the form is shown, although all properties are already set. If all properties are set, why does it show the form? More important? How can I teach Antform not to show the form if all properties are set? To send a mail, use t

Re: containsregex and concat

2006-11-29 Thread Brian Agnew
If your input file is XHTML, or can be transformed into XHTML (I'm sorry - not been following the thread), then you can use XMLTask and specify the XPath to the element you wish to change/insert at. http://www.oopsconsultancy.com/software/xmltask Brian On Wed, November 29, 2006 05:07, George Bil