RE: import file inside target

2007-09-18 Thread Rebhan, Gilbert
Hi, -Original Message- From: Mitja B. [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 19, 2007 7:50 AM To: user@ant.apache.org Subject: import file inside target /* g i get error that import is only allowed as a top-level task. I need to call this files inside compile target

RE: filelist task

2007-09-18 Thread Rebhan, Gilbert
Hi, -Original Message- From: sun99 [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 19, 2007 6:43 AM To: user@ant.apache.org Subject: filelist task /* I have list of modules (may vary) to be checked out from cvs and compile each module . how can i loop these activities in ant bui

import file inside target

2007-09-18 Thread Mitja B.
hi, g i get error that import is only allowed as a top-level task. I need to call this files inside compile target. How can i make this? thx Message sent using UebiMiau 2.7.10

filelist task

2007-09-18 Thread sun99
I have list of modules (may vary) to be checked out from cvs and compile each module . how can i loop these activities in ant build. thanks in advance sun99 -- View this message in context: http://www.nabble.com/filelist-task-tf4478783.html#a12770760 Sent from the Ant - Users mailing list

1.7 Resource Framework accessing lastmodified

2007-09-18 Thread dkbe
Hi, I would like to accomplish something like the following using the resource from the ANT 1.7 Resource Framework: Without delving underneath the XML interface to the Java classes provided by the ANT 1.7 Resource Framework, can you access the properties of a resource "readonly", without se

Re: What should be downloaded

2007-09-18 Thread Bruce Atherton
Sorry, I just noticed this response that was posted a few days ago and I thought it needed addressing. Varuna, the answer to your question is that you most likely want the file ant-current-bin.zip. That contains the zipped-up compiled version of ant that you can run as soon as you have unzippe

Re: adding a fork option to my ant task

2007-09-18 Thread Jochen Theodorou
Dominique Devienne schrieb: On 9/18/07, Jochen Theodorou <[EMAIL PROTECTED]> wrote: Dominique Devienne schrieb: Actually, no. One of the great advantage of composing a forking task is that it no longer requires the Ant task itself to depend on the forked program classes (Groovyc in this case).

Re: adding a fork option to my ant task

2007-09-18 Thread Dominique Devienne
On 9/18/07, Jochen Theodorou <[EMAIL PROTECTED]> wrote: > Dominique Devienne schrieb: > > Actually, no. One of the great advantage of composing a forking > > task is that it no longer requires the Ant task itself to depend on > > the forked program classes (Groovyc in this case). > > it mght be fr

Re: adding a fork option to my ant task

2007-09-18 Thread Jochen Theodorou
Dominique Devienne schrieb: Use in your code rather than in the build file. It's easy use a helper task in a task, with the bindToOwner call (not sure of the name). I've used this technique in the past, and it works well. The technique does assume you have a command line entry point rich-enough

Re: AW: adding a fork option to my ant task

2007-09-18 Thread Jochen Theodorou
[EMAIL PROTECTED] schrieb: Dominique Devienne schrieb: On 9/18/07, Jochen Theodorou <[EMAIL PROTECTED]> wrote: I am currently looking for ways to fork the Groovy compile task Groovyc (http://svn.groovy.codehaus.org/browse/groovy/trunk/groovy/groo vy-core/src/main/org/codehaus/groovy/ant/Groovy

Re: adding a fork option to my ant task

2007-09-18 Thread Dominique Devienne
On 9/18/07, Dominique Devienne <[EMAIL PROTECTED]> wrote: > I usually explicitly expose a task element to specify explicitly the > classpath to use to locate the Groovy classes, and whatever it depends > on. You thus no longer have to mix the Ant classpath with the forked > program's classpath, whi

Re: adding a fork option to my ant task

2007-09-18 Thread Dominique Devienne
> > Use in your code rather than in the build file. It's easy use a > > helper task in a task, with the bindToOwner call (not sure of the > > name). I've used this technique in the past, and it works well. The > > technique does assume you have a command line entry point rich-enough > > to specify

AW: adding a fork option to my ant task

2007-09-18 Thread Jan.Materne
>Dominique Devienne schrieb: >> On 9/18/07, Jochen Theodorou <[EMAIL PROTECTED]> wrote: >>> I am currently looking for ways to fork the Groovy compile >task Groovyc >>> >(http://svn.groovy.codehaus.org/browse/groovy/trunk/groovy/groo >vy-core/src/main/org/codehaus/groovy/ant/Groovyc.java) >> >>

Re: adding a fork option to my ant task

2007-09-18 Thread Jochen Theodorou
Dominique Devienne schrieb: On 9/18/07, Jochen Theodorou <[EMAIL PROTECTED]> wrote: I am currently looking for ways to fork the Groovy compile task Groovyc (http://svn.groovy.codehaus.org/browse/groovy/trunk/groovy/groovy-core/src/main/org/codehaus/groovy/ant/Groovyc.java) MatchingTask is a le

Re: adding a fork option to my ant task

2007-09-18 Thread Dominique Devienne
On 9/18/07, Jochen Theodorou <[EMAIL PROTECTED]> wrote: > I am currently looking for ways to fork the Groovy compile task Groovyc > (http://svn.groovy.codehaus.org/browse/groovy/trunk/groovy/groovy-core/src/main/org/codehaus/groovy/ant/Groovyc.java) MatchingTask is a legacy from the past, it's bes

AW: AW: adding a fork option to my ant task

2007-09-18 Thread Jan.Materne
source https://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javac.java I havent found a "deep" pointer to the forking place ... sorry. Jan >-Ursprüngliche Nachricht- >Von: Jochen Theodorou [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 18. September

Re: AW: adding a fork option to my ant task

2007-09-18 Thread Jochen Theodorou
[EMAIL PROTECTED] schrieb: [...] I looked in the javac task a bit, but it's quite big and I didn't find the right place. I dont know, but I would have a look into source code ... I wrotze, I did, but did not find the right place.. you have no pointer for me? bye blackdrag -- Jochen "bla

RE: ANT / AntXtras quick question.

2007-09-18 Thread Rebhan, Gilbert
Hi, -Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 3:05 PM To: user@ant.apache.org Subject: RE: ANT / AntXtras quick question. /* */ forget this nonsense, had a visit to the dentist that morning ;-) Of course \w+ would match

