How can we execute a specific target at a specific time from the build file

2009-10-15 Thread Ajay Mehra
Hi, I have a build file which consists of multiple targets so if i have to run some targets at some point of time.letz say my Target1 should run at 1 p.m and my Target2 should run at 2pm.so is there any feature availabe in ant so that i can plan my targets to run like this. Thanks in Adva

Re: timeout parameter not working in Sshexec task

2009-10-15 Thread Stefan Bodewig
On 2009-10-15, SachinSr wrote: > I saw from so many Ant user in the internet raising their issue with > 'timeout' not really working once after the command is finished on the > remote host using Sshexec task. Can you find a Bugzilla issue raised for this? I can't remember seeing a fix for this

Re: using dynamic declarations..

2009-10-15 Thread Stefan Bodewig
On 2009-10-15, EetieD wrote: > I was wondering if it is possible to use 'dynamic declarations' within ANT. > Please check the example below. In the line '${value.${id}}', I > would like to print a value which is dependant on the id. Not in Ant 1.7.1 or earlier, except using some tricks

Re: Tar Task

2009-10-15 Thread Stefan Bodewig
On 2009-10-15, Rez P wrote: > How do I get the tar task to overwrite its previously created tar > file? Please see my current target below. I don't want to delete my > dist folder each time and I don't see any options in the help section > to overwrite the previous version of ShellScripts.tar.

Re: Error using Ant

2009-10-15 Thread Stefan Bodewig
On 2009-10-14, Donald McLean wrote: > I'm using 1.7.1 and got this error message: > Could not load definitions from resource > org/apache/tools/ant/antlib.xml. It could not be found. Looks like either an incomplete or mixed up installation. Try running "ant -diagnostics" to see what Ant itself

Re: Problem regarding adding antcall task to some target via JavaScript and script task

