Re: API for setting a property reference?

2009-05-14 Thread Matt Benson
Read the whole section about antlibs in the Ant manual under "Concepts and Types." HTH, Matt --- On Thu, 5/14/09, Michael Ludwig wrote: > From: Michael Ludwig > Subject: Re: API for setting a property reference? > To: "Ant Users List" > Date: Thursday, May 14, 2009, 5:15 PM > John Francis s

Re: API for setting a property reference?

2009-05-14 Thread Michael Ludwig
John Francis schrieb am 12.05.2009 um 17:24:44 (+0100): > given a build.xml ... > > > > > > And the java code for the task ... > > package namespace; > public class MyTask extends Task I had to add a in order to get this to run: It could also have

Demux output when running ant programmatically

2009-05-14 Thread Cole, Derek E
Hello All! I am trying to capture ALL of the output that comes when I am running my build using the Ant API. I have associated a DefaultLogger with the ant project, but that seems to miss a lot of the output from javac errors and warnings. Any ideas how I can do this? I have tried to look into

Re: taskdef class org.tigris.subversion.svnant.SvnTask cannot be found

2009-05-14 Thread Brian Pontarelli
Not sure. I'd open up the JAR files and see if the class is in there. If not, find the JAR it is in. If they are in there, then they aren't being loaded in the Ant runtime. Could be a permission issue on the file system. -bp On May 13, 2009, at 10:47 PM, Rajesh Kumar (IN4774) wrote: Yes

Re: Utility to Generate Diagram

2009-05-14 Thread Dale Anson
Giant is another: http://giant.tigris.org/ On Thu, May 14, 2009 at 11:13 AM, Murray, Mike wrote: > http://www.ggtools.net/grand/, which is linked from > http://ant.apache.org/external.html, works well. > > -Original Message- > From: raghu guru [mailto:raghure...@gmail.com] > Sent: Thur

RE: Utility to Generate Diagram

2009-05-14 Thread Murray, Mike
http://www.ggtools.net/grand/, which is linked from http://ant.apache.org/external.html, works well. -Original Message- From: raghu guru [mailto:raghure...@gmail.com] Sent: Thursday, May 14, 2009 11:55 AM To: user@ant.apache.org Subject: Utility to Generate Diagram Hi All, Is there any

Re: Utility to Generate Diagram

2009-05-14 Thread raghu guru
Thanks for the reply, I'm looking to create it automatically like i will input my build.xml and output i need is diagram On Thu, May 14, 2009 at 11:59 AM, Martin Gainty wrote: > > take a look at gliffy > http://www.gliffy.com/ > > HTH! > Martin > __ >

RE: Utility to Generate Diagram

2009-05-14 Thread Martin Gainty
take a look at gliffy http://www.gliffy.com/ HTH! Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask

Utility to Generate Diagram

2009-05-14 Thread raghu guru
Hi All, Is there any utility available to generate diagram out of build.xml i used something 6 years back, i don't remember the name of it, and couldn't find anything on google Please help

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread Ashley Williams
I did a lot of copying and pasting from this website to get my own code up and running: http://www.ibm.com/developerworks/websphere/library/techarticles/0502_gawor/0502_gawor.html However I still believe the problem is with your environment rather than your code. Try editing the ant batch fi

RE: Java in JDK but ANT can't find it!

2009-05-14 Thread Cole, Derek E
Ashley, can you post a snippet of how you set up the project you launch programmatically from java? What does your build file that you are running from java contain in it? -Original Message- From: Ashley Williams [mailto:ashpub...@mac.com] Sent: Thursday, May 14, 2009 10:54 AM To: Ant

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread Ashley Williams
Hi David, Yeah sorry to sound so belligerent! It's just that this definitely works on my own system with the same version of ant and I often get tripped up by my own carefully crafted batch files. So I'm just trying to establish what is certain and what is not. I've just checked with the s

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread David Nemer
Ashley, you're acting just like ANT, I tell you something, but you don't seem to believe me!! ;-) Here is a piece of my batch file: 14 export JAVA_HOME=/opt/jdk1.6.0_06 15 export M2_HOME=/opt/maven-2.0.7 16 17 18 19 export ANT_HOME=/home/nemer/apache-ant-1.7.1

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread Ashley Williams
Check your PATH to make sure you are launching your application from the jdk and not the jre. I launch programatically and I don't get these errors with the same version of ant so it does sound as if the problem lies outside of ant. On 14 May 2009, at 15:46, David Nemer wrote: This is wha

RE: Java in JDK but ANT can't find it!

2009-05-14 Thread Cole, Derek E
>> I already set all of my environment variables to /opt/jdk1.6.0_06/ >> (JAVA_HOME and also in PATH), which is a JDK! The error message from ant appends "jre" to the end of whatever you have JAVA_HOME set to, so it returns something like this: >> com.sun.tools.javac.Main is not on the classpat

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread David Nemer
This is what I'm trying to tell you! My JAVA_HOME it is set as /opt/jdk1.6.0_06 I've triple checked it on my bash file! I also check with echo $JAVA_HOME and which java, they all tell the right path, but not ANT! This is why I don't understand where does ant get this /jre !! -- David Nemer Sent fro

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread Ashley Williams
In your description you say that JAVA_HOME=/opt/jdk1.6.0_06/jre Seriously, try JAVA_HOME= /opt/jdk1.6.0_06 instead On 14 May 2009, at 15:28, Cole, Derek E wrote: When I had this problem, I KNOW that JAVA_HOME was set correctly. I still ran into the problem. The OP here also said JAVA_HOME w

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread David Nemer
Thank you Derek, I will try to use your idea and Ill give you a feedback! And yes, you are right, even though everything is set up, the JAVA_HOME, for the JDK directory, ANT still doesn't seem to find the correct path, I have no idea why does this JRE appears, since it is not mentioned before in a

RE: Java in JDK but ANT can't find it!

2009-05-14 Thread Cole, Derek E
When I had this problem, I KNOW that JAVA_HOME was set correctly. I still ran into the problem. The OP here also said JAVA_HOME was set correctly. There is some missing step here that prevents the ant Project instance from knowing which Java to use. -Original Message- From: Ashley Williams

Re: Merge base settings with environment specific ones

2009-05-14 Thread Eric Fetzer
I'm very new to Ant, but it seems like the task combined with something else might be what you're looking for.  Can someone else that has experience with chime in? From: nagish To: user@ant.apache.org Sent: Wednesday, May 13, 2009 2:51:11 PM Subject: Re: Me

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread Ashley Williams
It looks like you are pointing to the jre not the jdk. Try repointing the JAVA_HOME environment variable to the jdk directory instead, On 14 May 2009, at 13:15, David Nemer wrote: Hello Everyone, I am running ANT programmatically in JAVA. So, my task is to build the BUILD.XML. I'm able to

RE: Java in JDK but ANT can't find it!

2009-05-14 Thread Cole, Derek E
So, I searched the internet for days trying to find out how to do this, and never could find a straight answer. If you or anyone else has a better way to do this, let me know, but I found two ways to make this work. The first way is to use the AntClassLoader API. I set up a Boolean true, a null pa

Java in JDK but ANT can't find it!

2009-05-14 Thread David Nemer
Hello Everyone, I am running ANT programmatically in JAVA. So, my task is to build the BUILD.XML. I'm able to do so, but it throws an exception saying: /scratch2/nemer/test/xfire/build.xml:5: The following error occurred while executing this line: /scratch2/nemer/test/xfire/build-common.xml:81: U