Re: Correct Task Behaviour

2007-10-18 Thread Matthew Haynes
Thanks thats great, I can cut out a fair bit iof code from some of the tasks I've made ! On 17/10/2007, Steve Loughran <[EMAIL PROTECTED]> wrote: > > Matthew Haynes wrote: > > That's great, I had made the mistake of assuming that the setSomething > > methods needed a String. > > > > Does resolve o

Re: Correct Task Behaviour

2007-10-17 Thread Steve Loughran
Matthew Haynes wrote: That's great, I had made the mistake of assuming that the setSomething methods needed a String. Does resolve other common types, DateFomat, int, etc ? Try them and see. The general rule is -anything that takes a string constructor will be constructed before being added

Re: Correct Task Behaviour

2007-10-16 Thread Matthew Haynes
That's great, I had made the mistake of assuming that the setSomething methods needed a String. Does resolve other common types, DateFomat, int, etc ? On 16/10/2007, Dominique Devienne <[EMAIL PROTECTED]> wrote: > > On 10/16/07, Matthew Haynes <[EMAIL PROTECTED]> wrote: > > I think my problem cam

Re: Correct Task Behaviour

2007-10-16 Thread Matthew Haynes
Thanks! On 16/10/2007, Steve Loughran <[EMAIL PROTECTED]> wrote: > > Matthew Haynes wrote: > > Thanks for the responses. > > > > I think my problem came from accepting the file attribute as a String > and > > then converting it to a file in my code. I guess if I do something like > the > > below I

Re: Correct Task Behaviour

2007-10-16 Thread Dominique Devienne
On 10/16/07, Matthew Haynes <[EMAIL PROTECTED]> wrote: > I think my problem came from accepting the file attribute as a String and > then converting it to a file in my code. Yep. If you take a File, Ant does the resolution indeed, using it's own rule, which is relative to basedir, as others have i

Re: Correct Task Behaviour

2007-10-16 Thread Steve Loughran
Matthew Haynes wrote: Thanks for the responses. I think my problem came from accepting the file attribute as a String and then converting it to a file in my code. I guess if I do something like the below I shall get the correct behaviour. public void setSrcFile(File srcFile) { .. } that

Re: Correct Task Behaviour

2007-10-16 Thread Matthew Haynes
Thanks for the responses. I think my problem came from accepting the file attribute as a String and then converting it to a file in my code. I guess if I do something like the below I shall get the correct behaviour. public void setSrcFile(File srcFile) { .. } Cheers, Matt On 16/10/200

Re: Correct Task Behaviour

2007-10-16 Thread Steve Loughran
Matthew Haynes wrote: Hello, I am the developer of a small ant task http://code.google.com/p/jsmin-ant-task/. The task takes file paths as attributes and a recent bug / feature request has posed a question. When using a build file located outside of the current working directory how should rela