AW: libs in ${user.name}/.ant

2008-11-13 Thread Jan.Materne
> I'm not sure about ~/.ant/lib - but I know if you drop it in > $ANT_HOME/lib > it should work with no classpath... > > On Thu, 13 Nov 2008, Patrick Waugh wrote: > > > I have this: > > > > > classpath="${user.home}/.ant/lib/ant-contrib.jar" uri = > > "http://ant-contrib.sourceforge.net";

AW: Optional if and only if properties file exists?

2008-11-13 Thread Jan.Materne
>classpath="${user.home}/.ant/lib/bb-ant-tools.jar" /> >classpath="${user.home}/.ant/lib/ant-contrib.jar" uri = > "http://ant-contrib.sourceforge.net"; description = "Needed to use > ant-contrib." /> Another way of "installing" would be using Apache Ivy. http://ant.apache.org/iv

AW: Optional if and only if properties file exists?

2008-11-13 Thread Jan.Materne
> Ah. Guess I need to go back and read more xml stuff sometime. Yes > seems like a good practice. > > Not sure how it resolves to the right jar with a URL, but as long as > it works. :) http://ant.apache.org/manual/CoreTypes/namespace.html http://ant.apache.org/manual/CoreTypes/antlib.html

Re: Use Ivy or Maven Ant tasks for dependencies?

2008-11-13 Thread Gilles Scokart
2008/11/13 Karr, David <[EMAIL PROTECTED]>: > I've used both Ant and Maven, and I'm convinced that Maven is a burden > that is only worthwhile if you really need all of its features. One of > the big reasons people use Maven is for dependency download and > management (and sometimes the only reaso

Re: how should I do this?

2008-11-13 Thread Scot P. Floess
You could use the exec task and the outputproperty attribute... http://ant.apache.org/manual/CoreTasks/exec.html On Thu, 13 Nov 2008, Patrick Waugh wrote: I use Mercurial a DVCS. I can do this: [EMAIL PROTECTED]:~/repo/dib/AnimationDemo$ hg id -i ffd79a345811 which gives me the unique "rev

how should I do this?

2008-11-13 Thread Patrick Waugh
I use Mercurial a DVCS. I can do this: [EMAIL PROTECTED]:~/repo/dib/AnimationDemo$ hg id -i ffd79a345811 which gives me the unique "revision" which I am compiling. I'd like to capture that string for use in Ant. What would be the best way to accomplish this? Patrick -

Re: Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
Thanks guys, this works for me: http://ant-contrib.sourceforge.net"; description = "Needed to use ant-contrib." />

Re: libs in ${user.name}/.ant

2008-11-13 Thread Scot P. Floess
I'm not sure about ~/.ant/lib - but I know if you drop it in $ANT_HOME/lib it should work with no classpath... On Thu, 13 Nov 2008, Patrick Waugh wrote: I have this: http://ant-contrib.sourceforge.net"; description = "Needed to use ant-contrib." /> which works when I specify the c

libs in ${user.name}/.ant

2008-11-13 Thread Patrick Waugh
I have this: http://ant-contrib.sourceforge.net"; description = "Needed to use ant-contrib." /> which works when I specify the classpath. It used to work (I'm on linux obviously) without the classpath entry, as it's supposed to when you put jar's in the .ant/lib directory. Anyone know

Re: Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
Ah. Guess I need to go back and read more xml stuff sometime. Yes seems like a good practice. Not sure how it resolves to the right jar with a URL, but as long as it works. :) On Thu, Nov 13, 2008 at 9:07 AM, Scot P. Floess <[EMAIL PROTECTED]> wrote: > > Its a namespace thing you define at th

AW: Optional if and only if properties file exists?

