ClassNotFoundException when appropriate jat in classpath

2006-07-17 Thread Jeevan
Hi All, I have a weird problem. I am a beginner with ant, I am trying to run a program which contains the following code sample. Javacode System.setProperty(catalina.home, mTomcatHome); System.setProperty(catalina.base, mTomcatHome); String[] serverArgs = {-config,conf + File.separator +

Re: ClassNotFoundException when appropriate jat in classpath

2006-07-17 Thread anandsrider . d
Jeevan... Think so in the classpath tag simple U have created a target. Point the target to path where dependency jar files exists in the environment by using the below tag. path id=tomcat.libs pathelement location=${jar files path}/ /path Try after doing the same. rgds, anand

ReplaceRegExp Task and line breaks

2006-07-17 Thread Alex Egg
Hi, I'm using the replaceRegexp ant task and I want to replace whatever matches my pattern with 2 line breaks. Right now I'm doing this: replaceregexp match=(?lt;=lt;\/methodgt;)\s*(?=^[\t ]*lt;method) replace=\n\n flags=gmi encoding=UTF-8

RE: How to execute and assign the output of a command to a property on runtime.

2006-07-17 Thread Maninder Singh \(GR/EIL\)
Hi Gilbert, Thanks for the help. I'll look into the Ant Manual and try it out. Thanks again. Regards, Maninder Singh -Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 12, 2006 4:45 PM To: Ant Users List Subject: RE: How to execute and

Re: ReplaceRegExp Task and line breaks

2006-07-17 Thread Stefano Marsili
Hi Alex, I didn't test it, but you could try replace=${line.separator}${line.separator} Stefano Marsili http://www.efanomars.net/pf --- Alex Egg [EMAIL PROTECTED] wrote: Hi, I'm using the replaceRegexp ant task and I want to replace whatever matches my pattern with 2 line breaks.

Re: ClassNotFoundException when appropriate jat in classpath

2006-07-17 Thread Jeevan
Hi Anand, I had done that before. So, including more info for better clarity. Here is the Exception: SEVERE: Error loading WebappClassLoader [java] delegate: false [java] repositories: [java] -- Parent Classloader: [java] [EMAIL PROTECTED] [java]

Re: ReplaceRegExp Task and line breaks

2006-07-17 Thread Scot P. Floess
I think that should work. Basically, I think the problem is that the XML attribute is being taken literally so \n is literally a backslash and n Stefano Marsili wrote: Hi Alex, I didn't test it, but you could try replace=${line.separator}${line.separator} Stefano Marsili

Re: ClassNotFoundException when appropriate jat in classpath

2006-07-17 Thread Martin Gainty
If you are to omit $TOMCAT_HOME and basedir qualifiers I believe the jar specification has to be Fully Qualified Path (instead of using the relative path) e.g. property name=catalina.jar value=/usr/opt/TOMCAT/apache-tomcat-5.5.17/server/lib/catalina.jar/ Martin --

Re: JAVA_HOME to be changed dynamically

2006-07-17 Thread 1800 tbsfunny
I know that Ant needs a JDK. But can we start CC setting JAVA_HOME=1.5 and ANT_HOME=some-ant-version and then during the build change JAVA_HOME=1.4 Thanks, -Jed On 7/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes. Ant itself needs a JDK = 1.2 - but only one per run ;-) (Personally I

Re: JAVA_HOME to be changed dynamically

2006-07-17 Thread Anthony B. Coates
You effectively can do this by forking off a separate Java/Ant process that uses 1.4 instead of 1.5. Cheers, Tony. On Mon, 17 Jul 2006 15:02:03 +0100, 1800 tbsfunny [EMAIL PROTECTED] wrote: I know that Ant needs a JDK. But can we start CC setting JAVA_HOME=1.5 and

RE: SCP Auth Faild

2006-07-17 Thread Anderson, Rob (Global Trade)
The error indicates an authentication failure. This can happen for a few common reasons. 1. If your password has special characters and you are putting the actual password in your build.xml you may get this error. To fix the problem, put the password in a properties file and use a property in

RE: SCP Auth Faild

2006-07-17 Thread Arminio Andrei
Thanks Bob! Anderson, Rob (Global Trade) [EMAIL PROTECTED] wrote: The error indicates an authentication failure. This can happen for a few common reasons. 1. If your password has special characters and you are putting the actual password in your build.xml you may get this error. To fix

Loops

2006-07-17 Thread danielpaval
Is there any way I can make a target run for a definite number of times.. Like a for or at least a while loop? To be more explicit I want a property's value tokenized in order to use the token as target parameters.. Thanks. -- View this message in context:

Re: Loops

2006-07-17 Thread Scot P. Floess
Ant contrib has a nice for loop that uses a delimiter attribute... danielpaval wrote: Is there any way I can make a target run for a definite number of times.. Like a for or at least a while loop? To be more explicit I want a property's value tokenized in order to use the token as target

Manifest doesn't support the file attribute

2006-07-17 Thread Bala Paranj
I am using the following ant section to generate the manifest file so that I can run the program by using the generated jar file. target name=compress description=Compression target depends=compile jar destfile=${output}/MyClient.jar basedir=${output}

Re: Manifest doesn't support the file attribute

2006-07-17 Thread Matt Benson
--- Bala Paranj [EMAIL PROTECTED] wrote: I am using the following ant section to generate the manifest file so that I can run the program by using the generated jar file. target name=compress description=Compression target depends=compile jar

Re: Manifest doesn't support the file attribute

2006-07-17 Thread Robert Clark
On Monday July 17, 2006 17:06, Bala Paranj [EMAIL PROTECTED] wrote: I am using the following ant section to generate the manifest file so that I can run the program by using the generated jar file. target name=compress description=Compression target depends=compile jar

Re: Loops

2006-07-17 Thread danielpaval
What is ant contrib? Some kind of tag library? I'd prefer to use the common ant tags, yet still solve the problem.. -- View this message in context: http://www.nabble.com/Loops-tf1956629.html#a5369035 Sent from the Ant - Users forum at Nabble.com.

Re: Loops

2006-07-17 Thread Scot P. Floess
ant contrib is a separate project for ant... Here is the URL: http://ant-contrib.sourceforge.net/ There was a time I was fairly adamant about not using anything but stock ant. However, there are some -really- useful tasks include in ant contrib - so I conceded and use it too...

RE: Loops

2006-07-17 Thread bill/wilandra
Ant is a declarative language, not a procedural language. As such you can not have a loop. You may be able to reform your Ant file into the declarative style and avoid the loop. It takes looking at the problem with a different mind set. The various books on Ant as well as the manual will give some

force execution of a target???

2006-07-17 Thread Bryan . S . Queen
I've got a simple ant file that I'm running from CruiseControl. Basically, it has these elements in it: project name=needHelp default=runTests basedir=checkout/projedt property name=shutdown value=true/ target name=startAS exec dir=C:/oc4j/j2ee/home

RE: SCP Auth Faild

2006-07-17 Thread Anderson, Rob (Global Trade)
Can you send the entire output of the build please. -Rob A -Original Message- From: Arminio Andrei [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 12:39 PM To: Ant Users List Subject: RE: SCP Auth Faild Thanks Bob! Anderson, Rob (Global Trade) [EMAIL PROTECTED] wrote:

Re: force execution of a target???

2006-07-17 Thread Alexey N. Solofnenko
I deal with similar problems by creating an external shell script that first runs normal targets, remembers return code, then runs post targets, and returns the remembered return code. - Alexey. [EMAIL PROTECTED] wrote: I've got a simple ant file that I'm running from CruiseControl.

RE: SCP Auth Faild

2006-07-17 Thread Rich
Also, if you're using ssh keys, make sure you use the proper permissions on those directories containing the keys. Giving too much permission (e.g., 0777) can cause automated login to fail. -rich -Original Message- From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED] Sent:

classpath changes from 1.6.2 to 1.6.5

2006-07-17 Thread John Liptak
I've been trying to figure out why building jBPM has been failing with version 1.6.5. It builds with 1.6.2. The difference seems to be in the way that classpath is processed for a taskdef. The details can be found at http://www.jboss.com/index.html?module=bb