Re: ExecOn issue

2001-06-12 Thread Don Taylor
--- Stefan Bodewig [EMAIL PROTECTED] wrote: David Nesbitt [EMAIL PROTECTED] wrote: Essentially, I am trying to cascade the target to build.xml in the next level subdirectory. However, I get an IOException in CreateProcess. Here is a snippet from the top level build file:

Task to obtain user input

2001-06-19 Thread Don Taylor
I've been looking for an Ant task to obtain user input, unfortunately I haven't found one. I see it's a requested feature, and even appears on the Ant2 requested features list. So I had to write one myself. You can use the attached jar as-is. You'll find it contains all the appropriate class

Re: Embedding ANT into a project...

2001-06-20 Thread Don Taylor
Depends on what you mean by embedding. In my application I've embedded Ant as follows: 1.) Copy org.apache.tools.ant.Main.java into your project. RENAME THIS CLASS. 2.) Make runBuild() have either public or package access, depending on what you need. 3.) Comment-out project.fireBuildStarted()

Re: Command line input.

2001-06-26 Thread Don Taylor
Does it have to be from the command line or are you willing to tolerate pop-up dialog boxes asking for input? You also must be willing to add a custom task to ant. If you're up to it then I've created a task that will do it. Just let me know and I'll post it. --- Praveen.C [EMAIL PROTECTED]

Re: Command line input.

2001-06-26 Thread Don Taylor
. Thanks. Regards, Praveen.C - Original Message - From: Don Taylor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 7:20 PM Subject: Re: Command line input. Does it have to be from the command line or are you willing to tolerate pop-up dialog boxes

RE: Properties not set properly after antcall

2001-06-27 Thread Don Taylor
In general, your workaround is standard operating procedure. However, someday you may find that you *really* do need to make an antcall and that you *really* need to propagate the the properties from the caller to the callee. Stefan says this is impossible, I claim he isn't devious enough! :)

Re: Retry task on Error

2001-06-27 Thread Don Taylor
--- O'Hara, Patrick [EMAIL PROTECTED] wrote: Is there a way to retry a task when it errors out? I have a FTP task. The server we are connecting to is a little hit and miss. I would like to retry the FTP task if it fails to send all the files. I'm assuming you can already figure out if

Re: Retry task on Error (correction)

2001-06-27 Thread Don Taylor
Oops! Target 'ftpSecond' should read as follows: target name=ftpSecond depends=checkFTPfailure if=ftp.failed FTP .../ /target You want to change 'unless' to 'if'! *BIG* difference! :) - Don --- Don Taylor [EMAIL PROTECTED] wrote: --- O'Hara, Patrick [EMAIL PROTECTED] wrote

RE: Retry task on Error

2001-06-27 Thread Don Taylor
, since you haven't even attempted an FTP yet that *certainly* should be a failure! :) - Don --- O'Hara, Patrick [EMAIL PROTECTED] wrote: Yes I was hoping for a loop until successful. Patrick O'Hara 262-408-3849 [EMAIL PROTECTED] -Original Message- From: Don Taylor [mailto

RE: Retry task on Error

2001-06-27 Thread Don Taylor
*always* use more coffee! :-) --- Diane Holt [EMAIL PROTECTED] wrote: --- Don Taylor [EMAIL PROTECTED] wrote: Ok. Actually it just requires a small modification: target name=checkFTPfailure !-- Do whatever to determine FTP failure. (Using 'uptodate' task?) If FTP has

Re: output from compile.

2001-06-27 Thread Don Taylor
Yeah, just specifiy -logfile your log file name -verbose on the Ant command line. - don --- David Roe [EMAIL PROTECTED] wrote: HI, Recently I thought there was some discussion around redirecting output into a file from a verbose compilation via Ant. Could someone help me out in that

RE: Retry task on Error

2001-06-27 Thread Don Taylor
--- Don Taylor [EMAIL PROTECTED] wrote: Ok. Actually it just requires a small modification: target name=checkFTPfailure !-- Do whatever to determine FTP failure. (Using 'uptodate' task?) If FTP has succeeded, set a property. -- property name=ftp.ok value=true

RE: Retry task on Error

2001-06-28 Thread Don Taylor
; } } ]] /script /target target name=main description=Do the business antcall target=rptonfail/ /target /project But for some reason I can't catch the BuildException -Original Message- From: Don Taylor [mailto:[EMAIL PROTECTED