2008-11-13 Thread Jan.Materne
declaring the xmlns like and having the jar on the classpath (-lib option) and you could use the tasks directly without any taskdef. Jan >-Ursprüngliche Nachricht- >Von: Scot P. Floess [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 13. November 2008 16:07 >An: Patrick Waugh >Cc: A

RE: AW: Re: Ivy with archiva

2008-11-13 Thread Brown, Carlton
Have you granted the guest account in Archiva read permission to every repository? -Original Message- From: Burkhardt Stefan (CI/TMP) [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2008 9:56 AM To: [EMAIL PROTECTED] Subject: AW: AW: Re: Ivy with archiva Hi, Thanks for the repl

Re: Optional if and only if properties file exists?

2008-11-13 Thread Scot P. Floess
Its a namespace thing you define at the top of your build.xml... Mine is usually xmlns:ant-contrib = "http://ant-contrib.sourceforge.net"; Thereby making if for me: On Thu, 13 Nov 2008, Patrick Waugh wrote: Interesting. works for me, but not Patrick On Thu, Nov 13, 2008 at 8:59 AM,

Re: Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
Interesting. works for me, but not Patrick On Thu, Nov 13, 2008 at 8:59 AM, Scot P. Floess <[EMAIL PROTECTED]> wrote: > > ac is the namespace for Ant Contrib, if - thats the Ant Contrib task if > > > > > On Thu, 13 Nov 2008, Patrick Waugh wrote: > >> What is ? >> >> On Thu, Nov 13, 2008

Re: Optional if and only if properties file exists?

2008-11-13 Thread Scot P. Floess
ac is the namespace for Ant Contrib, if - thats the Ant Contrib task if On Thu, 13 Nov 2008, Patrick Waugh wrote: What is ? On Thu, Nov 13, 2008 at 7:04 AM, <[EMAIL PROTECTED]> wrote: ... or check the condition with antcontrib if/else in one target

Re: Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
My first version (which works) is:

AW: AW: Re: Ivy with archiva

2008-11-13 Thread Burkhardt Stefan (CI/TMP)
Hi, Thanks for the reply. Yes I tried it without the port settings as you suggested. But with the same result. Here is the output (just a part) from the console (in debug mode). Overriding previous definition of reference to ivy.resolved.report Adding reference: ivy.resolved.report Overriding p

Re: Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
What is ? On Thu, Nov 13, 2008 at 7:04 AM, <[EMAIL PROTECTED]> wrote: >>> >>> >>> >>> >>> ... >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> or check the condition with antcontrib if/else in one target >>> >>> >> >>> >>> >>> >>> >>> >>>

AW: not working

2008-11-13 Thread Jan.Materne
AntContrib has both: normal tasks http://ant-contrib.sourceforge.net/tasks/tasks/index.html and c++ tasks http://ant-contrib.sourceforge.net/cpptasks/index.html Jan >-Ursprüngliche Nachricht- >Von: Patrick Waugh [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 13. November 2008 13:

RE: not working

2008-11-13 Thread Rebhan, Gilbert
-Original Message- From: Patrick Waugh [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2008 1:54 PM To: Ant Users List Subject: Re: not working /* Thanks. Yes, I can't seem to find the antcontrib... it seems to be ccptask or something. I'll check out Antelope. =) */ just use

AW: Optional if and only if properties file exists?

2008-11-13 Thread Jan.Materne
>> >> >> >> >> ... >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> or check the condition with antcontrib if/else in one target >> >> > >> >> >> >> >> >> >> >> >> >> >>

Re: not working

2008-11-13 Thread Patrick Waugh
Thanks. Yes, I can't seem to find the antcontrib... it seems to be ccptask or something. I'll check out Antelope. =) Patrick On Thu, Nov 13, 2008 at 6:32 AM, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: > > > -Original Message- > From: Patrick Waugh [mailto:[EMAIL PROTECTED] > Sent: Thur

Re: not working

2008-11-13 Thread Mark Salter
Patrick Waugh wrote: > What is wrong? You need to get ant-contrib :- http://ant-contrib.sourceforge.net/ -- Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: not working

2008-11-13 Thread Rebhan, Gilbert
-Original Message- From: Patrick Waugh [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2008 1:11 PM To: Ant Users List Subject: not working /* and line 89 is the . I don't see an task in Ant docs either. What is wrong? */ i wrote = ... *** or check the condition with antco

not working

2008-11-13 Thread Patrick Waugh
I am doing this: in build.xml, and get this error: /home/patrick/repo/dib/common/build.xml:89: Problem: failed to create task or type if Cause: The name is undefined. Action: Check the spelling. Action:

Re: Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
Thanks. Yes, this is the thing I did not understand. Patrick On Thu, Nov 13, 2008 at 5:09 AM, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: > > -Original Message- > From: Patrick Waugh [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 13, 2008 11:58 AM > To: Ant Users List > Subject: Re:

RE: Optional if and only if properties file exists?

2008-11-13 Thread Rebhan, Gilbert
-Original Message- From: Patrick Waugh [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2008 11:58 AM To: Ant Users List Subject: Re: Optional if and only if properties file exists? /* In other words, I need to test if the property file exists... and then include that "code" only i

Re: Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
Jan, On Thu, Nov 13, 2008 at 4:38 AM, <[EMAIL PROTECTED]> wrote: > , and arent provided by Ant. > Where do they come from? bb-ant-tools (Blackberry Ant Tools) > > > > > So the subprojects could place that element under or dont. These aren't "sub-project", and making this a macro do

AW: Optional if and only if properties file exists?

2008-11-13 Thread Jan.Materne
, and arent provided by Ant. Where do they come from? What you could do is defining a makro: So the subprojects could place that element under or dont. Jan >-Ursprüngliche Nachricht- >Von: Patr

Optional if and only if properties file exists?

2008-11-13 Thread Patrick Waugh
Currently, I use this: .. and this is in a "common" build.xml. However, there are some projects that do not require the as they have only one entry point. Ho