2009-10-15 Thread Stefan Bodewig
On 2009-10-12, Christian Möller wrote: > > Hello from target 'init' > > > > > > Hello from target 'test' > > > This is purposing the follwing: Adding execution of additional targets > (here "extra-pre-test" and "extra-post-test") to some other targets > (

Re: regexp-type doesn't work as expected/(advertised?)

2009-10-15 Thread Stefan Bodewig
On 2009-10-12, Francis GALIEGUE wrote: > On Mon, Oct 12, 2009 at 07:00, Stefan Bodewig wrote: >> On 2009-10-09, Francis GALIEGUE wrote: >>> >>>         >>>                 >>>                         >>>                         >>>                 >>>         >> means map anything tha

Re: Using on FileSets

2009-10-15 Thread Stefan Bodewig
On 2009-10-12, Alexander Ziller wrote: > Dir1 contains a set of JARs: a.jar b.jar c.jar d.jar e.jar > Dir2 contains a subset of the JARs in Dir1: b.jar e.jar > I want to get the negative intersection (the stuff from Dir1 that's NOT in > Dir2) and figured > I tried this with an intersect and then

Issues with 2.1.0

2009-10-15 Thread Ben Sion
Hi Guys, I am new to Ivy and I have a few questions with regards to ivy 2.1.0. I have downloaded ivy 2.1.0 and I am attempting to use it in my build file. I have created an ivy.xml file however, I am a little confused about the version attribute of the ivy-module element. If I have the following:

SSL keystore export/import with ant tasks.

2009-10-15 Thread Max Danielsson
Hi, I've been spending some time migrating most of a building environment over to ant to provide a simpler and cross-system building solution for a client/server java application and i got kinda stuck at one particular step when it comes to creating SSL keys. I found the wonderful task Genkey

Deploying Application in OC4J 1013 using Ant

2009-10-15 Thread Sri123
Hello All I am trying to deploy my application in OC4J 1013 container using Ant. I have attached my build.xml file. Please let me know what could be the reason for this. Thanks Sri http://www.nabble.com/file/p25918703/build_deploy_appl.xml build_deploy_appl.xml -- View this message in context:

RE: Tar Task

2009-10-15 Thread Scot P. Floess
I believe it is smart enough :) On Thu, 15 Oct 2009, Rez P wrote: Thanks Scott So I run the tar target each time regardless of whether any files have changed or not. Is the Tar task smart enough to detect that if there were no changes, there's nothing to do? Apparently it is. C:\MyCV

RE: Tar Task

2009-10-15 Thread Rez P
Thanks Scott So I run the tar target each time regardless of whether any files have changed or not. Is the Tar task smart enough to detect that if there were no changes, there's nothing to do? Apparently it is. C:\MyCVS\src\>ant tar Buildfile: build.xml tar: [tar] Nothing to do:

RE: Tar Task

2009-10-15 Thread Rez P
Great, thanks. I was so busy thinking about deleting the folder that deleting the file didn't occur to me. Duh! :) Good to know that delete won't fail if the file doesn't exist. Thanks. > Date: Thu, 15 Oct 2009 08:33:56 +0200 > Subject: Re: Tar Task > From: f...@one2team.com > To: user

Re: Tar Task

2009-10-15 Thread Scot P. Floess
It should just over-write it for you automatically... Here is an example of what I did: excludes="**/cvs/**"/> # echo "hello" > shell/foo.txt # ant Buildfile: build.xml [tar] Building tar: /home/sfloess/development/test/ant3/DIST/ShellScripts.tar # tar tvf DIST/ShellScripts.tar

Problem with creating zip file with dynamic created zipfilesets

2009-10-15 Thread rogatip
I got some problems while trying to create a zip file within previously created zipfilesets. I have a loop where the filesets are created. The question here is: Can i use the zipfileset's id to create a zip file somewhere else in my xml file (ex. another

Re: problem with using with the javah task

2009-10-15 Thread Bill Au
I just tried but it seems that is not valid for the javah task: javah doesn't support the nested "jvmarg" element. Bill On Thu, Oct 15, 2009 at 9:53 AM, Francis GALIEGUE wrote: > On Thu, Oct 15, 2009 at 15:37, Bill Au wrote: > > I have a need to limit the max heap size of the javah task. S

Re: problem with using with the javah task

2009-10-15 Thread Francis GALIEGUE
On Thu, Oct 15, 2009 at 15:37, Bill Au wrote: > I have a need to limit the max heap size of the javah task.  So I am using a > : > >                  classpath="${build.classes}" >          destdir="${build.native}/src/org/apache/hadoop/io/compress/zlib" >      force="yes" >          verbose="yes"

Re: problem with using with the javah task

2009-10-15 Thread Steve Loughran
Bill Au wrote: I have a need to limit the max heap size of the javah task. So I am using a : When I invoke javah directly with the same argument it actually works without error: javah -J-Xmx512m -classpath build/classes org.apache.hadoop.io.compress.

problem with using with the javah task

2009-10-15 Thread Bill Au
I have a need to limit the max heap size of the javah task. So I am using a : But it is giving me a illegal argument error: [javah] Error: -J-Xmx512m is an illegal argument [javah] [javah] Usage: javah [options] [javah] [javah] where

timeout parameter not working in Sshexec task

2009-10-15 Thread SachinSr
Hi, I saw from so many Ant user in the internet raising their issue with 'timeout' not really working once after the command is finished on the remote host using Sshexec task. I'm also facing this same issue and it has become damn critical for me to have this to be worked. So do we have any fix

AW: using dynamic declarations..

2009-10-15 Thread Knuplesch, Juergen
Maybe use propertycopy from antcontrib package. Juergen -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: EetieD [mailto:k...@leanapps.com] Gesendet: Donnerstag, 15. Oktober 2009 11:32 An: user@ant.apache.org Betreff: using dynamic declarations.. Hi, I was wonde

using dynamic declarations..

2009-10-15 Thread EetieD
Hi, I was wondering if it is possible to use 'dynamic declarations' within ANT. Please check the example below. In the line '${value.${id}}', I would like to print a value which is dependant on the id. But for now, I cannot use this construction, because it prints '${value.${id}}' literaly. If po