How to Write A Custom Path / Fileset

2005-04-08 Thread Graham Lea
I want to write a custom Fileset type that reads input from a file. I don't want to support any nested elements, I just want to be able to do something like this: and have a custom class create a fileset based on the content of libraries.txt. So, I have two questions: 1. Is it possible for

The type doesn't support the nested "echo" element

2005-04-08 Thread Kenneth McKnight
An offshore user running JDK 1.4.1_02 and Ant 1.6.1 is getting this strange message: The type doesn't support the nested "echo" element Here's the snippet of code: 'makeall' produces output like this: $ makeall bmesmall Using jvm.lib at "c:\local\jdk1.4.x\lib\jvm.lib" Root di

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

Re: Ant configuration problem (tools.jar).

2005-04-08 Thread Jeffrey E Care
If all you have is the JRE (and not the JDK) then you won't have tools.jar -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere Build SWAT Team Lead WebSphere Build Tooling Lead (Project Mantis) https://w3.opensource.ibm.com/projects/mantis Graeme Shaw <[EMAIL PROTECTED]> wrote on 04/08/2005 11:01:

RE: Ant configuration problem (tools.jar).

2005-04-08 Thread Dominique Devienne
> From: Graeme Shaw [mailto:[EMAIL PROTECTED] > > I'm trying to get Ant set up so I can use it to install Apache XML-RPC. > $JAVA_HOME=/usr/lib/java/jre JAVA_HOME is supposed to point to the JDK, not the JRE. > $ANT_HOME=/usr/local/ant > > When I run 'ant' in the XML-RPC directory I get the ou

AW: Ant configuration problem (tools.jar).

2005-04-08 Thread Jan . Materne
tools.jar is part of a JDK - not included in a JRE. So your JAVA_HOME should point to a JDK. Jan > -Ursprüngliche Nachricht- > Von: Graeme Shaw [mailto:[EMAIL PROTECTED] > Gesendet am: Freitag, 8. April 2005 17:02 > An: user@ant.apache.org > Betreff: Ant configuration problem (tools.jar).

RE: Question regarding Ant custom task

2005-04-08 Thread Srikrishna_Parthasarathy
Hello Thanks for responding. Since I have i,j variable is defined outside of all methods in my method, their values are available anywhere in any method. Can you provide pseudo code or any example snippet for 2 and 3 ? I am new to ant world ? Eagerly awaiting your response to implement your

Ant configuration problem (tools.jar).

2005-04-08 Thread Graeme Shaw
I'm trying to get Ant set up so I can use it to install Apache XML-RPC. I have: $JAVA_HOME=/usr/lib/java/jre $ANT_HOME=/usr/local/ant When I run 'ant' in the XML-RPC directory I get the output I've attached at the bottom. I can't seem to find a tools.jar either in /usr/lib/java/jre/lib or in /us

RE: Classpath reference

2005-04-08 Thread Dominique Devienne
> From: Mark Harris [mailto:[EMAIL PROTECTED] > > > ^^ Oh, and you want here instead too. --DD > > - To unsu

RE: Classpath reference

2005-04-08 Thread Dominique Devienne
> From: Mark Harris [mailto:[EMAIL PROTECTED] > > ^ It's likely the pb is the leading slash, unless all your Jars are in the root dir or the drive root, which is unlikely. automatically removes non-valid filenames, so yours is correctly referenced,

Re: Classpath reference

2005-04-08 Thread Antoine Levy-Lambert
Hello Mark, try this : + - Cheers, Antoine > Hello, > > Apache Ant version 1.6.2 > > I have a problem with my Ant script. I create a classpath reference at > the start of the script, like this:

Re: Classpath reference

2005-04-08 Thread Ivan Ivanov
Hello Mark, Could try it in this way: > > > > > > > > > location="/myadditionaljar.jar"/> > > ... etc... Fore more information on reusing paths using refid see [1]. HTH Ivan [1]htt

Classpath reference

2005-04-08 Thread Mark Harris
Hello, Apache Ant version 1.6.2 I have a problem with my Ant script. I create a classpath reference at the start of the script, like this: ... but when I reference this from one of the targets in the build script (a JUnit test), it doesn't seem to be picking