--- 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:
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
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()
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]
.
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
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! :)
--- 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
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
, 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
*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
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
--- 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
;
}
}
]] /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
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}/
, 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
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
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:
=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
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
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
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
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
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},
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
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
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
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
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
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
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
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
---
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,
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
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?
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
--- 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.
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
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
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
--
--- 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
..
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
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.
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
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:
--- 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
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:
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
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
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
)
__
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
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
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
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
53 matches
Mail list logo