I think that you also need to have junit.jar in your classpath when
running ant.
Mikael
Royston McNeill wrote:
Do you have a copy of optional.jar in your \ant\lib directory?
-Original Message-
From: Spencer A Marks [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 6:47
Title: RE: Problem with java task and JUnit on Linux
-Original Message-
From: Gregory A. Payne [mailto:[EMAIL PROTECTED]]
I am trying to use Ant 1.2 with JUnit 3.5 (on linux) with the
java task
(since the documention on the junit task says it will not work with
JUnit3.5).
Use fork="yes" for the Java task.
Shireesh Thanneru
--- Yusuf Goolamabbas [EMAIL PROTECTED] wrote:
Hi, I am trying to use ant to compile one of the sample program
[SimpleTransform.java] in Xalan 2.0. I downloaded Xalan 2.0 and
installed xalan.jar and xerces.jar [the one which was
Hi,
For some reason, javac task appears to recompile a set of files twice
even though no changes were made to the source files.
Any ideas? Thanks for any suggestions.
---
The tasks were defined as follows, "test2" compiles the same files
I just downloaded the source for Ant 1.3 Beta 1. I was
looking for the jars to include in my path and found that
only the xml parser jars were in the $ANT\lib directory. I
expected to find ant.jar and optional.jar in there, too,
after running build.bat. My first question is - which
ant.jar and
++ David Patow
++ status: http://tahiti/users/david/Status
++ home-office: XXX-XXX-
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 11:22
To: [EMAIL PROTECTED]
Subject: Q: How to create a file during a build?
I am in
David Patow would like to recall the message, "How to create a file during a
build?".
I don't mean to be a troll, but I have been trying to find a good Java build
tool. I have seen lots of hype about Ant and have looked at it and I'd just
like to say I am not that impressed. I am hoping someone can show me where I
am wrong. Maybe there are some better ways to do things as all I
Check out "cons" www.dsmit.com/cons/
It does dependency scanning and maintains an
MD5 signature for determining whether a rebuild
of a file is necessary, the signature incorporates
ALL the inputs (including the compiler and the compiler
command line) that lead to a derived object so
it is quite
So when I was playing with xml a while back one of the things that greatly angered me
was the inability to effectively organize xml files into a hierarchy or set that
actually makes sense. Now maybe I just don't understand all of the Xinclude stuff
that is being created but it seemed that
King Dale wrote:
I run Ant and it builds correctly. But let's say I need to change the
signature of Foo.test and I add a parameter, but I forget to make the change
in Main. If I run Ant again it will tell me that it built successfully, but
I have successfully built an inconsistent target.
I disagree that one file is not sufficient for a large project with many
people. Owing partly to Ant's ability to scan multiple directories (the
original make had trouble even traversing multiple directories), much of the
heavy lifting of a build process (compiling classes, generating EJBs,
Also, the depend task in, I believe, optional.jar, will do the sort of
"reverse dependancy" checking I think you're describing.
Cheers,
David
-Original Message-
From: Richard S. Hall [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 12:03 PM
To: [EMAIL PROTECTED]
Subject: Re:
On Tue, 6 Feb 2001, King Dale wrote:
I don't mean to be a troll, but I have been trying to find a good Java build
tool. I have seen lots of hype about Ant and have looked at it and I'd just
like to say I am not that impressed. I am hoping someone can show me where I
am wrong. Maybe there are
Nico Seessle wrote:
You mean you could have a single file named Foo.java which contains
public class Foo {...}
class Bar {...}
class Baz {...}
and Ant sometimes compiles only the class Foo? Is this reproducable? If yes,
can you tell us
1. The OS
2. The version of Ant
3. The compiler
I think the original person wanted a Java based tool though..so a Perl
solution probably wont work.
-Original Message-
From: Peter Vogel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 11:35 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Can someone tell me what is so great
Kevin:
try setting the ssdir environment variable to point to the real vss server
that you want to use. otherwise, you'll be looking at the one on your
local machine.
alden
"Duffey, Kevin" [EMAIL PROTECTED] on 02/06/2001 02:41:34 PM
Please respond to [EMAIL PROTECTED]
To: "'[EMAIL
Just make the 'includes' attribute in the javac task in the following
form:
includes="${filter}/**/*.java"
Then you can compile portions of the build tree like this:
ant -Dfilter=com/foo/bar/ejbs
Cheers,
David
(I happen to think the includes/excludes mechanism works quite well, though
full
We have the VSS directory on the machine where our VSS repository is located
shared
under NT. So in our build scripts we access the ss.exe located on that
machine
instead of the one on the local box.
You can run Ant in verbose mode (-verbose) to see exactly what command line
you are using.
I personally don't enjoy working with an 100k+ file. That is just me tho. Further
putting things in one huge massive file does NOT work in a distributed environment
very well at all. When I am working on my package I don't care about your package and
I certainly don't care about the package
oh it probably is sufficient. But I dislike working with 100k+ sized files. I also
don't really enjoy having a single file that is the sole point of contention amongst a
distributed development team. We ALL know that one person that just has to lock file
and then go away for a 4 day
Thanks for all your help on the subject.
I've built a small Java script to do the TCP/IP communication and it works
great.
It allows the user to login and access the pserver remotely.
Maybe now I can work on the CVS task in Ant to do the same.
-Original Message-
From: Stefan Bodewig
Is this:
java.lang.ClassNotFoundException: junit.framework.TestCase
java.lang.ClassNotFoundException: com.oroinc.net.ftp.FTPClient
Compiling 3 source files to D:devcmsuildejb
really the output you get from ant, or did it get "broken" while
transferring it to the list? At first I don't
Title: Javadoc bug
- Original Message -
From:
Yu, Alan
To: [EMAIL PROTECTED]
Sent: Tuesday, February 06, 2001 10:29
PM
Subject: Javadoc bug
Don't know whether this has been reported or not.
when having packagenames like "java.*", javadoc will also
- Original Message -
From: "One Way" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 06, 2001 11:09 PM
Subject: Re: javac compiles files with no changes
Right, I do not have junit and ftp-tasks, so ClassNotFoundException is
valid.
If you have no call to junit in your
Sorry for the cross-post, but two-birds and all that...
--- Andrew Goodnough [EMAIL PROTECTED] wrote:
I would be happy to help with the documentation in this
area (Diane's little buddy, maybe :-))
Actually, I'm afraid I haven't really been of much use the past few weeks.
Things are in a bit
1) I replaced all backslashes with forward slash prior to posting this
message
2) W2K command prompt = %SystemRoot%/system32/cmd.exe
3) Yes, for all cmscontroller*.java files the very first line is a
'package ' statement
4) the build file and output are as follows
My question is simply this. How should I do this equivalent
operation in Ant?
Should is a hard question.
The easiest way to convert is to use exec and put the existing
make commands into a batch file.
That will work for now, and allow you to get the build working, which
is probably
I think you have a fair understanding of Ant. Personally, I love it. I used
to write make files 15 years ago. I didn't hate make files at the time, but
now I do. Unnecessarily cryptic in my opinion.
In the end of the day, this is a Coke or Pepsi issue. Take the taste test
and make your own call.
Run ant with -debug and you should see why javac is compiling everything
again.
It has to do with this attribute
srcdir="${cms.java.dir}/com/comp/cms/cmscontroller"
This should point to the root of your package hierarchy.
srcdir="${cms.java.dir}"
Use include elements to select particular
Thank you all for replies..it finally worked. Now..is there any chance I can
display only the files it gets or replaces..and not the whole list? Its not
a big deal, but it would be nice to either display just the new/replaced
files, or not display anything at all. Is there an option for that?
On Wed, 7 Feb 2001, Tim Vernum wrote:
OK, I don't want to start a war here, but I think that have mis-information on
ant-user makes ant look bad.
I don't either, I am just tring to explain Ant's advantages.
1. very easy to write and understand the build.xml file,
unlike the Makefiles.
I think another big advantage to Ant that I haven't seen listed is the
separation of "what" needs to be done from "how" you are going to do
it. I don't think Ant in its current incarnation is prefect in this
regard, but it is closer to describing the "what" than Makefiles are
(or can be).
To go
At 12:59 7/2/01 +1100, Tim Vernum wrote:
Mine are.
It depends on what you consider to be a "makefile"
I have a make-engine that is a makfile included within
each project's makefile. It basically gives you a lot of
what ant gives. (Not all, but a lot)
In Ant the logic is in the tasks, written
I just wiped out my Ant directory and checked out all the latest
from CVS. So as far as I can tell, I have nothing except what's
currently checked in.
When I bootstrap, I get a few errors:
* The first is when it's trying to build the JUnit optional
package. The class AggregateTransformer is
Paul,
--
Conor MacNeill
[EMAIL PROTECTED]
Cortex eBusiness
http://www.cortexebusiness.com.au
-Original Message-
* Once I fix the above error, I get down to almost the end of
the build, and it's trying to copy files from src/bin in the
main target. I don't see any src/bin in the
Might as well chime in on this one...
Which tool is best is completely situation-dependent -- a really fine
wrench is all well and good, unless what you really need is a hammer. If
Make is doing what you need it to do, keep using it -- personally, I
prefer Jam for C/C++ development environments,
I would like to be able to compile code (using the
javac task) starting from my current directory path and including any
subdirectories, with my build.xml being in a different directory.
Is there a way to get current directory?
Thanks,
John McCormick
Wavebend Solutions
38 matches
Mail list logo