Loading resources from my task's JAR?

2006-01-04 Thread Rick Mann
I wrote an Ant task that needs to load some files (it's a source generator that loads template files). I'd like to store those files in the task's .jar file, but so far I've met with no success. I've tried storing the files in various parts of the .jar: templates/Class.tmpl com/mycompany/to

Re: Java.home changing

2006-01-04 Thread Stefan Bodewig
On Wed, 04 Jan 2006, Elena S. Peterson <[EMAIL PROTECTED]> wrote: > So I checked to see what the value of java.home is and that's the > part that's confusing me. Before any of the targets run it points > to my jdk (which is what the JAVA_HOME environment variable points > to). However as soon as

Re: Target dependency

2006-01-04 Thread Stefan Bodewig
On Wed, 4 Jan 2006, shreedhar natarajan <[EMAIL PROTECTED]> wrote: > 1. Can a target in one project depend on target on another project ? In a way, yes. You can import that other build file, or you cn use an ant task as first task in your target that needs to depend on the other build. > 2. Is

Re: Java.home changing

2006-01-04 Thread Arti Singh
Hi Elana, Questions regarding JAVA_HOME should be posted to a java newbie users list.Never the less I will help since I was using Eclipse ans had the same problem a few years back. You need to set your path to your J2SDK-j2sdk/bin directory in the auto exec.bat file.Try

Java.home changing

2006-01-04 Thread Peterson, Elena S
Hello all, I've searched and searched through the archive and cannot find an answer to this particular question. I have a simple build file with a javac command. I get this message when it runs: BUILD FAILED C:\eclipse\workspace\PQuad\build.xml:131: Unable to find a javac compiler; com.sun.tool

RE: Target dependency

2006-01-04 Thread Stephen McConnell
> -Original Message- > From: shreedhar natarajan [mailto:[EMAIL PROTECTED] > > > > The above call builds all sub-builds in current directory. I > need to handle nested directories(not only the first level > but also subsequent levels). This requires a higher level applic

Re: Regarding CVSROOT defined as system variable

2006-01-04 Thread Ivan Ivanov
Hello, I think that the problem is not that you have set CVSROOT variable. This exception below makes me think that you are stuck upon in an Windows problem. > :\cvssource\cc-buildcvsroot.xml:5: Unable to delete > directory > C:\cvssource\jinx When a directory is open by some process (as in Win

Regarding CVSROOT defined as system variable

2006-01-04 Thread Srikrishna_Parthasarathy
The following works initially But after defining CVSROOT , it I am getting the below mentioned exception. My system variable contains. ":ext:[EMAIL PROTECTED]:/cvsroot" After removing CVSROOT, I thought it would work but still same except

Target dependency

2006-01-04 Thread shreedhar natarajan
Hi all, I have couple of questions - 1. Can a target in one project depend on target on another project ? 2. Is there any order in which the sub build is invoked when subant is called ? For eg. if i invoke And I have 3 sub directories A,B and C. Which build.xml will be invoked first

Re: How to change directories in ant.....

2006-01-04 Thread Ivan Ivanov
Hello, --- [EMAIL PROTECTED] wrote: > basedir="."> > > > > > > cd Change to directory to what? For the sake of discussion let me call that directory new_dir. Ant has no cd task. Instead you do this: Regards Ivan __

Re: How to change directories in ant.....

2006-01-04 Thread Scott Sauyet
[EMAIL PROTECTED] wrote: I would like to change directory levels . how to do this ? No cd necessary. Use the absolute or relative path like this: And if you're using the path in other places, you probably want to make it a property. -- Scott -

Re: Combining static file with results

2006-01-04 Thread Scott Sauyet
>> = Scott Sauyet <[EMAIL PROTECTED]> > = Benjamin Burgess <[EMAIL PROTECTED]> >> Can anyone suggest a way of combining the information from one file >> with the results of an that doesn't involve a >> temporary file. I'm doing it now using one, but that grates on me, >> and I feel there must b

How to change directories in ant.....

2006-01-04 Thread Srikrishna_Parthasarathy
I would like to change directory levels . how to do this ? cd

RE: Combining static file with results

2006-01-04 Thread Burgess, Benjamin
Using Ant-Contrib (not recommended unless necessary) you can do it like this:

Re: MULTI DEPLOYMENT

2006-01-04 Thread Steve Loughran
James Fuller wrote: Karthik wrote: Hi For But every targets have to be run seperately for every deployment / roll back process for 1..n servers. Hello Karthik, I think one of the problems people encounter often when designing a build/deploy system is trying to write the entire scri