Re: FileSet with copy fails with NPE..

2008-12-15 Thread Stefan Bodewig
On 2008-12-15, Raja Nagendra Kumar wrote: > I am getting to feel that, I did not explain the senario correctly.. Let me > try again to support why I feel it is obvious. It is obvious to me as well. > As DeepCopy is used with in the build xml file, could ant consider all the > copy or any other

Re: FileSet with copy fails with NPE..

2008-12-15 Thread Raja Nagendra Kumar
that you've already been told multiple times what the problem is and > pointed to the documentation that explains how all of this works. > -- View this message in context: http://www.nabble.com/FileSet-with-copy-fails-with-NPE..-tp20935877p21015811.html Sent from the Ant - Dev maili

Re: FileSet with copy fails with NPE..

2008-12-15 Thread Jeffrey E Care
Raja Nagendra Kumar wrote on 12/15/2008 08:40:48 AM: > patterns="${deviceID}.*,*.xml,vendor.*, global.*"> > > This is very simple: Ant is creating DeepCopy & that's it. Since Ant is creating DeepCopy as a result of parsing a project file (i.e. build.xml) it wi

Re: FileSet with copy fails with NPE..

2008-12-15 Thread Raja Nagendra Kumar
t see who should recognize this build file context if not > your very own code. > > Stefan > > - > To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org > For additional commands, e-mail: dev-h...@ant.apache.org > > > -- View this message in context

Re: FileSet with copy fails with NPE..

2008-12-14 Thread Stefan Bodewig
On 2008-12-12, Raja Nagendra Kumar wrote: > However Stefan, not able to convince on why this can't be done > automatically, as it is so obvious that new Copy Object is created while > wring the cutom tag extentions to ant. How is this obvious? Your code is creating the instance of the Copy cla

Re: FileSet with copy fails with NPE..

2008-12-12 Thread Raja Nagendra Kumar
n >> this could be automatically inherited due to ant extention. > > I think this discussion has crossed the line into "titlting at windmills" > territory... > -- View this message in context: http://www.nabble.com/FileSet-with-copy-fails-with-NPE..-tp20935877p20978212.html S

Re: FileSet with copy fails with NPE..

2008-12-12 Thread Jeffrey E Care
Raja Nagendra Kumar wrote on 12/12/2008 09:00:57 AM: > Still not clear, why should the custom task developer know these, when > this could be automatically inherited due to ant extention. I think this discussion has crossed the line into "titlting at windmills" territory...

Re: FileSet with copy fails with NPE..

2008-12-12 Thread Raja Nagendra Kumar
without needing > the users to know about sequence of api calls before he could actually do > his work. > > I would love see safe assumption on this .. however I welcome any > convencing explanation. > > Regards, > Nagendra > > ---------

Re: FileSet with copy fails with NPE..

2008-12-12 Thread Steve Loughran
Raja Nagendra Kumar wrote: Pl. find the fix for the same in ProjectComponent We are defining a GOBAL_DEFAULT_PROJECT which would be same as the first non null setProject call parameter. getProject() value on any tag if null, the non null GOBAL_DEFAULT_PROJECT value is assumed with debug log mes

Re: FileSet with copy fails with NPE..

2008-12-11 Thread Raja Nagendra Kumar
--- > To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org > For additional commands, e-mail: dev-h...@ant.apache.org > > > -- View this message in context: http://www.nabble.com/FileSet-with-copy-fails-with-NPE..-tp20935877p20970202.html Sent from the Ant - Dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org

Re: FileSet with copy fails with NPE..

2008-12-11 Thread Stefan Bodewig
On 2008-12-11, Raja Nagendra Kumar wrote: > Based on lifecycle link you provided I see that there is a mention > of >> The task gets references to its project and location inside the >> buildfile via its inherited project and location variables. > In such cases, why should the user initialise t

Re: FileSet with copy fails with NPE..

2008-12-11 Thread Raja Nagendra Kumar
I understand initialisation is very impl. however if this could come free from parent.. then it is better..so trying to make the fix in those lines.. -- View this message in context: http://www.nabble.com/FileSet-with-copy-fails-with-NPE..-tp20935877p20951392.html Sent from the Ant - Dev

Re: FileSet with copy fails with NPE..

2008-12-11 Thread Raja Nagendra Kumar
--- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/FileSet-with-copy-fails-with-NPE..-tp20935877p20951371.html Sent from the Ant - Dev mailing list archive at Nabble

Re: FileSet with copy fails with NPE..

2008-12-11 Thread Stefan Bodewig
On 2008-12-11, Raja Nagendra Kumar <[EMAIL PROTECTED]> wrote: > Pl. find the fix for the same in ProjectComponent > We are defining a GOBAL_DEFAULT_PROJECT which would be same as the first non > null setProject call parameter. That would be a pretty bad idea, in particular in the presence of ta

Re: FileSet with copy fails with NPE..

2008-12-10 Thread Raja Nagendra Kumar
point me to the location of where custome tags creating is junit tested in the ant sources pl. Regards, Raja Nagendra Kumar, C.T.O www.tejasoft.com -A Competent Java Product Development Team -- View this message in context: http://www.nabble.com/FileSet-with-copy-fails-with-NPE..-tp20935

Re: FileSet with copy fails with NPE..

2008-12-10 Thread Mark Salter
The thread I pointed you to also includes detail of how using the ant classes outside of their intended environment holds risks. Adding the checks you mention may save another person having to discover the solution to the same 'problem' in the future. Perhaps you could consider building a patch to

Re: FileSet with copy fails with NPE..

2008-12-10 Thread Raja Nagendra Kumar
message in context: http://www.nabble.com/FileSet-with-copy-fails-with-NPE..-tp20935877p20936814.html Sent from the Ant - Dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: FileSet with copy fails with NPE..

2008-12-10 Thread Mark Salter
Raja Nagendra Kumar wrote: > Hi, > > We are writing ant task, which needs to copy files based on fileset > defination like this.. This is really a question for the user mailing list... On that list was a recent discussion about probably the same problem... "Using Ant Tasks programmatically - Si

FileSet with copy fails with NPE..

2008-12-10 Thread Raja Nagendra Kumar
Cp] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [C2SCp] at java.lang.reflect.Method.invoke(Method.java:623) -- View this message in context: http://www.nabble.com/FileSet-with-copy-fails-with-NPE..-tp20935877p20935877.html Sent from the Ant - Dev mailing list