Re: Reading file into a property

2006-10-20 Thread Peter Reilly
Peter On 10/20/06, Hunter Peress <[EMAIL PROTECTED]> wrote: is there a standard way to read an arbitrary file (not a properties file) into a property? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Reading file into a property

2006-10-20 Thread Ivan Perez Dominguez
Hunter Peress wrote: is there a standard way to read an arbitrary file (not a properties file) into a property? Here you go. http://ant.apache.org/manual/CoreTasks/loadfile.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Reading file into a property

2006-10-20 Thread Hunter Peress
is there a standard way to read an arbitrary file (not a properties file) into a property?

RE: create a dir with current date

2006-10-20 Thread Muthyala, Sunil
Thanks Rob and Scot. I did looked the Ant manual.. it din't have eg about creating directories. Storing the value in property and calling it din't strike to me. - -Original Message- From: Robert Clark [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 3:15 PM To: Ant Users List Sub

Re: create a dir with current date

2006-10-20 Thread Scot P. Floess
You should be able to store the tstamp in a property and use that in the directory name something like: "-MM-dd_HH-mm-ss"/> Muthyala, Sunil wrote: I am trying to create a directory with current system date, I tried using "tstamp" but

Re: create a dir with current date

2006-10-20 Thread Robert Clark
On Friday October 20, 2006 15:05, "Muthyala, Sunil" <[EMAIL PROTECTED]> wrote: > I am trying to create a directory with current system date, I tried > using "tstamp" but did not work. Should do the trick for you. You can adjust the partern to be any date format you want. > Where can I

create a dir with current date

2006-10-20 Thread Muthyala, Sunil
I am trying to create a directory with current system date, I tried using "tstamp" but did not work. Where can I get more info on "tstamp" usage. Regards, Sunil

Junit task performance

2006-10-20 Thread Kevin Cline
Running unit tests via the Ant junit task seems to be extraordinarily slow. For example, I have one test that runs in 24 seconds if I start it via "java junit.textui.TestRunner" but it takes over three minutes to run the same test via the ant junit task. Truss shows that the junit execution examin

RE: Build successful but nothing produced

2006-10-20 Thread EJ Ciramella
You have this entry in the dist target: and Typically, the jar should only contain the resources it needs. What you're doing here is putting the jar (the result from the dist target) into the classes directory. You can't jar/tar/war/ear/zip a directory AND have the resulting archive creat

RE: Build successful but nothing produced

2006-10-20 Thread Tom Corcoran
Thanks, really appreciate the help. The only user is myself. After your previous mail I had just seen the dist option. Perhaps the help on the project tag could be expanded to included the compile/dist options. "the default target to use when no target is supplied. " does not mean a lot to the like

RE: Build successful but nothing produced

2006-10-20 Thread EJ Ciramella
If you wanted to have the jar built up, you'd need to run the "dist" target (looking at your build file). In my experience, this should be the default target, if your users want to do anything less, they can run the individual targets. -Original Message- From: Tom Corcoran [mailto:[EMA

RE: Build successful but nothing produced

2006-10-20 Thread EJ Ciramella
Erm - it does: default the default target to use when no target is supplied. -Original Message- From: Tom Corcoran [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 12:58 PM To: Ant Users List Subject: RE: Build successful but nothing produced Reading the archives, I've

RE: Build successful but nothing produced

2006-10-20 Thread Tom Corcoran
Reading the archives, I've learned that the "Could not load a dependent class " will not actually break your build; they are just there to signal that some of the optional tasks will not work due to some of their required libraries not being available on the classpath. All my java files in "src" a

RE: Build successful but nothing produced

2006-10-20 Thread EJ Ciramella
If you want to just type ant, set up a default in your project tag. -Original Message- From: Tom Corcoran [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 12:31 PM To: Ant Users List Subject: RE: Build successful but nothing produced Thanks a lot. I was just doing an ant. Using

RE: Build successful but nothing produced

2006-10-20 Thread Tom Corcoran
Thanks a lot. I was just doing an ant. Using the compile attribute now gives me : Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec Could not load a dependent class (com/jcraft/j

RE: Build successful but nothing produced

2006-10-20 Thread EJ Ciramella
Are you doing an "ant compile" or just an "ant"? -Original Message- From: Tom Corcoran [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 12:04 PM To: user@ant.apache.org Subject: Build successful but nothing produced I've just started with Ant this afternoon and found the documen

Build successful but nothing produced

2006-10-20 Thread Tom Corcoran
I've just started with Ant this afternoon and found the documentation very food. I've been trying to do a simple build with my goal to generate a file including the time stamp which I can read in my applet to display on an about screen. Here's my build.xml : MyProject build

Re: regexpmapper question

2006-10-20 Thread Peter Reilly
May be a difference between windows and unix (handling of / and \ characters for file sep) Try:

RE: regexpmapper question

2006-10-20 Thread Fenlason, Josh
This is what I've tried so far but still without success. If anyone else has any suggestions, I would be extremely grateful. Thanks in advance. , Josh.

Re: How to dump heap on OutOfMemoryError from ant

2006-10-20 Thread Peter Reilly
On 10/20/06, Milan Kubec <[EMAIL PROTECTED]> wrote: Peter Reilly wrote: > On 10/18/06, Steve Loughran <[EMAIL PROTECTED]> wrote: >> Milan Kubec wrote: >> > Hello, >> > I want ant to generate heap dump when OutOfMemoryError happens during >> > the build to find the problem in the task. I tried add

Re: How to dump heap on OutOfMemoryError from ant

2006-10-20 Thread Milan Kubec
Peter Reilly wrote: On 10/18/06, Steve Loughran <[EMAIL PROTECTED]> wrote: Milan Kubec wrote: > Hello, > I want ant to generate heap dump when OutOfMemoryError happens during > the build to find the problem in the task. I tried adding following > switches to .antrc file: -XX:+HeapDumpOnOutOfMemo