Re: taskdef'ing junit

2001-11-21 Thread Stefan Bodewig
On Sun, 18 Nov 2001, Peter Donald [EMAIL PROTECTED] wrote: So you will have to remove optional.jar from ${ant.home}/lib if you want to taskdef junit. Or remove the JUnit task classes from there and leave the rest in optional.jar (just to do the same again when you want to use style without

Re: Special characters in manual?

2001-11-21 Thread Stefan Bodewig
On Mon, 19 Nov 2001, James Bullington [EMAIL PROTECTED] wrote: When I watched my build script work, I noticed that the dollar signs ($) dissappeared. Yes, $ is special and needs to be escaped by yet another $. Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

Re: class.forName()

2001-11-21 Thread Stefan Bodewig
On Mon, 19 Nov 2001, Don Taylor [EMAIL PROTECTED] wrote: --- Stefan Bodewig [EMAIL PROTECTED] wrote: snip Everything you have in your CLASSPATH or in ANT_HOME/lib will end up in your system classloader when you run Ant. If your task implementation can be loaded via this classloader,

Re: Download antidote

2001-11-21 Thread Magesh Umasankar
No. There isn't such a link. For a list of available builds, visit http://jakarta.apache.org/builds/ Magesh - Original Message - From: martin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 20, 2001 3:37 PM Subject: Download antidote Is there a link to download the

Starting exec in separate Thread

2001-11-21 Thread Holger Danske
Hallo Ant-Users. Following problem. I want to restart the Tomcat 3.2.1 Server by using his shutdown.bat and startup.bat. target name=restart echo message=${appserver.home}/ exec dir=${appserver.home}/bin executable=cmd.exe arg line=/c shutdown.bat/ /exec exec

concat files ?

2001-11-21 Thread Cyriaque Dupoirieux
Hello, I need to concat several files into one file. How can I do this with Ant 1.3 ? Thank you for your help, Regards, Cyriaque DUPOIRIEUX, -- Cyriaque Dupoirieux mailto:[EMAIL PROTECTED] PCO Technologies Burolines - 2 ter rue Marcel Doret 31700 Blagnac Tél : 05.34.60.44.13 -

Re: concat files ?

2001-11-21 Thread James Bullington
The only way that I could think of doing it was with a custom program or task. --Jim --- Cyriaque Dupoirieux [EMAIL PROTECTED] wrote: Hello, I need to concat several files into one file. How can I do this with Ant 1.3 ? Thank you for your help, Regards, Cyriaque

RE: concat files ?

2001-11-21 Thread Helliwell, Matthew
Or you could use the exec task. -Original Message- From: James Bullington [mailto:[EMAIL PROTECTED]] Sent: 21 November 2001 15:36 To: Ant Users List Subject: Re: concat files ? The only way that I could think of doing it was with a custom program or task. --Jim --- Cyriaque

RE: build.xml file and compilation

2001-11-21 Thread Ylan Segal
I believe that the problem is that your directory structure for the source files does not follow the packaga naming convention and that is causing you the problems. If your package is: com.informactis.blabla then your source should be organized like: com informactis

Re: JUnit problems

2001-11-21 Thread Stefan Bodewig
On Mon, 19 Nov 2001, Stefano Mancarella [EMAIL PROTECTED] wrote: If it's useful I can set up a small test case for the problem... yes, please. Thread.currentThread().getContextClassLoader().getResourceAsStream(resource Name) but, as I said, this only works with fork=true (which leads to

Newbie Questions

2001-11-21 Thread Michael J McGonagle
Hello all, I have been using Ant now for about a week. And after reading about it, I have become convinced that it would be a good solution for my building needs. Basically, I have a project of unifying several different code bases (including three different languages [Saol, C, and Java]), as

Re: JUnit problems

2001-11-21 Thread Stefano Mancarella
- Original Message - From: Stefan Bodewig [EMAIL PROTECTED] Subject: Re: JUnit problems If it's useful I can set up a small test case for the problem... yes, please. I'll attach it to the bug report I'm going to file on bugzilla.

Re: [POLL] jakarta-ant-templates (Generic Ant-based project templates)

2001-11-21 Thread Rolf Katzenberger
On Wed, 21 Nov 2001 12:22:42 +1100, Jeff Turner [EMAIL PROTECTED] wrote: [snip] There is one useful trick here: declare a 'main' target which is the default, and then call others from that. Then you can have build.properties declare it's default target ('jar' in most projects, 'dist' in

Re: JUnit problems

2001-11-21 Thread Stefano Mancarella
- Original Message - From: Stefano Mancarella [EMAIL PROTECTED] Subject: Re: JUnit problems If it's useful I can set up a small test case for the problem... yes, please. I'll attach it to the bug report I'm going to file on bugzilla. Done! I'm attaching it also here.

Re: Newbie Questions

2001-11-21 Thread James Bullington
Ant is the standard build system for BEA Weblogic 6.1. One way, if you understand J2EE, is to get a demo copy from BEA and take a look at the examples. There are lots of examples of build scripts to choose from. --James Bullington --- Michael J McGonagle [EMAIL PROTECTED] wrote: Hello all,

Re: Failing Junit test only under Ant

2001-11-21 Thread otisg
Hello, Does anyone know if there is a more elegant solution to this problem? I thought of doing this, but I was hoping there is a better, more programmatic perhaps, way of doing this. Thanks, Otis On Sat, 10 November 2001, Steve Loughran wrote: As a short term hack why not add the

Re: Failing Junit test only under Ant

2001-11-21 Thread Steve Loughran
I am confused here. Fixing your unit tests to work reliably regardless of user time zone *is* the elegant solution. The fact that your code doesnt work in all timezones seems like a defect to me, and now that you can replicate it means that you can fix it. When I lived in GMT0BST there was

Re: concat files ?

2001-11-21 Thread Diane Holt
A task was submitted to the user list awhile back to do this: http://marc.theaimsgroup.com/?l=ant-userm=99024114802842w=2 There may have been others submitted along the way as well -- I just stopped searching at the first one I found :) Diane --- Cyriaque Dupoirieux [EMAIL PROTECTED] wrote:

Re: concat files ?

2001-11-21 Thread Bill Burton
Hello, You could write a simple script and call it from exec. The script could assume its first argument is the target file and all subsequent arguments are the files that should be appended to the target file. On UNIX, it could be only two lines of code: #!/bin/sh target_file=$1

ZipSource error and weblogic.home with weblogic task

2001-11-21 Thread Bruce Atherton
I've got a problem where I need to set a property on the JVM that runs the weblogic.ejbc compile portion of the ejbjar task, and I need to know how that can be done, or whether I need to submit a patch for this. First, let me describe the problem I've been having. I am running an Ant build on

Re: Newbie Questions

2001-11-21 Thread Michael J McGonagle
James Bullington wrote: Ant is the standard build system for BEA Weblogic 6.1. One way, if you understand J2EE, is to get a demo copy from BEA and take a look at the examples. There are lots of examples of build scripts to choose from. Thanks, James, I downloaded the archive (*.zip)

Soft link task?

2001-11-21 Thread David Walend
I need to create a soft link, basically doing ln -s filename linkname . I'm using exec now, but would like to do this more cleanly. Thanks, Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

ant hangs after shell based background forking

2001-11-21 Thread Klemens Hemm
Hi, overall I want to start a daemon by ant-1.4.1 the following fragment should start xlogo in the background and return The corresponding command would be sh -c logo exec executable=sh arg value=-c / arg value=xlogo amp; / /exec this 1) executes/bin/sh 2) executes xlogo

