Re: Ant Target timing

2008-04-08 Thread Eugene Kirpichov
Hi, You can try out my ant profiler, antro: http://sourceforge.net/projects/antro . 2008/4/9, Tom Henricksen <[EMAIL PROTECTED]>: > > Is it possible for ant to give timings for each target? I get the total > time when it completes, just wondering if I can time for each target executed. > > Th

RE: Ant Target timing

2008-04-08 Thread Moore, Kent
Confirm the inclusion of ant-contrib.jar in the classpath, and pass a listener parameter to the build command: http://ant-contrib.sourceforge.net/tasks/tasks/performance_monitor.html SKent x8014 From: Tom Henricksen [mailto:[EMAIL PROTECTED] Sent: Tue 4/8/2

exec task

2008-04-08 Thread Shawn Castrianni
Oh yeah, and it would be nice if one exec task could continue a previous exec task environment. So if one exec task calls a batch file that sets some env variables or something, the next exec task could have an option to continue the environment setup by the previous exec task and execute somet

exec task improvements

2008-04-08 Thread Shawn Castrianni
Does anyone know of any improvements to the exec task coming? Or perhaps a different task that has more functionality? 1. I need the ability to have conditional statements inside to control the arg's and/or env's 2. I need the ability to load environment variables into the exec ta

Re: Ant Target timing

2008-04-08 Thread Dale Anson
You can use the Performance Monitor from either ant-contrib or antelope. See docs at: antelope: http://antelope.tigris.org/nonav/docs/manual/bk03ch27.html ant-contrib: http://ant-contrib.sourceforge.net/tasks/tasks/index.html Dale Tom Henricksen wrote: Is it possible for ant to give timing

Ant Target timing

2008-04-08 Thread Tom Henricksen
Is it possible for ant to give timings for each target? I get the total time when it completes, just wondering if I can time for each target executed. Thanks, Tom

RE: Problem with setting JAVA_HOME for Ant

2008-04-08 Thread Eric Chamberlain
Never mind. I figured it out. I need JAVA_HOME to point to the jdk directory, not to the bin directory beneath it. When I do that, everything works. Sorry for the bother. == Eric == -Original Message- From: Eric Chamberlain [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 3:

RE: Problem with setting JAVA_HOME for Ant

2008-04-08 Thread Eric Chamberlain
I had already done that. I have JAVA_HOME defined correctly defined as a user-level. I can see that JAVA_HOME is defined and defined correctly in the command prompt window in which I run ant.I just cannot get Ant to use it. Arrgh! If it helps, this is what Ant says: c:\\nbproject\bui

xslt uses

2008-04-08 Thread Z W
Hi I have multiple jtl files to process. Each jtl resides in a different directory eg ci.jtl in \\foo\lg\CI\040420082220 ci.jtl in \\foo\lg\CI\040320082220 om.jtl in \\foo\lg\OA\040320082220 om.jtl in \\foo\lg\OA\040420082220 etc... I like to process them with task and put them in a single html

Re: Problem with setting JAVA_HOME for Ant

2008-04-08 Thread David Brown
Hello, I have found the best thing to do with Windows is define JAVA_HOME in: My Computer/System Properties dialog. Click the Advance Tab Pane and click the button: Environment Variables. Don't do this as Administrator but just as the user you are when you are running Ant at the command-line. HT

Problem with setting JAVA_HOME for Ant

2008-04-08 Thread Eric Chamberlain
I have a real mystery and cannot find the solution anywhere I have looked (including the Ant FAQ). Summary: When I run Ant, it looks somewhere other than JAVA_HOME for the java directory. I am running Ant on Windows XP to execute a NetBeans-generated build.xml. One step I have tried has been t

Custom Selectors

2008-04-08 Thread Patrick Aikens
I'm trying to write a custom selector. It works fine, except that isSelected is never called. This is using 1.6.5, with the .jar for the selector in ant's lib directory and the jar contains an antlib.xml. Here's the pared down version. Yes, isSelected is set to throw an exception if it's ever ca

Re: How to insert properties into a file?

2008-04-08 Thread coltsith
Thanks for responding! Is there a way to provide more than one file that defines properties? I tried replacefilterfile="@{file1},@{file2}" but it didn't work. Douglas Bullard wrote: > > Use the "replace" task, it does exactly that. > > Here's an example from one of my macrodefs: > > [EMAIL

Re: sql task truncating utf8 input

2008-04-08 Thread Alex Miller
When I populate the database manually from the command line using: mysql -uroot -p mydb < mydb.sql ...everything works as it should. The value is not truncated as it is when run by Ant. This leads me to believe it is caused by Ant or Java. Thanks, Alex On Tue, 2008-04-08 at 12:16 -0500, David

sql task truncating utf8 input

2008-04-08 Thread Alex Miller
Hello, I have just started using Ant as a build tool for my webservers during the past few weeks and I am very happy so far. Now I am trying to populate a MySQL database from a file containing data using the utf8 charset. I receive no errors, but whenever the INSERT VALUE contains a unicode chara

How to get jruby scripts working?

2008-04-08 Thread Krzysieq
Hi all, I have a bit of a problem here. Trying to get a ruby script task working, I get this message: java.lang.NoSuchMethodError: org.jruby.Ruby.parse(Ljava/lang/String;Ljava/lang/String;Lorg/jruby/runtime/DynamicScope;I)Lorg/jruby/ast/Node; I put the bsf jars (3.0 beta, works fine with javascr

Using properties in depends list for a target

2008-04-08 Thread Ridley, Aidan
I would like to use properties in the "depends" list for a target, but that does not seem to work. I would also like to use a filter chain to replace tokens in a property instead of a file. Are these things possible? Am I missing something? I have worked around these apparent limitation

Re: How to insert properties into a file?

2008-04-08 Thread JG Flowers
You may want to take a look at the task while your at it. coltsith wrote: > > Hi, > > I have a file of string properties and I need to be able to insert ant > properties into it where referenced. So, for example: > > # > text.file > # > app.version=${version} > app.name=${nam

Confused by Ant Exec arg line/var

2008-04-08 Thread JG Flowers
Hi folks. I was recently trying to write a macrodef that called asadmin for managing resources such as creating/deleting jms/jdbc resources. I became particularly confused as to how ant hand off arguments through cmd shell to asadmin. See thread: http://www.manning-sandbox.com/thread.jspa?threadID