Re: ant javac uses rt.jar even though it isn't in classpath

2006-06-16 Thread Grant Lewis
If you are using the ant command-line script then it's setting a classpath before it invokes ant's main class. This classpath likely includes the rt.jar you are trying to avoid, a bad idea if you ask me. I would downgrade my JDK before I removed classes from rt.jar or moved another jar in front of

Re: ant javac uses rt.jar even though it isn't in classpath

2006-06-16 Thread Mike Grandmaison
Hmm... Normally I use eclipse to compile and it is able to compile fine as it allows you to have the jdk libraries at the bottom of your classpath. I don't think this would be something that is specific to eclipse so there must be someway to do this in ant as well? Maybe it is the bootclasspa

Re: ant javac uses rt.jar even though it isn't in classpath

2006-06-16 Thread Dominique Devienne
I don't think you can "not" use rt.jar, unless you either: 1) Use the Endorsed API override mechanism if it applies to this particular API, to pick up this particular API from a different jar than rt.jar 2) Use a different bootclasspath, to use a different "fixed up" rt.jar Javac otherwise uses

ant javac uses rt.jar even though it isn't in classpath

2006-06-16 Thread Mike Grandmaison
Hi, I am trying to compile with ant 1.6.5 using jdk150. This jdk ships with rt.jar that contains a version of org.w3c.com that I don't want to use. I've run ant with verbose mode but it does not show that it is using rt.jar in the javac command but when I remove the offending class from rt.

Re: Collection of FileSets

2006-06-16 Thread Dhruva Reddy
OK, that's good to know. If I can't find a way around it I may give that a go. Thanks, Dhruva On 6/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Not all tasks can work with nested paths in prior to Ant 1.7. With 1.7 we are introducing "ResourceCollections" which is a supertype a ,

Re: RE: Re: Maven vs. Ant?

2006-06-16 Thread Antoine Levy-Lambert
Hello Stephen, thanks for your explanations. I need to build up my culture and understand how other tools or frameworks related to build position themselves in comparison with ant. So DPML delegates build tasks to ant. Maven2 tries to replace ant completely by providing similar functionality

Re: "Recursiveness" / property already used in a "generic" build...

2006-06-16 Thread Dominique Devienne
> Loggers are a pain to > reference on the command line, just like listeners. You almost almost > end up defining a wrapper script or an ANT_OPTS (or something like > that) env. var., the latter being a solution I don't like, because > it's the developer's responsability to do it (follow instructi

How to add mutable content to immutable build file

2006-06-16 Thread Vitaliy S
Hello, I have target with a task supporting subtasks e.g the content of task may be changed but the rest file is immutable. I want to store mutable content in seporate file. What is the best way to do it? Regards, Vitaliy S -

Re: "Recursiveness" / property already used in a "generic" build...

2006-06-16 Thread Steve Loughran
Dominique Devienne wrote: > Something else I was using, that I need to make public eventually (it > may be in Bugzilla), was a custom Logger to output the build filename > after each target header, to keep track of the build progress thru the > hierarchy of sub-builds, a-la Makefile again. yes,

Re: "Recursiveness" / property already used in a "generic" build...

2006-06-16 Thread Dominique Devienne
> > may be in Bugzilla), was a custom Logger to output the build filename > > after each target header, to keep track of the build progress thru the > > hierarchy of sub-builds, a-la Makefile again. In fact it prints the hierarchy of project names, not the filename. So calling outputs: init:

Re: "Recursiveness" / property already used in a "generic" build...

2006-06-16 Thread Dominique Devienne
> Something else I was using, that I need to make public eventually (it > may be in Bugzilla), was a custom Logger to output the build filename > after each target header, to keep track of the build progress thru the > hierarchy of sub-builds, a-la Makefile again. yes, we need this. But I couldnt

Re: "Recursiveness" / property already used in a "generic" build...

2006-06-16 Thread Steve Loughran
Dominique Devienne wrote: On 6/15/06, Greg Irvine <[EMAIL PROTECTED]> wrote: Well, I managed to sort this out using the task and to pass only the required properties along. No more hard-coded folder lists or duplicated build files now! Something else I was using, that I need to make public

Re: "Recursiveness" / property already used in a "generic" build...

2006-06-16 Thread Dominique Devienne
On 6/15/06, Greg Irvine <[EMAIL PROTECTED]> wrote: Well, I managed to sort this out using the task and to pass only the required properties along. No more hard-coded folder lists or duplicated build files now! Something else I was using, that I need to make public eventually (it may be in Bu

AW: Command line parameter

2006-06-16 Thread Jan.Materne
>> >> >> >> would be better Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Command line parameter

2006-06-16 Thread deepali sharma
sorry i think it was silly question. i can have a default task when user does not enter anything it is working fine now. great help JAN and others also cheers deepali On 6/16/06, deepali sharma <[EMAIL PROTECTED]> wrote: i think the last answer is pretty close. suposse i gave ant task1 it will

AW: dynamic copy of files

2006-06-16 Thread Jan.Materne
I would play with and selectors. Jan >-Ursprüngliche Nachricht- >Von: Luis Toubes [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 16. Juni 2006 11:56 >An: user@ant.apache.org >Betreff: dynamic copy of files > > >Hi, i dont know if this question has been responded, sorry. I >have two di

Re: Command line parameter

2006-06-16 Thread deepali sharma
i think the last answer is pretty close. suposse i gave ant task1 it will execute all tasks inside target task1. similarly for task2. Inside task1 Clean What about the default parameter??? On 6/16/06, [EMAIL PROTECTED] <[EMAI

dynamic copy of files

2006-06-16 Thread Luis Toubes
Hi, i dont know if this question has been responded, sorry. I have two directories, one the source of files to copy and the other the destination of the copy. My question is if i really want to copy from the source dir only those files that exist previously in the destination directory... (like a

AW: Command line parameter

2006-06-16 Thread Jan.Materne
- bundle your tasks in a HelloWorld - give that target a name - call that target from the commandline ant foo Jan >-Ursprüngliche Nachricht- >Von: deepali sharma [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 16. Juni 2006 11:49 >An: user@ant.apache.org >Betreff: Command line parame

Command line parameter

2006-06-16 Thread deepali sharma
Hi We have requirement like this. I want to give a command line argument and based on this argument I want run some task. Can this is possible. If possible how we can achieve this??? -- cheers deepali

Re: Maven vs. Ant?

2006-06-16 Thread Steve Loughran
Stephen McConnell (DPML) wrote: -Original Message- From: Antoine Levy-Lambert [mailto:[EMAIL PROTECTED] And what about dpml ? I guess first off is the statement that the DPML content is not aimed at or equivalent to Maven. Generally speaking the DPML products are focussed on run