Re: Variables in task ?

2001-06-28 Thread Don Taylor
Sure. Just do an antcall. target name=Recopie des images copy todir=${codes}/${paquetage}/${images} fileset dir=${sources}/${paquetage}/${images}/ /copy /target target name=Recopie toutes des images antcall target=Recopie des images param name=paquetage value=${paquetage1}/

RE: Retry task on Error

2001-06-28 Thread Don Taylor
, that is the problem. As the exception seems to be the only way to determine success/failure of a target. It would be nice if there was a targetOK() method or some such but there does not appear to be. -Original Message- From: Don Taylor [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 28, 2001 1

Re: depends vs. antcall

2001-06-28 Thread Don Taylor
You can pass parameters with antcall, you can't with depends. Tasks called by antcall also won't pollute your properties, i.e. your property definitions are available to the called task, but none of the definitions defined in that task are available to the calling task. Antcall *does* have a

Re: Nested properties/parameters

2001-06-29 Thread Don Taylor
You can't nest properties like this, but is that what you want to do? Seems to me you want something like: property name=result value=${site_name}.deployment.dir/ And then you could have a properties file that defines all the deployment directories for each site you're using:

RE: Nested properties/parameters

2001-06-29 Thread Don Taylor
=html/. Hope this helps. -Original Message- From: Don Taylor [mailto:[EMAIL PROTECTED]] Sent: Friday, June 29, 2001 1:32 PM To: [EMAIL PROTECTED] Subject: Re: Nested properties/parameters You can't nest properties like this, but is that what you want to do? Seems to me you want

Re: If-statements in ant

2001-07-03 Thread Don Taylor
No, you can't use if-statements like that. To accomplish what you want, try this instead: target name=isAvailable available file=config.xml property=config.xml.available/ /target target name=copy depends=isAvailable unless=config.xml.available copy file=config_template.xml

Re: Using Ant for Installation

2001-07-05 Thread Don Taylor
Depends on how complex of an install you need. If you're essentially just copying files, then ant is perfect for the job. If you need something more involved, such as setting up program groups and shortcuts on Windows or getting JREs distributed and installed, then ant is no longer the

Re: a few basic questions...

2001-07-10 Thread Don Taylor
Only to check if a property exists. Your tags are fine, they'll make those if attributes readable! --- Benjamin Russell Stocum [EMAIL PROTECTED] wrote: In the Target tag, does the if attribute allow you to have a logic expression, or does it just allow one to check to see if a property

Re: a few basic questions...

2001-07-11 Thread Don Taylor
set of the clear case tools, so making a unique entry would be required...? just throwing around some ideas... Thanks again, -Ben Don Taylor wrote: Only to check if a property exists. Your tags are fine, they'll make those if attributes readable! --- Benjamin Russell Stocum

uptodate task not setting property properly

2001-07-11 Thread Don Taylor
Hi all. Here's a task I'm executing: target name=checkForUpdates if=server.update.available uptodate property=updates.notAvailable mapper type=glob from=* to=${parentdir}/*/ srcfiles dir=${server.update}/ /uptodate /target What I'm trying to do is contact a server, ${server.update},

Re: uptodate task not setting property properly

2001-07-12 Thread Don Taylor
4137636. He's reporting the same behavior on an SGI system. --- Don Taylor [EMAIL PROTECTED] wrote: Hi all. Here's a task I'm executing: target name=checkForUpdates if=server.update.available uptodate property=updates.notAvailable mapper type=glob from=* to=${parentdir}/*/ srcfiles dir

Re: newbie unclear on concept

2001-07-13 Thread Don Taylor
This is a known problem with the copy task. Your thinking is correct, the two bad targets *should* have failed. --- Michael Weir (Transform Research) [EMAIL PROTECTED] wrote: I'm new to Ant and am apparently unclear about a few things (only a few...). If I have a build.xml file that looks

Re: Problems using the Javadoc Task: help needed

2001-07-16 Thread Don Taylor
I believe when the 'sourcepath' is an attribute you can only specify one path. To specify multiple paths you must make 'sourcepath' a nested element: javadoc sourcepath pathelement path=src/ fileset dir=src/User include name=*.java/ /fileset fileset dir=src/Validator

Re: Missing jar file for xalan

2001-07-16 Thread Don Taylor
Try using the optional.jar. It's a separate download at Ant's download site. -- Don --- Kev K [EMAIL PROTECTED] wrote: I'm trying to run this code belowand I'm getting the following error: BUILD FAILED C:\Testing\ANT\autoBuild.xml:18: java.lang.ClassNotFoundException: org.apache.to

Re: Getting Ant to tell me the out of date files

2001-07-19 Thread Don Taylor
I believe if you run ant with the -verbose option you'll see what files are being compiled. The only problem is you'll probably see a lot more other stuff than you really care to. -- Don --- Norman Klein [EMAIL PROTECTED] wrote: Sorry, I have just today started using ant, so this is a real

Re: Question concerning screen output for javac

2001-07-23 Thread Don Taylor
Run Ant with the -verbose option to get these details. I advise logging the results. -- Don --- Scott Goldstein [EMAIL PROTECTED] wrote: Hello. I'm new to Ant and I have a question concerning the output of the javac task. I'm using .javac to build .java files in a directory tree. I'd

Re: javac, depend, and interface constants

2001-07-23 Thread Don Taylor
My understanding is this is expected behavior. At runtime no reference is ever made to the interface class because the constants have been compiled-in so to speak. :( -- Don --- Larry V. Streepy, Jr. [EMAIL PROTECTED] wrote: All, I know this is question is more general than just ant, but it

Re: cannot chain two consecutive ant calls inside a batch file

2001-07-24 Thread Don Taylor
Try the 'call' command: call ant -buildfile aaa.xml dir *.log call ant -buildfile bbb.xml The problem is you're 'ant' is actually 'ant.bat', and when that batch file terminates your console is terminated. By default batch files are chained. The 'call' command stops that chaining. -- Don ---

Re: [antlist] modifying a property value

2001-07-27 Thread Don Taylor
Not possible using off-the-shelf parts. Several posts have been made where people have creatd a property task that allows a property to be overwritten. Check the archives. -- Don --- T Master [EMAIL PROTECTED] wrote: Apologies if this has been brought up before I have a property,

Re: [antlist] modifying a property value

2001-07-27 Thread Don Taylor
Because I keep forgetting about antcall! ;) --- Larry V. Streepy, Jr. [EMAIL PROTECTED] wrote: Why not just use antcall and use the param element to specify the new value? Don Taylor wrote: Not possible using off-the-shelf parts. Several posts have been made where people have creatd

Re: Using Ant with SSH

2001-07-27 Thread Don Taylor
This task works great as long as you're not logging. That's why I've created a Swing-based task to handle getting input. If anyone's interested, let me know and I'll send it to you. -- Don --- Matthew Inger [EMAIL PROTECTED] wrote: why not? what's wrong with prompting the user for input?

Re: Compile question--Class not found

2001-08-02 Thread Don Taylor
I don't understand what you're trying to accomplish with step 2. ant/lib is where you put your own ant tasks or the optional ant tasks. In any case, it's all ant-related. To solve your problem try compiling package B first and produce the jar file (b-jar). Then when compiling package A make

Re: if and depends in a target

2001-08-08 Thread Don Taylor
--- Kai Bartels [EMAIL PROTECTED] wrote: Hi *! I just learned by try and error that the tags if and depends in a target don't cooperate the way I expected. I expected that, when a target is nor executed because of some if or unless clause, all dpenedend targets won't be executed, either.

Re: What properties are available

2001-08-09 Thread Don Taylor
What do you mean by I have found that the environment is not available on Win2K. What exactly does environment refer to? What are you trying to do? -- Don --- O'Hara, Patrick [EMAIL PROTECTED] wrote: I have a build script that I have been using on Windows NT. It uses the environment to get

Re: ftp task

2001-08-14 Thread Don Taylor
a DNS Server error that page cannot be displayed. I dunno know what's going on -Rabia. - Original Message - From: Don Taylor [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Rabia Malik [EMAIL PROTECTED] Sent: Tuesday, August 14, 2001 12:17 PM Subject: Re: ftp task I used the FTP

Re: Finding Deprecated methods?

2001-08-20 Thread Don Taylor
Set the deprecation attribute of the javac task to on. -- Don --- Michael Molloy [EMAIL PROTECTED] wrote: I'm getting a deprecation warning from javac when I use ant to compile a project. How do I pass the -deprecation flag to ant? Thanks --Michael --

Re: User property overridden in nested ant scripts

2001-08-22 Thread Don Taylor
--- Will Dyke [EMAIL PROTECTED] wrote: I wish to use a command line property occasionally, to override that set in a 'wrapper' script, that in turn calls the main script. However, the property set in the wrapper script appears to override that set on the command line once the main

Re: Making Jumps or doing Loops!!

2001-08-23 Thread Don Taylor
.. counter... The value is whatever. -- Don property name=${counter}. value=whatever / or how do I increment in one the variable value of my counter? Thanks again VES --- Don Taylor [EMAIL PROTECTED] wrote: --- Edgar Sánchez [EMAIL PROTECTED] wrote: Hi everyone is Vincent

Re: CreateProcess error while executing exec task

2001-09-07 Thread Don Taylor
You can't execute a batch file. You have to execute cmd.exe and specify the batch file you want to run as an argument to cmd.exe. -- Don --- geeta eknath dhane [EMAIL PROTECTED] wrote: Hi, IOException is raised when exec task of ant is runned Could anybody tell me the reason behind it.

Re: Save ant build output to file(s)

2001-09-12 Thread Don Taylor
You have to create your own build listener and specify it on the command line using the -listener option. Check out the BuildListener interface. --- Daniel Xia [EMAIL PROTECTED] wrote: I want to save the ant output to a file after running the ant. I know I can use -logfile logfilename, but

RE: using ant in the deploy process

2001-09-19 Thread Don Taylor
Or even the humble copy task? That's how I deploy to multiple servers! :) -- Don --- Jason Rogers [EMAIL PROTECTED] wrote: Would the FTP task not meet your needs? -Original Message- From: Anthony Rodriguez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 18, 2001 2:57 PM To:

Re: property

2001-09-27 Thread Don Taylor
--- Tarun Garg [EMAIL PROTECTED] wrote: I have a big project with many subprojects in it. I've written a build.xml for each subproject and one build.xml for the main project. A lot of these subprojects are dependent on each other. Lets say I have subprojects A,B,C,D,E and F. A is

Re: javac-tag is not ignored by ant

2001-10-22 Thread Don Taylor
try include name=mySession.java/ include name=mySessionBean.java/ include name=mySessionHome.java/ in your javac task. I believe the include names are relative to the source directory. -- don --- Daniel Wotziak [EMAIL PROTECTED] wrote: Hello, I have written the following ant-script:

How to dynamically modify Ant's classpath

2001-10-26 Thread Don Taylor
I have an application launcher that runs an Ant script that ultimately runs my application. I'm running Ant directly, i.e. org.apache.tools.ant.Main. Now I need to add java scripting to my Ant task, which requires bsf.jar and js.jar. The problem is my application launcher doesn't include these

Re: Simple question?

2001-11-02 Thread Don Taylor
What sounds even better is to have a manifest element that you could specify for the jar task. Then in it you can put manifest entry elements as name/value pairs. Does anyone have any interest in anything like this? -- Don --- T Master [EMAIL PROTECTED] wrote: Sounds plausible. However, a

Re: class.forName()

2001-11-19 Thread Don Taylor
these libraries into your classpath. Works like a charm because now Ant's classloader, the one being used to load the custom task, knows how to find the supporting tasks. = Don Taylor, Developer ACTS, Inc. www.actsi.com __ Do You Yahoo!? Find the one for you

Re: Special characters in manual?

2001-11-19 Thread Don Taylor
) __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = Don Taylor, Developer ACTS, Inc. http://www.actsi.com

Re: setting / amending CLASSPATH in script

2001-11-19 Thread Don Taylor
the target and on it's own but I think I'm on the wrong track there aswell. I'm using ANT 1.4 on Win2K. Any help / info greatly appreciated, Kevin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = Don Taylor, Developer ACTS

RE: Trimming unnecessary classes from jars

2001-11-27 Thread Don Taylor
You just did! :) --- Clement, Jean-Philippe [EMAIL PROTECTED] wrote: Hi, I'm new in this distribution list...could you help me ? How do I send a message to the distribution list ? Thanks. JP -Original Message- From: Don Taylor [mailto:[EMAIL PROTECTED]] Sent: Tuesday 27

Re: [POLL] property immutability hacks

2001-11-29 Thread Don Taylor
up Ant's property handling architecture and I'd like to get a feel for how widespread this unorthodox usage is. Thanks, Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = Don Taylor, Developer ACTS, Inc