AW: custom task question

2005-04-10 Thread Jan . Materne
sendet am: Freitag, 8. April 2005 21:45 > An: Matt Benson > Cc: Ant Users List > Betreff: Re: custom task question > > Thanks for your help. I figured it was much too complicated for what > I wanted to do. The shell script is for a deployment of my software > to various li

Re: custom task question

2005-04-08 Thread Greg Gimler
Thanks for your help. I figured it was much too complicated for what I wanted to do. The shell script is for a deployment of my software to various linux pcs. The software is 24x7 server software for a grid computing project. The sysadmins for those pcs are intimately familiar with unix system

Re: custom task question

2005-04-08 Thread Matt Benson
I would probably do this a different way. What is the shell script for? What about the particular java task in your build file are you trying to preserve? If you really need to do this you'd probably have an easier time extending the Java task and grabbing its command line to write your shell sc

Re: custom task question

2005-04-08 Thread Greg Gimler
I'm probably doing things incorrectly. The code snippet is... Target target = (Target)getProject().getTargets().get(fromTarget); Task[] tasks = target.getTasks(); Then I just search through the array for the one labeled "java" and that turns out to be an UnknownElement. Basically, all I want to

Re: custom task question

2005-04-08 Thread Matt Benson
What code are you executing to return an UnknownElement? -Matt --- Greg Gimler <[EMAIL PROTECTED]> wrote: > Sorry, sent that one too soon. > > Continuing... from there I'm trying to get access to > the java runtime > inside of the task specified to my custom task, > unixscriptgen. > Instead I g

Re: custom task question

2005-04-08 Thread Greg Gimler
Sorry, sent that one too soon. Continuing... from there I'm trying to get access to the java runtime inside of the task specified to my custom task, unixscriptgen. Instead I get access to an UnknownElement which I can then try and call the getTask() method on. It returns null unless I first call

custom task question

2005-04-08 Thread Greg Gimler
Hello, I'm trying to generate a unix shell script from an ant task. The ant task is just a simple java execution and I want to generate the unix shell script for deployment purposes. Is there a way to do this easily? I've tried to write a custom task and I'm having a difficult time getting all