Re: How to import a Java class from a package in a different folder

2009-01-13 Thread Patrick Waugh
This isn't an ANT issue, you would create a user library with Eclipse and add it to your build path. On Tue, Jan 13, 2009 at 8:07 AM, ilango_g wrote: > > Hi > I have an Eclipse project that generates a EAR. My problem is as follows: > The root folder of the project is: > DC-Integrated > > Unde

sudden problem with ftp to site

2009-01-10 Thread Patrick Waugh
All of a sudden, when I run my usual build script, I get this: [ftp] sending files BUILD FAILED /home/patrick/repo/dib/common/build.xml:103: could not put file: 425 Could not open data connection to port 50055: Connection timed out The site is up and running, and I can connect to it myself from

Re: ANT failing from command line

2008-12-02 Thread Patrick Waugh
I think he's on Windows, so no "which" command. Basically, your computer doesn't lie. You have a prior version of Ant in your path somewhere. What I would do is first change to the directory where you think you have installed the latest version of Ant. There, confirm when you do: c:\ >ant -ver

Re: differenet ant script for different plateform?

2008-11-28 Thread Patrick Waugh
You can check to see which platform you are compiling on by looking at some default properties, and then run the proper exec task based on that with ac:if (ant contrib:if) On 11/28/08, Kate McCole <[EMAIL PROTECTED]> wrote: > > Hi, I'm new to ant and I have to write an ant build. > I saw some tas

Re: Can't get output of exec to property

2008-11-22 Thread Patrick Waugh
Not sure how exactly, but I fixed it and it works now. Basically, I changed hg.rev to "revision" and it seems that was the problem. Patrick On Sat, Nov 22, 2008 at 11:58 AM, Patrick Waugh <[EMAIL PROTECTED]> wrote: > Hi, > > This

Can't get output of exec to property

2008-11-22 Thread Patrick Waugh
Hi, This is what I'm trying to to: The output is coorrect in the text file, same as the command: [EMAIL PROTECTED]:~/repo/dib/dib_8800$ hg id -i c75f860db478+ but the "echo" during the build shows this: id: [

Re: rapc problem

2008-11-22 Thread Patrick Waugh
OMG, I'm so stuipd! I even checked that but didn't see it. Think I need new glasses! Thanks! Patrick On Sat, Nov 22, 2008 at 11:30 AM, Gilbert Rebhan <[EMAIL PROTECTED]> wrote: > Patrick Waugh schrieb: >> Hi guys, >> >> I

rapc problem

2008-11-22 Thread Patrick Waugh
Hi guys, I'm using this: and trying to add the quiet attribute, but get this: BUILD FAILED /home/patrick/repo/dib/common/build.xml:170: The following error occurred while executing this line: /home/patrick/repo/dib/common/build.xml:56: rapc doesn't

Re: external tasks configuration question

2008-11-15 Thread Patrick Waugh
nfigured? > > Cheers, > > James > > On 15 Nov 2008, 6:41 AM, "Patrick Waugh" <[EMAIL PROTECTED]> wrote: > > In the ANT manual: http://ant.apache.org/manual/install.html#optionalTasks > > It says: > > The external libraries required by each of the

any way to do this with Ant?

2008-11-15 Thread Patrick Waugh
Well, I have everything finally working with my Ant build, but one final deployment part. What I need to do is this:

Re: Ant NOT finding jars even in ant/lib (without classpath=)

2008-11-15 Thread Patrick Waugh
James, On Sat, Nov 15, 2008 at 2:55 AM, James Abley <[EMAIL PROTECTED]> wrote: > > Does it work on the command line? It may just be an Eclipse configuration > thing. Hey thanks. I did finally figure it out. It is indeed an Eclipse configuration thing. For anyone else who might have this proble

Ant NOT finding jars even in ant/lib (without classpath=)

2008-11-14 Thread Patrick Waugh
Somehow I have screwed up my configuration as I can no longer have automatically find installed external tasks in either: ~/.ant/lib or /usr/share/ant/lib I'm using Eclipse Ganymede, and am not sure how to fix this. If anyone has a clue what I likely did let me know. I'm using Ant 1.7.1. Pat

