Re: How to conditionally run a group of targets?

2007-12-13 Thread Dmitri Farafonov
You can use "if" from ant-contrib: http://ant-contrib.sourceforge.net/tasks/tasks/if.html All possible "if" conditions are here: http://ant.apache.org/manual/CoreTasks/conditions.html Hope it helps, Dmitri. Cyril Sagan wrote: Our build script needs to run an arbitrary *group* of ta

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

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: howto reuse includes and excludes definitions for different filesets

2007-12-07 Thread Dmitri Farafonov
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://ant.apache.org/manual/CoreTypes/fileset.html Hope it helps, Dmitri.