Re: Target description format using -projecthelp

2007-12-10 Thread Dmitri Farafonov
Unfortunately 'description' attribute does not allow usage of properties like ${line.separator}. However, ant files are XML files. So you can use XML character escapes and parser will put correct character for you. For example: is a new line character. You can add if you want return charact

Target description format using -projecthelp

2007-12-10 Thread Z W
Hi In using -projecthelp with ant on Win XP, I found that the description column isn't too friendly with displaying a long description. In the display I got, C:ant -buildfile auto_perform_draft.xml -projecthelp Buildfile: auto_perform_draft.xml Main targets: display_usage_message This target di

Re: Setting final strings at compile time

2007-12-10 Thread Dmitri Farafonov
I do not think you want to set this information into a java class, but into your final jar file using manifest file. http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html Hope it helps, Dmitri. Frederich, Eric P21322 wrote: Hello, Is there an easy way to set final Java Strings at compile tim

Re: Setting final strings at compile time

2007-12-10 Thread Scot P. Floess
Sorry that's not completely right... I mean Scot P. Floess wrote: Eric: Unfortunately, you are compiling a static final String :( Perhaps a properties file distributed with your app could hold the String instead? I wasn't proposing copying, replacing and then copying back... What I mea

Re: Setting final strings at compile time

2007-12-10 Thread Scot P. Floess
Eric: Unfortunately, you are compiling a static final String :( Perhaps a properties file distributed with your app could hold the String instead? I wasn't proposing copying, replacing and then copying back... What I meant was this: I assume your source code is checked into some source co

RE: Setting final strings at compile time

2007-12-10 Thread Frederich, Eric P21322
Thanks for the reply and a possible solution but this seems more like a hack. Yeah, right now I have something like Public static final String programName = "Java Program XYZ"; I'd like to be able to make one where that string is "Java Program XYZ - Development Version" automagically using ant. If

Re: Setting final strings at compile time

2007-12-10 Thread Scot P. Floess
Eric: You mention "final Java Strings at compile time"... Are you referring to actual Java as in: public static final String FOO = "some text"; If so, you may want to look into the task... You could do something as simple as: public class Main { public static final String FOO = "%PROJE

Re: Load a dll

2007-12-10 Thread mgainty
Hi Doug regsvr32 sqljdbc_auth.dll OR place the folder location on PATH HTH/ M-- - Original Message - Wrom: TTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJ To: "Ant Users List" Sent: Monday, December 10, 2007 12:25 PM Subject: Load a dll > I'm trying to run some junit tests through ant and keep get

Setting final strings at compile time

2007-12-10 Thread Frederich, Eric P21322
Hello, Is there an easy way to set final Java Strings at compile time? I know you can set properties at runtime with -Dproperty=value but could I do this at compile time? What I want to do is have one target which makes a program called "Java Program XYZ - production" and another which is called "

Load a dll

2007-12-10 Thread Doug Tabuchi
I'm trying to run some junit tests through ant and keep getting [junit] - --- [junit] - Standard Error - [junit] Dec 10, 2007 9:58:31 AM com.microsoft.sqlserver.jdbc.AuthenticationJNI [junit] WARNING: Failed to load the sqljdb

Re: Frequent java.lang.OutOfMemoryError: Java heap space error

2007-12-10 Thread Steve Loughran
Ravi Roy wrote: Hi Steve, Build was started and I run Jconsole and at the time when Heap space problem occurred following is the jconsole output : Regards, Ravi VM Summary Monday, December 10, 2007 5:44:00 PM CET -- Connection name: pid: 860 sun.tools.

RE: Frequent java.lang.OutOfMemoryError: Java heap space error

2007-12-10 Thread Ravi Roy
Hi Steve, Build was started and I run Jconsole and at the time when Heap space problem occurred following is the jconsole output : Regards, Ravi VM Summary Monday, December 10, 2007 5:44:00 PM CET -- Connection name:  pid: 860 sun.tools.jconsole.JConsole

Re: Frequent java.lang.OutOfMemoryError: Java heap space error

2007-12-10 Thread Steve Loughran
Martin Gainty wrote: Hi Ravi This is what I configure to enable increased min/max heap (Note the collection of unused PermGen parameters) -Xmx512m -XX:MaxPermSize=512m -XX:+PrintGCDetails -XX:+UseConcMarkSweepGC -X X:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled that permgen thing i

RE: Frequent java.lang.OutOfMemoryError: Java heap space error

2007-12-10 Thread Ravi Roy
Thanks Steve, I am using Ant-contrib-b03 for some repeated operations and Emma ant task for getting code coverage, no other third party libs. Junit is always forked while I run my junit tests. I would run jconsole and let you know the results. Thanks Ravi. -Original Message- From: Steve

Re: Frequent java.lang.OutOfMemoryError: Java heap space error

2007-12-10 Thread Martin Gainty
Hi Ravi This is what I configure to enable increased min/max heap (Note the collection of unused PermGen parameters) -Xmx512m -XX:MaxPermSize=512m -XX:+PrintGCDetails -XX:+UseConcMarkSweepGC -X X:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled HTH M- - Original Message - From: "R

RE: Frequent java.lang.OutOfMemoryError: Java heap space error

2007-12-10 Thread Bourzeix , Hervé
have you tried to fork and specify the memoryInitialSize and memoryMaximumSize? you should try with another compiler if you were using Sun Javac, try jikes or even better eclipse compiler (org.eclipse.jdt.core.JDTCompilerAdapter) my 2cts... -Original Message- From: Ravi Roy [mailto:[

Re: Frequent java.lang.OutOfMemoryError: Java heap space error

2007-12-10 Thread Steve Loughran
Ravi Roy wrote: Hello all, I am running my product build with cruisecontrol using ant 1.7.0. I have set ANT_OPTS=-Xms=1536m -Xmx1536m, but still I am getting below mentioned error, I have searched mail archive, but I see ANT_OPTS settings, which I have already set, I get the following error :

Frequent java.lang.OutOfMemoryError: Java heap space error

2007-12-10 Thread Ravi Roy
Hello all, I am running my product build with cruisecontrol using ant 1.7.0. I have set ANT_OPTS=-Xms=1536m -Xmx1536m, but still I am getting below mentioned error, I have searched mail archive, but I see ANT_OPTS settings, which I have already set, I get the following error : [javac] The sys

RE: download a set of using ssh example ?

2007-12-10 Thread Bourzeix , Hervé
I often use google search code : here is a search for ssh task within build.xml file. http://www.google.com/codesearch?hl=fr&lr=&q=ssh+file%3Abuild.xml&btnG=Rechercher regards, -Original Message- From: Z W [mailto:[EMAIL PROTECTED] Sent: Monday, December 10, 2007 10:55 AM To: user@a

Re: howto reuse includes and excludes definitions for different filesets

2007-12-10 Thread Ingo Siebert
Thank you Dmitri, it works great. Ingo Dmitri Farafonov schrieb: Couple ways: First use patternset http://ant.apache.org/manual/CoreTypes/patternset.html And reuse the pattern: Second create includes/excludes files: And use includesfile and excludesfile attributes http://an

AW: download a set of using ssh example ?

2007-12-10 Thread Jan.Materne
http://ant.apache.org/manual/OptionalTasks/scp.html Jan > -Ursprüngliche Nachricht- > Von: Z W [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 10. Dezember 2007 10:55 > An: user@ant.apache.org > Betreff: download a set of using ssh example ? > > Hi > > Could someone share a code example

download a set of using ssh example ?

2007-12-10 Thread Z W
Hi Could someone share a code example using ssh in ant to download a set of files from a remote server ? I could only find examples of uploading files to a remote server using ssh in ant. Thank you.

Re: How to create a file?

2007-12-10 Thread Krzysztof Kucybala
delete: create: or: Hello Jim! Best regards, Chris bsbiran wrote: Hello, Can someone please help me. I need to create a file jim.txt 1) Delete jim.txt 2) create jim.txt Please help BS. - To unsubscribe, e-mail: [EMAIL