PVCS workspace attribute

2001-11-21 Thread John Wonton
Hello, I've looked in Bugzilla with no luck, so I thought I'd try asking everyone else. I'm using the PVCS optional task and trying to specify a particular workspace, rather than use the default. Example: pvcs workspace=Here is a private workspace ... Could the problem be the spaces in

Re: Newbie Questions

2001-11-21 Thread Peter Donald
Almost all of the jakarta projects use ant in some for or another. It may be an idea to download the source for one of them and have a look at their build files. Ant itself has a relatively well structured build file (except it is rather largish for an example) if thats what you are looking

RE: Soft link task?

2001-11-21 Thread Brett Porter
Not that I know of. I can't see the problem with using exec - the only reason not use exec is lack of portability, but soft links aren't portable outside of Unix anyway (anywhere softlinks exist, I'd say so does ln -s) Cheers, Brett -Original Message- From: David Walend [mailto:[EMAIL

Re: Newbie Questions

2001-11-21 Thread Michael J McGonagle
Peter Donald wrote: Almost all of the jakarta projects use ant in some for or another. It may be an idea to download the source for one of them and have a look at their build files. Ant itself has a relatively well structured build file (except it is rather largish for an example) if

Re: [POLL] jakarta-ant-templates (Generic Ant-based project templates)

2001-11-21 Thread Jeff Turner
On Wed, Nov 21, 2001 at 06:14:42PM +0100, Rolf Katzenberger wrote: On Wed, 21 Nov 2001 12:22:42 +1100, Jeff Turner [EMAIL PROTECTED] wrote: [snip; Rolf:] Well... ummm... :o) I already started such a sourceforge project a while ago, Ant Heap (http://sourceforge.net/projects/antheap) -

Re: [POLL] jakarta-ant-templates (Generic Ant-based project templates)

2001-11-21 Thread Peter Donald
Hi, sounds good but I have a request. Could you call these recipies and not templates? Already the term template is used to mean something completely different in context of Ant2. -- Cheers, Pete -- Mark Twain: In the real world, the

Re: [POLL] jakarta-ant-templates (Generic Ant-based project templates)

2001-11-21 Thread Jeff Turner
On Thu, Nov 22, 2001 at 10:22:22AM +1100, Peter Donald wrote: Hi, sounds good but I have a request. Could you call these recipies and not templates? Already the term template is used to mean something completely different in context of Ant2. Then it sounds like you've chosen an

Re: [POLL] jakarta-ant-templates (Generic Ant-based projecttemplates)

2001-11-21 Thread Scott Ellsworth
On Wed, Nov 21, 2001 at 06:14:42PM +0100, Rolf Katzenberger wrote: On Wed, 21 Nov 2001 12:22:42 +1100, Jeff Turner [EMAIL PROTECTED] wrote: 1. Very basic, no-frills projects for the absolute beginner (javac, javadoc, java targets; just for the sake of those who like to copy and paste

Re: Newbie Questions

2001-11-21 Thread Jeff Turner
On Wed, Nov 21, 2001 at 10:36:12AM -0600, Michael J McGonagle wrote: Hello all, [..] Anyway, I should really be focusing on my question. I would be interested in peeking over someones shoulder, and take a look at their build.xml files, and possible try to build your project on my machine [..]

Re: concat files ?

2001-11-21 Thread Stefan Bodewig
On Wed, 21 Nov 2001, Bill Burton [EMAIL PROTECTED] wrote: You could do this on UNIX without an external script but you would have to execute the entire command line through /bin/sh -c cat file1 file2 file3 target_file. wouldn't exec executable=cat output=target_file arg file=file1 /

Re: Soft link task?

2001-11-21 Thread Stefan Bodewig
at least two versions have been submitted to ant-dev (serach the archive), but none has been committed yet. Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: concat files ?

2001-11-21 Thread Steve Loughran
- Original Message - From: Stefan Bodewig [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 21, 2001 10:28 PM Subject: Re: concat files ? On Wed, 21 Nov 2001, Bill Burton [EMAIL PROTECTED] wrote: You could do this on UNIX without an external script but you would