Need help on setting jvmarg

2005-09-20 Thread saminda abeyruwan
Hi all, I'm using ant as my building tool. I have written some test case for my project and ran via goal. In this case i made fork="true" and ran on Linux (Ubuntu) system and worked perfectly. But when i try to run it on a Windos XP machine, rather than running the test cases, and when excuit

RE: and failifexecutionfails

2005-09-20 Thread cefn.hoile
I must admit that this area seems to be a real shortcoming in existing ANT tasks - not being able to reliably swallow errors in subtasks, whatever they may be. When I was trying to solve this problem before, there were suggestions as to how I can check that the specific task (tomcat undeploy) w

Re: and failifexecutionfails

2005-09-20 Thread Nicolas Vervelle
[EMAIL PROTECTED] wrote: I must admit that this area seems to be a real shortcoming in existing ANT tasks - not being able to reliably swallow errors in subtasks, whatever they may be. When I was trying to solve this problem before, there were suggestions as to how I can check that the spe

Re: and failifexecutionfails

2005-09-20 Thread Steve Loughran
[EMAIL PROTECTED] wrote: I must admit that this area seems to be a real shortcoming in existing ANT tasks - not being able to reliably swallow errors in subtasks, whatever they may be. You have to remember that Ant is designed to be a build tool, first and foremost, not a generic workflow sy

FW: problem with using fork in windows xp

