Re: Task adapter

2006-05-16 Thread Mikhail Fedotov
Steve Loughran wrote: or you cp -r to some intermediate place, strip out the junk you dont want then do another cp -r of the stuff you like. Nasty, but roughly what I do with some of my deployments where I want almost but not everything on the classpath to get redistributed. Rather than decla

Re: Task adapter

2006-05-16 Thread Mikhail Fedotov
Steve Loughran wrote: I need an alternative to standard copy task . The standard one does not preserve permissions on unix systems, can not be told to create hardlinks if possible instead of copying, etc etc, and I need all that. I'm planning to get standard copy task and modify it to produce s

Re: Task adapter

2006-05-16 Thread Mikhail Fedotov
Steve Loughran wrote: The alternative is creating and binding by hand: MyTask task=new MyTask(); task.setProject(getProject()); task.setName(getName()); task.setLocation(getLocation()); task.init(); This is how everything in Ant1.7 does it, though there we cheated add added Task.bindToOwner(Ta

Task adapter

2006-05-16 Thread Mikhail Fedotov
Hi all, I have two existing tasks. I want to modify the first task so that it runs the second one as part of its work. I have code which creates ant build file with parameters for the second task and then uses new instance of AntScenario to run that file. The question is, can I do the same t