RE: compiling and creating jars ....

2002-01-29 Thread Rosemarie Hannan (Financial IQ)
Hi Adam Thanks for your info, I rectified the problem but it still does not work and pulls through the same error. If you have any more suggestions that would be great! Rose -Original Message- From: Adam Murdoch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 9:26 AM To: An

Re: very, very cool!

2002-01-29 Thread Peter Donald
Hi, thanks for that - it is appreciated by ant dev :) On Wed, 30 Jan 2002 12:55, Alan Pearson wrote: > Many of the messages I read on this alias are from frustrated people who > are grappling with configuration issues, asking "how do I write this..." > type questions, etc. And thats what a user

AW: Compiling of JSP-Sites

2002-01-29 Thread Peter Kesch
In the alpha of ant 1.5 is a task called jspc or something like that and that task can compile JSPs but our teamleader want me not to use an alpha Version. Peter -Ursprungliche Nachricht- Von: Antony Stace [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 30. Januar 2002 08:47 An: Ant Users

Re: Compiling of JSP-Sites

2002-01-29 Thread Antony Stace
> Hi there > > is there any way to compile JSPs without using an alpha Version of Ant 1.5 > Is this feature in the latest development version of ant? Cheers Tony _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.y

Compiling of JSP-Sites

2002-01-29 Thread Peter Kesch
Hi there is there any way to compile JSPs without using an alpha Version of Ant 1.5 In our project we have over 20 JSPs and we want to exclude all errors which are based on incorrect writing of a variable or command. So we only have to handle with runtime errors if the web-client is build.

RE: compiling and creating jars ....

2002-01-29 Thread Adam Murdoch
> -Original Message- > From: Rosemarie Hannan (Financial IQ) [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 30 January 2002 5:20 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: compiling and creating jars > Importance: High > > > Hi > > I am having a problem trying to compil

compiling and creating jars ....

2002-01-29 Thread Rosemarie Hannan (Financial IQ)
Hi I am having a problem trying to compile the following, I have set up my class path in the environment and it still gives me the error - it creates the java file, but does not compile and it fails just before I specify the classname and path. If any one can offer some suggestions I would appr

Re: ant & junit works on win98, fails on deadrat 6.2 (solved!)

2002-01-29 Thread Ray Tayek
At 04:14 PM 1/29/02 +0100, you wrote: >On Tue, 29 Jan 2002, Ray Tayek <[EMAIL PROTECTED]> wrote: > > > > >/usr/ant/lib/optional.jar:/usr/ant/lib/junit.jar:/usr/ant/lib/ant.jar:/usr/jdk/lib/tools.jar > >This looks as if it should work, but it doesn't find the definition of >the junit task. > >Whe

another inconsistency in the documentation for 1.4.1

2002-01-29 Thread Jon Schewe
According to the documentation for the javadoc task I can do a linkoffline like so: However when I run this I get: /home/jpschewe/projects/assert/build.xml:215: Class org.apache.tools.ant.taskdefs.Javadoc$LinkArgument doesn't support the "packagelist" attribute. Ant version information

Does Ant's version 1.4.1 support Java's jdk1.1.8?

2002-01-29 Thread Zhendi Su
Hi, I am using Ant 1.4.1 on a UNIX (Solaris) platform.  I have two compilers available: jdk1.1.8 and jdk 1.2.2.  When I ran ant using jdk 1.2.2 the build was successful.  But when I change to jdk1.1.8, the build failed.  I basically switched the compilers by typing: setenv JAVA_HOME  /local/java/

Running Ants from a java program.

2002-01-29 Thread Joseph Teo Chee Ming
Hello, Can Ants be called from a .java program? If so, how do I pass in the build.xml into ants? thanks... Joe -- To unsubscribe, e-mail: For additional commands, e-mail:

[Fwd: Using Ant's javac problem]

2002-01-29 Thread Zhendi Su
Hi, Please see the forwarded message. Thanks. --- Begin Message --- Hi, I am trying to compile some .java files using Ant's javac task.  Everything worked fine until I added a huge zip file to my class path (about 166MB).  Basically my build file looks like:         afrz/crmcon/kdv7core

Re: java task

2002-01-29 Thread Gurdev Parmar
Thanks Diane! The "fork" attribute worked. The documentation in the ant manual for "fork" is so obscure I never tried that option. The thought was that what benefit I'll derive in making the java task run in another VM. I still do not understand how/why it works now. -Gurdev - Original Mess

very, very cool!

2002-01-29 Thread Alan Pearson
Many of the messages I read on this alias are from frustrated people who are grappling with configuration issues, asking "how do I write this..." type questions, etc. And thats what a users alias is for, of course. But I thought I'd just send out a general "thanks and kudos" message to the devel

Re: java task

2002-01-29 Thread Diane Holt
--- Gurdev Parmar <[EMAIL PROTECTED]> wrote: > Is this how you would translate the below given java command to an > equivalent java task? > > java command: > ${JDK_HOME}/bin/java -Dproject.home=${PROJ_HOME} -classpath ${CP} > project.Classname -keepgenerated -compiler ${JDK_HOME}/bin/javac > -cla

Re: Executing a target if a file exists

2002-01-29 Thread Diane Holt
--- KC Baltz <[EMAIL PROTECTED]> wrote: > Take a look at the task. I know it can set a property to > "true" if it finds a file, but I'm not sure if it's limited to looking > for that file in the classpath or not. It never looks for a (on-disk) 'file' (ie., specified with the 'file' attribute)

Re: FilSet and PropertyTask

2002-01-29 Thread Erik Hatcher
No, it currently cannot take a fileset. - Original Message - From: "Jeff" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 29, 2002 10:48 AM Subject: FilSet and PropertyTask > > > I have been tasked to add a version to each of the various > directory levels in our pro

java task

2002-01-29 Thread Gurdev Parmar
Hi, Is this how you would translate the below given java command to an equivalent java task? java command: ${JDK_HOME}/bin/java -Dproject.home=${PROJ_HOME} -classpath ${CP} project.Classname -keepgenerated -compiler ${JDK_HOME}/bin/javac -classpath ${OUT_DIR};${CP} ${OUT_DIR}/project.jar ${PROJEC

Re: Append mode

2002-01-29 Thread Diane Holt
--- Hans Pointner <[EMAIL PROTECTED]> wrote: > how can I use move/copy to append a list of files to one file? You can't -- but you could use the task that was submitted to the ant-dev mailing list: http://marc.theaimsgroup.com/?l=ant-dev&m=97942383311788&w=2 (Or I suppose you could do it with

Re: Message: modern compiler not found, classic will be used

2002-01-29 Thread Diane Holt
--- Brian Burch <[EMAIL PROTECTED]> wrote: > In my case, and possibly some of the others back in time, the situation > became confusing to diagnose because :- > 1. JAVA_HOME *was* "apparently" set properly to the jdk 1.3. > 2. javac ran perfectly from the command line. > 3. tools.jar was NOT on th

FilSet and PropertyTask

2002-01-29 Thread Jeff
I have been tasked to add a version to each of the various directory levels in our project. PropertyFile Task does exactly what I need, but I am unable to pass it a FileSet. Is there a way to pass a FileSet to the PropertyFile Task? Scenario: given a structure com.company.commontools.

Re: java task problem

2002-01-29 Thread KC Baltz
Yes. I suspect the class you are executing with makes a call to System.exit() which exits the Ant process as well. It might be avoidable if you fork="true" the task. K.C. At 02:13 PM 1/29/02, you wrote: >Hi, >I am facing a strange problem with the java task. >My build exits whenever it co

java task problem

2002-01-29 Thread Gurdev Parmar
Hi, I am facing a strange problem with the java task. My build exits whenever it comes across a java task even if there are more tasks to be executed afterwards. Doesn't anyone have a clue as to what is wrong here? I am using ant 1.3. Thanks, Gurdev -- To unsubscribe, e-mail:

Fork error on Linux - why is it looking for i686

2002-01-29 Thread Scott Ellsworth
Hi, all. When I javac a selection of files without the fork option on Linux, it works. If I set fork=yes in my javac task, I get the error compile-debug: [javac] Compiling 1022 source files to /usr/people/sellswor/build/build/org/metagraph/build/metagraph/ant- build/debug [javac] ja

Re: Message: modern compiler not found, classic will be used

2002-01-29 Thread Steve Loughran
- Original Message - From: "Brian Burch" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Tuesday, January 29, 2002 12:37 Subject: Message: modern compiler not found, classic will be used > In my original post, suggested an update to the message, or the documentation,

Message: modern compiler not found, classic will be used

2002-01-29 Thread Brian Burch
Re: Antwort: Odd Behaviour ... I think I can be more helpful if I move away from the flames X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Tue, 29 Jan 2002 06:07:54 -0800 (PST), Diane Holt wrote: > >Does anything in the questions/info Stefan provided here: > http://marc.theaimsgroup.

RE: Ant keeps growing in memory when calling multiple scripts

2002-01-29 Thread Bevan Arps
At 15:15 29/01/2002 -0500, David Medinets wrote: >Create XSLT inside the build file sounds cool. Is there a web interface to >the ant-dev archives? Go to http://jakarta.apache.org/ant/index.html and find the link "Search the Dev Mailing List" right near the bottom. Cheers, Bevan. -- "Programm

RE: Ant keeps growing in memory when calling multiple scripts

2002-01-29 Thread David Medinets
Create XSLT inside the build file sounds cool. Is there a web interface to the ant-dev archives? David Medinets, Consultant, http://www.codebits.com World-Renowned Nested Tree Modeler > -Original Message- > From: Bevan Arps [mailto:[EMAIL PROTECTED]] > > Check out my post to ant-dev a co

Append mode

2002-01-29 Thread Hans Pointner
Hi, how can I use move/copy to append a list of files to one file? Thanks in advance Hans Pointner EC live! www.ec-live.com -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Ant keeps growing in memory when calling multiple scripts

2002-01-29 Thread Bevan Arps
At 09:54 29/01/2002 -0800, James Bullington wrote: >I also seem to have the problem except that my build file is all one >file. It seems to happen when I make use of lots of target...>. >My solution was to bump up the size of memory and stack, but this seems >to be a temporary fix. >I am using an

Re: Executing a target if a file exists

2002-01-29 Thread Frank E. Weiss
Use the available task and the if/unless attributes of the target. Only targets can be conditionally run this way, the available task has to be wrapped in its own target, and the targets need to be chained with the depends attribute. Example:

Re: "select" isn't broken

2002-01-29 Thread David Stagner
Herman, Dave wrote: >>Tip #26.1: "select" *usually* isn't broken. >> > > True, but in 99% of the cases (statistics blatantly fabricated), people sit > and stare at their screen and think, "Java must be insane," or "my computer > must be insane," or "the basic laws of the universe must have just

Re: "select" isn't broken

2002-01-29 Thread Steve Loughran
> > Tip #26.1: "select" *usually* isn't broken. Select is sometimes disabled for backwards compatibility reasons :) -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Executing a target if a file exists

2002-01-29 Thread KC Baltz
Take a look at the task. I know it can set a property to "true" if it finds a file, but I'm not sure if it's limited to looking for that file in the classpath or not. From the docs: "Sets a property if a resource is available at runtime. This resource can be a file, a directory, a class in

Executing a target if a file exists

2002-01-29 Thread lduperval
Hello, I want to do something like this: So basically, if file.xml exists, the build target tries to compile using it as the buildfile. Otherwise, nothing happens. It looks like it can be done, but I'm not sure how. Thanks, L -- Laurent Duperval

RE: JavaDoc generation

2002-01-29 Thread Thomas Tuft Muller
Ylan, The problem is that Javadoc needs to know the directory(ies) to find the sources. E.g. if you specify com.mycompany.* and test.mycompany.*, the sourcepath must be set to the folder(s) for which subfolders must be test and com. I wanted a generic javadoc task defined in a top-level build fi

RE: JavaDoc generation

2002-01-29 Thread Ylan Segal
One question about this javadoc problem. Can all this be done with filesets? The javadoc page of the manuel says that you can use a PATH-LIKE structure for specifing the sourcepath. Wouldn't this be enough, considering that you can use wildcard in packagenames also, like com.*, org.*, etc. Just

[OT] RE: "select" isn't broken

2002-01-29 Thread Ylan Segal
Just wanted to share my 2 cents. I recently started using junit. The first time I took a look at the framework, I really thought that it was not going to be of any use to me. So I read an article that describes how one would use it in a real like situation. Of course, now I am a total convert an

RE: JavaDoc generation

2002-01-29 Thread Thomas Tuft Muller
Dave, With my extremely poor javascript capabilites, I just spent 3 hours finding that out(!). Thanx anyway. Btw, you're entitled to send untestet code snippets as long as you include the non-tested disclaimer - just as you did! Thanx a lot for the code-snippet and the idea of using JavaScript.

Re: Ant keeps growing in memory when calling multiple scripts

2002-01-29 Thread James Bullington
I also seem to have the problem except that my build file is all one file. It seems to happen when I make use of lots of . My solution was to bump up the size of memory and stack, but this seems to be a temporary fix. I am using ant 1.3 which came with Weblogic 6.1. --Jim --- Guilhem Molines <[

RE: JavaDoc generation

2002-01-29 Thread Herman, Dave
Yep, that was the problem: I forgot the "var" in the for-loop. To fix the example I sent, change this: for (i = 0; i < subs.length; i++) { ... } to this: for (var i = 0; i < subs.length; i++) { ... } I suppose I ought to test out my suggestions before I

RE: "select" isn't broken

2002-01-29 Thread Herman, Dave
> Tip #26.1: "select" *usually* isn't broken. True, but in 99% of the cases (statistics blatantly fabricated), people sit and stare at their screen and think, "Java must be insane," or "my computer must be insane," or "the basic laws of the universe must have just shifted before my very eyes." Th

RE: Launch executables from Ant, then shutdown?

2002-01-29 Thread Charles Hudak
I've submitted an improvement to the exec task to allow you to 'fire and forget' an executable (actually someone submitted my code on my behalf). If you don't want to wait until/if the update is distributed, I can send you the code. It does exactly what you want. I wanted to do the same thing you

Re: Classpath for

2002-01-29 Thread Diane Holt
--- Vojta Filip <[EMAIL PROTECTED]> wrote: > I'm using with a classpath which do not exit at the execution > time (classpath directory is created in the executed aplication). But > removes from classpath all directories which do not exist :-( . > How can I force nonexisting directory to classpat

Re: ant & junit works on win98, fails on deadrat 6.2

2002-01-29 Thread Diane Holt
--- Ray Tayek <[EMAIL PROTECTED]> wrote: > iirc, error does not mean that the test failed. some thing else is wrong > i think. if you can, run it with -debug and see what it says. Oh, I fully expected the test to error-out, since I don't have your test :) I included that snippet to show you tha

Re: ant & junit works on win98, fails on deadrat 6.2

2002-01-29 Thread Ray Tayek
At 04:05 PM 1/29/02 +0100, you wrote: >On Tue, 29 Jan 2002, Ray Tayek <[EMAIL PROTECTED]> wrote: > > At 03:08 PM 1/29/02 +0100, you wrote: > > >>The rule of thumb for all optional tasks that require external > >>libraries is: if the definition of the task is part of the system > >>CLASSPATH, all l

Re: ant & junit works on win98, fails on deadrat 6.2

2002-01-29 Thread Stefan Bodewig
On Tue, 29 Jan 2002, Ray Tayek <[EMAIL PROTECTED]> wrote: > >/usr/ant/lib/optional.jar:/usr/ant/lib/junit.jar:/usr/ant/lib/ant.jar:/usr/jdk/lib/tools.jar This looks as if it should work, but it doesn't find the definition of the junit task. Where did you get the optional.jar from? You said it

Re: ant & junit works on win98, fails on deadrat 6.2

2002-01-29 Thread Stefan Bodewig
On Tue, 29 Jan 2002, Ray Tayek <[EMAIL PROTECTED]> wrote: > At 03:08 PM 1/29/02 +0100, you wrote: >>The rule of thumb for all optional tasks that require external >>libraries is: if the definition of the task is part of the system >>CLASSPATH, all libraries it needs have to be on the system CLASS

Re: ant & junit works on win98, fails on deadrat 6.2

2002-01-29 Thread Ray Tayek
it +Task: tstamp +Task: mkdir +Target: compile +Task: javac +Target: test +Target: dist +Task: mkdir +Task: jar +Target: clean +Task: delete +Task: delete Build sequence for target `dist' is [init, compile, test, dist] Complete build

Re: Oh dear: was: Antwort: Odd Behaviour ...

2002-01-29 Thread Diane Holt
--- Fred Brkich <[EMAIL PROTECTED]> wrote: > As for the "don't blame Ant" drift, well in my more tyrannical moments > I would insist that the definition of a software product would INCLUDE > the documentation that comes with it, > > I had exactly the same symptoms. I was using my own execution >

Re: ant & junit works on win98, fails on deadrat 6.2

2002-01-29 Thread Diane Holt
--- Stefan Bodewig <[EMAIL PROTECTED]> wrote: > classname="org.apache.tools.ant.taskdefs.junit.JUnitTask"> ^optional. Diane = ([EMAIL PROTECTED]) __ Do You Yahoo!? Great stuff see

Re: ant & junit works on win98, fails on deadrat 6.2

2002-01-29 Thread Ray Tayek
At 03:08 PM 1/29/02 +0100, you wrote: >On Mon, 28 Jan 2002, Ray Tayek <[EMAIL PROTECTED]> wrote: > > > i cleaned up the script and added junit.jar to the classpath as you > > suggested. i still get a build failed. the same file works on > > windoze (with the actual path changed to "d:/..."). > >It

Re: ant & junit works on win98, fails on deadrat 6.2

2002-01-29 Thread Diane Holt
--- Ray Tayek <[EMAIL PROTECTED]> wrote: > >Have you tried putting it in $ANT_HOME/lib instead > > i tried that and it did not help. I picked up the target you included in an earlier mail, and all I changed was to get rid of the pointer to /usr/java/junit.jar (ie., reduced your to just ) and I

RE: JavaDoc generation

2002-01-29 Thread "Schaible, Jörg"
Hi Thomas, >I've never used BSF or Rhino before, nor have I done any >serious Javascript >programming, but it seems strange to me that recursion is not properly >supported. ahem, JavaScript supports recursion very well and Rhino is (one of) the best JavaScript implementations. Sadly, most peopl

RE: How do I empty a directory in 1.4.1

2002-01-29 Thread Phil Surette
This will delete everything in a directory but leave the directory itself alone. It has the advantage that it won't fail under win32 if you have a dos prompt open in the 'test' directory: The defaultexcludes='no' is important in case you edited some files

Re: ant & junit works on win98, fails on deadrat 6.2

2002-01-29 Thread Stefan Bodewig
On Mon, 28 Jan 2002, Ray Tayek <[EMAIL PROTECTED]> wrote: > i cleaned up the script and added junit.jar to the classpath as you > suggested. i still get a build failed. the same file works on > windoze (with the actual path changed to "d:/..."). It works on Windows because junit is part of your

Re: ant & junit works on win98, fails on deadrat 6.2

2002-01-29 Thread Ray Tayek
At 05:33 AM 1/29/02 -0800, you wrote: >Is there some reason you need junit.jar in /usr/java? no, just wanted to keep them separate. >Have you tried putting it in $ANT_HOME/lib instead (which would also be >more portable >across your Win* and *nix boxes)? You wouldn't need to include it in the >

Re: Antwort: Odd Behaviour ...

2002-01-29 Thread Diane Holt
--- almirena/scan <[EMAIL PROTECTED]> wrote: > No sorry but the advice did not work. The system could not find > either the "classic" or the "modern compilers, and therefore the > build kept failing. I think this is unacceptable behaviour for > a tool like "ant", but I don't understand it. I solv

Oh dear: was: Antwort: Odd Behaviour ...

2002-01-29 Thread Fred Brkich
Hi Brian, Thanks for your comments, but I must confess I am a bear of little brain when it comes to Unix. Or rather I would like to be ... I dream of the day when the latest whizz-bang techo thingy for Unix and/or Java is so whizz-bang and groovey that I don't need a three week introduction cours

Re: ant & junit works on win98, fails on deadrat 6.2

2002-01-29 Thread Diane Holt
Is there some reason you need junit.jar in /usr/java? Have you tried putting it in $ANT_HOME/lib instead (which would also be more portable across your Win* and *nix boxes)? You wouldn't need to include it in the if it was in $ANT_HOME/lib, and it should all work as expected (not sure why it does

Re: Launch executables from Ant, then shutdown?

2002-01-29 Thread Diane Holt
--- Fabrice Delhoste <[EMAIL PROTECTED]> wrote: > I need a way to launch an executable from Ant at my build end without > waiting for the end of this process and quitting Ant immediately to free > jvm resources (ex: launching Tomcat). How can I achieve that? I should think you could use something

RE: java task exit(1) but build successful

2002-01-29 Thread Nathan Coast
please ignore me, I'm having difficulty telling the difference between failonerror="true" and failonerror="false". and its only tuesday - I may as well give up for the week now! -Original Message- From: Nathan Coast [mailto:[EMAIL PROTECTED]] Sent: 29 January 2002 12:21 To: Ant Users L

RE: AElfred parser?

2002-01-29 Thread Daniel Hoppe
How exactly is your setup? Are you launching your application from ANT, are you using the style task,...? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 29, 2002 11:27 AM > To: Ant Users List > Subject: RE: AElfred parser? > > > > >

java task exit(1) but build successful

2002-01-29 Thread Nathan Coast
Hi, I have java tasks that exit with System.exit(1); I would expect the overall build to fail as the failonerror="true" flag is set. However the Build Successful message is displayed. ant 1.4.1 on Win 2k pro Cheers Nathan ***

Launch executables from Ant, then shutdown?

2002-01-29 Thread Fabrice Delhoste
Hi *, I need a way to launch an executable from Ant at my build end without waiting for the end of this process and quitting Ant immediately to free jvm resources (ex: launching Tomcat). How can I achieve that? Thanks in advance, Fabrice -- To unsubscribe, e-mail:

Re: Antwort: Odd Behaviour ...

2002-01-29 Thread Erik Hatcher
A rule I really like is from the awesome book, The Pragmatic Programmer (recommend to everyone!): Tip #26: "select" Isn't Broken (meaning that chances are problems that occur are your own fault and not the O/S, database, JVM, Ant, etc - so look at your own code, configuration, environment, e

RE: AElfred parser?

2002-01-29 Thread cramsden
Thanks for your help. Right I have removed the javax.xm.parsers.SAXParserFactory from the saxon.jar. I have put the saxon.jar in the ant\lib directory and also on the classpath and I still get the error, is there something else I should be doing? -- To unsubscribe, e-mail:

RE: JavaDoc generation

2002-01-29 Thread Thomas Tuft Muller
Dave, This should obviously work, but the script only enters the first folder from the top-level, i.e. it seems like it does not support recursion beyond one level. I've never used BSF or Rhino before, nor have I done any serious Javascript programming, but it seems strange to me that recursion

Re: Antwort: Odd Behaviour ...

2002-01-29 Thread Brian Burch
I had a similar problem when I'd just started using ant. I suspected I would not get a lot of sympathy from the community because I was using OS2. I spent a lot of time investigating and eventually found a helpful posting much earlier in the archive. X-Spam-Rating: daedalus.apache.org 1.6.2 0/10