I have noted that JavaScript files that contain lots of comments take longer
(and more bandwidth) to fetch from the web server to the client's browser
session. By stripping out the comments at build time the files will load
quicker and increase the speed of rendering. Can any one let me know the wa
Worked wonderfully, thanks!
On Jun 2, 2011, at 3:37 PM, Vimil Saju wrote:
> You could also use the trycatch task from antcontrib. the try task has a
> catch block that executes when any of the tasks within the try block fails.
>
> --- On Thu, 6/2/11, Eric Fetzer wrote:
>
> From: Eric Fetze
That seems a whole lot easier, thanks! I'll give that a shot. That way I can
use the task and allow the args to just be inherited...
From: Vimil Saju
To: Ant Users List
Sent: Thu, June 2, 2011 1:37:26 PM
Subject: Re: Do things based on project success or f
You could also use the trycatch task from antcontrib. the try task has a catch
block that executes when any of the tasks within the try block fails.
--- On Thu, 6/2/11, Eric Fetzer wrote:
From: Eric Fetzer
Subject: Re: Do things based on project success or failure
To: "Ant Users List"
Date: T
No problem Rob! The way I posted works great, I was just wondering if there
was
a more graceful way to do it. I think I can get the properties to pass as well
with the echoproperties task... Thanks!
From: "Echlin, Robert"
To: Ant Users List
Sent: Thu, Ju
Hi Eric,
I didn't get that ant was failing out on you. Sorry.
I will check on that.
Rob
> -Original Message-
> From: Eric Fetzer [mailto:elstonk...@yahoo.com]
> Sent: Thursday, June 02, 2011 2:22 PM
> To: Ant Users List
> Subject: Re: Do things based on project success or failure
>
> T
Not sure what you're answering here Robert. Are you saying inside the exists
target, call the other build file with subant and if it succeeds it will go to
do.true or do.false?
Thanks,
Eric
From: "Echlin, Robert"
To: Ant Users List
Sent: Thu, June 2, 2011
Thanks Robert, I've already got the db stuff working using jdbc and . Of
course with a mysql database, it didn't work until I added perms for the user
from the IP that I'm talking to it on:
grant all on dbname.* to 'username'@'ip.addy' identified by 'userpassword';
I don't see, however, how an
Hi Eric,
(code below)
Try the "depends with if/unless" pattern.
Note the "if" and "unless" parameters on the do.true and do.false targets.
"condition" sets a variable depending on something - in this case where a file
exists or not.
The "top" level target does nothing except make sure other thin
Hi Eric,
Look up "subant" and "antcall" for a start. They are in "core tasks".
If you put both tasks in the same xml file, you will use "antcall".
Also, for your DB operation, look up "sql" task, which uses JDBC.
Rob
--
Rob Echlin, Documentation Systems Architect, Wind River
direct: +1.613.270.5
Of course this presents me another issue. How do I gather up all of the
command
line arguments that were passed to me so that I can re-pass them to the next
ant
script. Is there a way to say: ?
Thanks,
Eric
From: Eric Fetzer
To: Ant Users
Sent: Thu, Ju
I have to update a database one way or another based on project success or
failure. So I'm messing around with the task with errorproperty
attribute. I'm trying to make it so that failure will test one way vs. success
testing another. The best thing I can come up with is the following:
<---
my build.xml file in local
when i run the ant, the remote call is made to the remote server and target
is executed on the remote box, but i get a java.io.EOFException with BUILD
FAILED message on my local
java.io.EOFException
at
java.io.ObjectInputStream$BlockDataInputStrea
13 matches
Mail list logo