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
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
[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
[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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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:
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(
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.
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
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
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).
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
26 matches
Mail list logo