AW: store these class objects in memory and refere to it later in the buildscript.

2007-09-18 Thread Jan.Materne
No, there is no build-in way. Jan >-Ursprüngliche Nachricht- >Von: sonaluphale [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 18. September 2007 14:44 >An: user@ant.apache.org >Betreff: store these class objects in memory and refere to it >later in the buildscript. > > >Hi all, >I have

AW: adding a fork option to my ant task

2007-09-18 Thread Jan.Materne
>I am currently looking for ways to fork the Groovy compile >task Groovyc (http://svn.groovy.codehaus.org/browse/groovy/trunk/groovy/groovy-core/s rc/main/org/codehaus/groovy/ant/Groovyc.java) > >I would like to be able to define a maxmem setting and a fork option, >like javac does. Is there a si

RE: ANT / AntXtras quick question.

2007-09-18 Thread Rebhan, Gilbert
Hi, -Original Message- From: warhero [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 2:53 AM To: user@ant.apache.org Subject: ANT / AntXtras quick question. /* I'm having trouble trying to figure out how to make sure a property is not empty. So I have a properties file l

store these class objects in memory and refere to it later in the buildscript.

2007-09-18 Thread sonaluphale
Hi all, I have following requirement: I have to execute a java class through ANT, say BuildConfiguationParser.class. This class instantiates few classes like Server.class, Product.class. Does ANT provides a way to store these class objects in memory that can later be referenced in the buildscript

adding a fork option to my ant task

2007-09-18 Thread Jochen Theodorou
Hi, I am currently looking for ways to fork the Groovy compile task Groovyc (http://svn.groovy.codehaus.org/browse/groovy/trunk/groovy/groovy-core/src/main/org/codehaus/groovy/ant/Groovyc.java) I would like to be able to define a maxmem setting and a fork option, like javac does. Is there a s

RE: supressing output

2007-09-18 Thread Rebhan, Gilbert
Hi, Rob -Original Message- From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 7:08 PM To: Ant Users List; Ant Developers List Subject: RE: supressing output /* Gilbert, That looks pretty cool. Is the code copyrighted? Any chance this could be

AW: Query definition of target?

2007-09-18 Thread Jan.Materne
Here the condition and a buildfile compiling and testing the two conditions. Test testAAndMainIsOverwritten is failing and therefore the algorithm not fully right ... import org.apache.tools.ant.BuildException; import org.apache.tools.ant.ProjectComponent; import org.apache.tools.ant.taskdefs.

Re: supressing output

2007-09-18 Thread Ramu Sethu
It would be a nice feature if it is added... On 9/17/07, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]> wrote: > Gilbert, That looks pretty cool. Is the code copyrighted? Any chance > this could be added to Ant as a standard feature? > > -Rob Anderson > > > > -Original Message- > > F