external tasks configuration question

2008-11-14 Thread Patrick Waugh
In the ANT manual: http://ant.apache.org/manual/install.html#optionalTasks It says: The external libraries required by each of the optional tasks is detailed in the Library Dependencies section. These external libraries must be added to Ant's classpath, in any of the following ways: **

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

2008-11-14 Thread Patrick Waugh
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 = >> > "

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." />

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
ou 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 >>

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 i

Re: Optional if and only if properties file exists?

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

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 >>> >>> >> >>> >>> >>> >>> >>> >>>

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 [mai

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 Use

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

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

Re: todir does not accept FQPN???

2008-11-09 Thread Patrick Waugh
Actually, this is what I had done originally. Turned out the problem was that I didn't have "{}" instead I had one ( and one } and didn't see it with my bad eyes. All works now, thanks guys. On Sun, Nov 9, 2008 at 10:06 AM, Martin Gainty <[EMAIL PROTECTED]> wrote: > > try modifying the simulato

todir does not accept FQPN???

2008-11-09 Thread Patrick Waugh
In a properties file I have: # rapc and sigtool tasks require location of RIM JDE jde.home=/home/patrick/lib/jde-4.2.1 # Default simulator #simulator.home="$(jde.home}/simulator" simulator.home="~/lib/jde-4.2.1/simulator" and I first ran into a problem with the commented line, and so I began exp

Couple of questions (involves bb-ant-tools)

2008-11-09 Thread Patrick Waugh
I am trying to move to using a common.properties and build.xml. In my "old method" I had this task:

configuring a builder

2008-11-01 Thread Patrick Waugh
I use Mercurial (Hg) for revision control, and Ant for build control, and I want to know what is the best way to setup so that a "Builder" I am creating does not have to be modified or re-created each time I "clone" a repository. Here is how I am working. I setup a new code project's workspace he

Re: Ant 1.7.1 install on Ubuntu problem

2008-09-29 Thread Patrick Waugh
James, I downloaded it twice, and the "lib" directory was empty in both copies. The other version was just fine. I'm using Ubuntu Hardy, and have no problem with other zip's. Patrick On Mon, Sep 29, 2008 at 8:49 AM, James Abley <[EMAIL PROTECTED]> wrote: > 20

Re: Ant 1.7.1 install on Ubuntu problem

2008-09-27 Thread Patrick Waugh
Found the problem. The .tar.gz archieve is missing the lib files. I downloaded the .bz2, and all was fine. Patrick On Sat, Sep 27, 2008 at 5:26 AM, Patrick Waugh <[EMAIL PROTECTED]> wrote: > I'm trying to install Ant system-wide on my Ubuntu Hardy. > > I downloaded apache-

Ant 1.7.1 install on Ubuntu problem

2008-09-27 Thread Patrick Waugh
I'm trying to install Ant system-wide on my Ubuntu Hardy. I downloaded apache-ant-1.7.1-bin.tar.gz, unzipped it, while root in /usr/share, then renamed the directory (mv) to "ant". I then created a symbolic link to ant in /usr/bin (which is on the path), and did this export ANT_HOME=/usr/share/a

uisng ant with mercurial

2008-08-13 Thread Patrick Waugh
When I "clone" a repository with mercurial, I current then have to go in and manually edit the build.xml file's project name in the project tag. Is there a way around having to do this??? Patrick - To unsubscribe, e-mail: [EMAIL

Re: missing tools.jar????

2008-08-10 Thread Patrick Waugh
the JDK... > > Just need to point your JAVA_HOME to the dir that contains the JDK... > > On Sat, 9 Aug 2008, Patrick Waugh wrote: > >> Hi, >> >> Everything was working fine... but now I get this: >> >> C:\Documents and Settings\Patrick\workspaces >&

missing tools.jar????

2008-08-09 Thread Patrick Waugh
Hi, Everything was working fine... but now I get this: C:\Documents and Settings\Patrick\workspaces > ant Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.6. 0_07\lib\tools.jar Buildfile: build.xml does not exist! Build failed As you can see, not a classpath problem: