Re: quiete mode for

2009-08-26 Thread Francis GALIEGUE
On Wed, Aug 26, 2009 at 19:54, Michael Hüttermann wrote: > Hello, > > how can I use the tasks cvs, exec and xslt in a quiet mode, that the > complete output is only written to a file or totally hidden/deleted? > > Or: how can I configure an Ant script to write all its output to a file, > or delete

Re: Help needed regarding Java task

2009-08-26 Thread Nadun Herath
Hi Aviesh Thanks a lot for the reply again. What I mean was sometime my programe output the message "MiniJava program parsed successfully." Sometime it output the message " Encountered errors during parse." How can declare a variable to count the number of times MiniJava program parsed succ

Re: Help needed regarding Java task

2009-08-26 Thread Avlesh Singh
As such, the JAVA programme cannot "return" something. You can always write the counter value in a file. Both your java program and ant can read from the same file. Cheers Avlesh On Thu, Aug 27, 2009 at 9:42 AM, Nadun Herath wrote: > Hi Aviesh > > Thanks a lot for the reply. I want a declare va

Re: Help needed regarding Java task

2009-08-26 Thread Nadun Herath
Hi Aviesh Thanks a lot for the reply. I want a declare variable and increment it's value according the output of the java programe. Is there a way to achieve that. Will I have to include a script in the build file to achive that. www.nadunh.blogspot.com

Re: Help needed regarding Java task

2009-08-26 Thread Avlesh Singh
See, if this usage helps: This is being used in the following manner - "ant search -Dkeyword=obama Cheers Avlesh On Thu, Aug 27, 2009 at 8:20 AM, Nadun Herath wrote: > I am new to apache Ant. > > Some part of my build.xml is like this. > > append

Help needed regarding Java task

2009-08-26 Thread Nadun Herath
I am new to apache Ant. Some part of my build.xml is like this. I have to run a Java program Called MiniJavaParser using different file names as arguements several times using Java Task. When it runs it gives t

Re: Self written ant task does not get the CLASSPATH passed to ant with -lib option

2009-08-26 Thread Hans Deragon
For posterity, I confirm that it works. Thank you. Best regards, Hans Deragon > On 2009-08-26, Hans Deragon wrote: > >> Now the question is: how can I access the instance of AntClassLoader >> being used by ant and which contains all the -lib entries? > > Use a class loaded by that classloader,

RE: Ant for C/C++?

2009-08-26 Thread Martin Gainty
this came up on maven users recently you still have 2 sourcecode repositories..(how would you branch/merge native binaries and ant jars) 2 testsuites 2 build environments 2 sets of build tools 2 different Database connection libraries the release manager will certainly have his hands full! Mar

Re: Ant for C/C++?

2009-08-26 Thread Dominique Devienne
On Wed, Aug 26, 2009 at 2:00 PM, Martin Gainty wrote: > > then install the nar plugin which will natively compile your binaries for you > http://java.freehep.org/freehep-nar-plugin/index.html Interesting. Looks like they've basically forked / taken over maintenance of CppTasks, if I read http://ja

Re: quiete mode for

2009-08-26 Thread Gilbert Rebhan
Michael Hüttermann schrieb: > Hello, > > how can I use the tasks cvs, exec and xslt in a quiet mode, that the > complete output is only written to a file or totally hidden/deleted? > > Or: how can I configure an Ant script to write all its output to a file, > or delete it completely? Then, it has

checkModified and changing pattern

2009-08-26 Thread Carlton Brown
Question - According to the documentation, if you wish to use a snapshot strategy, it's necessary to specify a changingPattern for the resolver (or define the dependency as changing). This is very clear. Elsewhere in the documentation it is also suggested that this must be used togeth

Re: Ant for C/C++?

2009-08-26 Thread David Raich
The cpptasks part of the ant-contrib package works very well to do what you need, if your needs fit within its limitations. Otherwise, you may need to consider alternatives. I am using Ant for C/C++ compiles, but had to invoke the compiler and linker commands myself with , looping through my

RE: Ant for C/C++?