2005-09-20 Thread Gayan Asanka
Hi All, I am working on Apache axis2 project. I am trying to run few test cases using a build.xml. I do codegeneration, compiling and run all via this build.xml. But I am getting a runtime exception if I set fork = "false" both in linux and windows. Things are ok when fork="true" in linux(Ub

where is the problem?

2005-09-20 Thread Aydın Toprak
hii everybody, I am newbie about ant I am having difficulties about ant+eclipse combination... Now I have a working source code, I can compile it under the command line .. without any problems.. how ever I couldnt been able to compile it via using ant .. . When I call it from eclipse, I get s

Re: FW: problem with using fork in windows xp

2005-09-20 Thread Steve Loughran
Gayan Asanka wrote: Hi All, I am working on Apache axis2 project. I am trying to run few test cases using a build.xml. I do codegeneration, compiling and run all via this build.xml. But I am getting a runtime exception if I set fork = "false" both in linux and windows. Things are ok when f

Re: where is the problem?

2005-09-20 Thread Barry White
Hi Aydin, try putting the servlet (J2EE) classes in the classpath for the javac task. The following page shows you how to do this under references (it should look familiar): http://ant.apache.org/manual/using.html Barry Aydın Toprak wrote: hii everybody, I am newbie about ant I am having

Re: where is the problem?

2005-09-20 Thread Aydın Toprak
Thanks Barry, But I have already added those paths to my enviroment and everything (excep this) works smoothly.. how ever, it still resists about the missing packages.. but I have them and can compile the java code on the command promp, in the same directory.. Barry White wrote: Hi Aydin,

RE: where is the problem?

2005-09-20 Thread RADEMAKERS Tanguy
Hello Aydin, Ant+Eclipse is a slightly diffferent animal than Ant all alone - depending on how you have your classpath setup for compiling (basically - explicitly listed in build.xml vs imported as a property vs set in your environment) you may have to mess about with Eclipse's Ant runtime pref

Re: where is the problem?

2005-09-20 Thread Barry White
Ant must be using a different environment then, because it can't find javax.servlet My advice would be to forget eclipse for now and get the build working on the command line. How many javac's do you have on your system? Which one is in your PATH? What is JAVA_HOME set to? If JAVA_HOME is set

RE: FW: problem with using fork in windows xp

2005-09-20 Thread Gayan Asanka
Hi steve, Nop, it compiles well. You can see if observe my output (also I tried ant -v, everything is in the classpath). I am getting a runtime exception if only I set fork="no", that is both in linux and windows. But it runs in linux when fork="true". So I need a way to run it in windows xp with

Re: where is the problem?

2005-09-20 Thread Aydın Toprak
Thanks for everyone; I have solved the problem. The problem is all about the libraries (.jar files) that we have to add the ant runtime which is in the eclipse(window->preferances->ant->runtime)... I used to add the related libraries like j2ee.jar... however whenever I add those important li

SOLUTION: Cvs and extSSH and Ant

2005-09-20 Thread rakesh mailgroups
Hi All, i have seen various posts here and elsewhere about talking to a cvs server using ant when the auth method is ssh. I have finally managed to track down a web page with instructions that work for windows. Here it is: http://nlp.stanford.edu/javanlp/cvs-guide.html I can confirm the Wind

Re: FW: problem with using fork in windows xp

2005-09-20 Thread Steve Loughran
Gayan Asanka wrote: Hi steve, Nop, it compiles well. You can see if observe my output (also I tried ant -v, everything is in the classpath). I am getting a runtime exception if only I set fork="no", that is both in linux and windows. But it runs in linux when fork="true". So I need a way to run

Re: where is the problem?

2005-09-20 Thread Steve Loughran
Aydın Toprak wrote: Thanks for everyone; I have solved the problem. The problem is all about the libraries (.jar files) that we have to add the ant runtime which is in the eclipse(window->preferances->ant->runtime)... I used to add the related libraries like j2ee.jar... however whenever I a

RE: ssh advice

2005-09-20 Thread Anderson, Rob (Global Trade)
I would suggest changing your process slightly. Run Ant on the unix box where you "dist the project". Of course, I'm not sure what output you are trying to evaluate, but this may help your situation. -Rob Anderson > -Original Message- > From: Ramnish Kalsi [mailto:[EMAIL PROTECTED] > Sen

Extracting application version from Java file

2005-09-20 Thread Nicolas Vervelle
Hi, In one of my Java source file, I have a line like this: public final static String version = "XX.YY.ZZ"; I'd like to extract the XX.YY.ZZ from the Ant build to name the resulting jar file with it : Jmol.XX.YY.ZZ.jar Can someone help me with how to extract the string from the file ? Thank

Re: Extracting application version from Java file

2005-09-20 Thread RPearse
You're going to wrong way. Pass into your Ant build the version number like so: ant -Dversion=XX.YY.ZZ clean build test. Then use the task to replace a token in your Java file. Even better, you store that number in MANIFEST.MF and update it with the task. Or, use a properties file. That way

Re: Extracting application version from Java file

2005-09-20 Thread Barry White
Hi Nicolas, how about controlling the version number in the build? then update the version in the source file on every build: and then compile and use ${version} to name the jar? Barry Nicolas Vervelle wrote: Hi, In one of my Java source file, I have a line like this:

Re: Extracting application version from Java file

2005-09-20 Thread Ninju Bohra
We go one step further.. In the code base there is a build.properties file with the following data: build.version=XX.YY.ZZ build.date=2005-09-21 build.date.format=-mm-dd Then instead of a static variable in Java class (say called BuildInfo.java) we have static method called getBuildVersion(

RE: Extracting application version from Java file

2005-09-20 Thread RADEMAKERS Tanguy
Hello List, I was going to reply to Nicolas that, whilst i agree with the other two replies (you should pass the version in somehow and not read it from the java source file), you *can* achieve what he is trying to do using the task with a nested filterchain. But i can't seem to get it to work.

RE: Extracting application version from Java file

2005-09-20 Thread RADEMAKERS Tanguy
Sorted - i didn't have the bcel.jar in my lib folder. Added it and it works fine. Sooo - Nicolas, *if* you have bcel.jar installed, you can use the example below to get your version string out of your file! (but you shouldn't ;) /t >-Original Message- >From: RADEMAKERS Tanguy

ANT build script from NetBeans is failing

2005-09-20 Thread Michael Stumpf
I'm using NetBeans to manage a few Java projects. Recently I found a need to build manually with the command line (read: scriptable) ant, and I found that one of the three projects would sometimes fail. On the NetBeans machine (windows + cygwin), the ant build works fine. The same directory

RE: Extracting application version from Java file

2005-09-20 Thread Nicolas Vervelle
Thanks for this solution :) I am considering where I should put the version (in a Java file, a property file or in the build.xml) The pros and the cons: 1) in build.xml: I don't like it because : - two files are modified and need to be committed when the version is changed (build.xml and java).

RE: FW: problem with using fork in windows xp

2005-09-20 Thread Gayan Asanka
Hi Steve, For your convenience I hoped attach my build.xml to this mail. If you don't mind I can send my other resources too as you can regenerate this error (if you can find a win xp os). This is the output I see. E:\SVN2\modules\integration>ant Buildfile: build.xml prepare: [mkdir] Create