2009-08-26 Thread Martin Gainty
2 options that I know of have ant spawn a makefile..this is the most dangerous option as if an error happens cannot create process(user doesnt have createprocess prov)..or cannot locate library(LD_LIBRARY_PATH incorrect) then you'll have to grind out each error to correct each environment att

Re: Ant for C/C++?

2009-08-26 Thread Dominique Devienne
On Wed, Aug 26, 2009 at 12:47 PM, Robin Parker wrote: > We have an application written in C/C++ (no java) that is currently > built using recursive clearmake, the source being stored in Rational > ClearCase.  The build process currently tries to build parts of the > application several times and so

quiete mode for

2009-08-26 Thread Michael Hüttermann
Hello, how can I use the tasks cvs, exec and xslt in a quiet mode, that the complete output is only written to a file or totally hidden/deleted? Or: how can I configure an Ant script to write all its output to a file, or delete it completely? Then, it has to be configured inside the script, worki

Ant for C/C++?

2009-08-26 Thread Robin Parker
Hi all, We have an application written in C/C++ (no java) that is currently built using recursive clearmake, the source being stored in Rational ClearCase. The build process currently tries to build parts of the application several times and so it needs an overhaul. There are currently two opini

Re: Self written ant task does not get the CLASSPATH passed to ant with -lib option

2009-08-26 Thread Stefan Bodewig
On 2009-08-26, Hans Deragon wrote: > Now the question is: how can I access the instance of AntClassLoader > being used by ant and which contains all the -lib entries? Use a class loaded by that classloader, say org.apache.tools.ant.Main.class.getClassloader() this will be an instance of AntCl

Re: Self written ant task does not get the CLASSPATH passed to ant with -lib option

2009-08-26 Thread Hans Deragon
Greetings. Thank you for the answer. I found this section that explains what you are stating: http://ant.apache.org/faq.html#delegating-classloader-1.6 Now the question is: how can I access the instance of AntClassLoader being used by ant and which contains all the -lib entries? I searched th

Re: Condition to set property value if file exist

2009-08-26 Thread Stefan Bodewig
On 2009-08-26, Francis GALIEGUE wrote: > On Wed, Aug 26, 2009 at 11:19, Stefan Bodewig wrote: >> On 2009-08-26, Mikael Petterson wrote: >>> I want to set  a property called "local" to >>> /tmp/test if directory exists. >>> If it does not exist I will check if /local/test exist. >>> If it does

Re: Condition to set property value if file exist

2009-08-26 Thread Francis GALIEGUE
On Wed, Aug 26, 2009 at 11:19, Stefan Bodewig wrote: > On 2009-08-26, Mikael Petterson wrote: > >> I want to set  a property called "local" to > >> /tmp/test if directory exists. >> If it does not exist I will check if /local/test exist. >> If it does I will set "local" to /local/test. >> If none

Re: Condition to set property value if file exist

2009-08-26 Thread Stefan Bodewig
On 2009-08-26, Mikael Petterson wrote: > I want to set a property called "local" to > /tmp/test if directory exists. > If it does not exist I will check if /local/test exist. > If it does I will set "local" to /local/test. > If none of these directories exist I will set "local" to current > dir

Re: Best way to use fileset in javac

2009-08-26 Thread Ognjen Blagojevic
Hi Mikael, You are right, list of source files must be entered as nested elemets: or as path elements: Note the property command. I could not figure out how to do the same thing with file sets. Regards, Ognjen

Condition to set property value if file exist

2009-08-26 Thread Mikael Petterson
Hi, I have the following scenario. I will check if I have the following directories: /tmp/test /local/test I want to set a property called "local" to /tmp/test if directory exists. If it does not exist I will check if /local/test exist. If it does I will set "local" to /local/test. If none of

[ANN] Ant task for converting .less (LessCSS) to regular CSS

2009-08-26 Thread Ernst de Haan
FYI: I've created an Ant task for converting LessCSS files o regular CSS. Features: - converts .less files to .css - supports both lessc and plessc, the LessPHP alternative (at least one is required) - supports time-outs - only processes changed files - supports separate source/target directories,