RE: is this a bug in ANT 1.4.1

2002-03-07 Thread Jon Skeet
> my classpath contains a directory in which a java file is > lying according to > its package structure.(say "com.abc ") > > i'm trying to compile another file which imports this file > through ant but ant gives me a compilation error .. on the > imported file... > saying cannot resolve symbol

is this a bug in ANT 1.4.1

2002-03-07 Thread Sujan Digumarti
my classpath contains a directory in which a java file is lying according to its package structure.(say "com.abc ") i'm trying to compile another file which imports this file through ant but ant gives me a compilation error .. on the imported file... saying cannot resolve symbol i tried to co

Re: Can't find java/lang/Object

2002-03-07 Thread Stefan Bodewig
What does java -version say when you execute it on the command line? Kaffe? Stefan -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: antcontrib: TryCatchTask.java problem

2002-03-07 Thread Mike Sexter
> This is what I get when I try your example... > > Diane > = >([EMAIL PROTECTED]) Well Diane, that's exactly what it's supposed to say so clearly I've got something screwed up. Thanks for taking the time to check it out. Which release of ant and java did you use and what platform did you

Re: antcontrib: TryCatchTask.java problem

2002-03-07 Thread Diane Holt
--- Mike Sexter <[EMAIL PROTECTED]> wrote: > Hi, > > I'm having a problem using the 'trycatch' task defined by > TryCatchTask.java from the SourceForge 'antcontrib' project. This is what I get when I try your example: test.it: [trycatch] Caught exception: Tada! [echo] In . [echo] In

antcontrib: TryCatchTask.java problem

2002-03-07 Thread Mike Sexter
Hi, I'm having a problem using the 'trycatch' task defined by TryCatchTask.java from the SourceForge 'antcontrib' project. However, I don't know if this problem is particular to that task or custom tasks in general. The problem is a bit deep inside ant for me to figure out. Perhaps someone ca

Re: String translation/regex

2002-03-07 Thread Diane Holt
--- Mark Derricutt <[EMAIL PROTECTED]> wrote: > This looks it'll do me, where does one find the script tag? Its not in > optional/standard so I assume its another independant jar I need? The

RE: Single or Multiple build.xml files?

2002-03-07 Thread Donald Mitchell
Leo, It depends on how complicated your system is. You can start with one and as things get more complicated refactor it. I wouldn't use anything quite like Makefiles, but you may want to have several ant files each with common targets (like compile, jar, clean, etc). That way you can have one

Re: How to conditionally add params to an

2002-03-07 Thread Diane Holt
--- "Tenchi-kun (Elliott)" <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > The drawback to doing it this way is that there's no real connection between the two targets (other than that they both test on the same property). In other words, you'd

Single or Multiple build.xml files?

2002-03-07 Thread Leo
Hi All, I am transitioning the scripts of a project to Ant. I have been wondering whether a single file should be used or a hierarchy of build.xml files like MakeFiles is the better option. The samples I have seen all use a single and I wonder whether there is a disadvantage to using multiple

Re: ANT and WSAD/Eclipse

2002-03-07 Thread dIon Gillard
Koegel, Michael wrote: >Hi, > >I try to run my build.xml from WebSphere Application Developer and only get >java.class.path = D:\Programme\IBM\Application Developer\startup.jar >from my init task. After that one of my

Re: How to conditionally add params to an

2002-03-07 Thread Tenchi-kun (Elliott)
On Thu, 7 Mar 2002, Tenchi-kun (Elliott) wrote: [...] ;) and then elsewhere you had: ;) ;) ;) ;) ;) ;) ;) ;) [...] Close but not quite: One of those days, - e [ Elliott Lee -- RT

Re: How to conditionally add params to an

2002-03-07 Thread Tenchi-kun (Elliott)
Oops. Ignore my previous mail. I hit the Send key combo instead of the Cancel key combo. :P ... oh well, since you can't take back a sent message I might as well write something ... What I *was* thinking was some way to make use of the "unless" attribute in the tag. But, seeing as how you w

Re: How to conditionally add params to an

2002-03-07 Thread Tenchi-kun (Elliott)
In a convoluted way, couldn't you do something like: On Thu, 7 Mar 2002, Steve Cohen wrote: ;) there must be a way to do this, but I don't know what it is. ;) ;) I want to have in my script something like this (pseudo code): ;) ;) ;) ;)

Can't find java/lang/Object

2002-03-07 Thread James Adams
I have just reinstalled ant-1.4.1 on my machine which is a PC that was recently upgraded from Red Hat 7.1 to 7.2. Ant apparently can't find the Java classes. I have Java installed under /usr/java/j2sdk1.4.0 and my $JAVA_HOME is set to this directory. When I run ant I get the following message:

How to conditionally add params to an

2002-03-07 Thread Steve Cohen
there must be a way to do this, but I don't know what it is. I want to have in my script something like this (pseudo code): - Steve Cohen Sr. Software Engineer Ignite Sports, Inc. [EMAIL PROTECTED]

RE: Adding a custom task to default.properties

2002-03-07 Thread Phil Surette
For now, you can do this: 1)Under your ant installation directory, create the following directory: cd $ANT_HOME mkdir taskdefs 2)Extract the defaults.properties file from the lib/ant.jar into your taskdefs dir: cd taskdefs jar -xf ../lib/ant.jar org/apache/tools/ant/taskdefs/defaults.propertie

Re: Adding a custom task to default.properties

2002-03-07 Thread Erik Hatcher
Dominique - hop over to ant-dev to talk about this further. Its already under development as a proposal or two under the name "antlib". But, one major caveat to your scheme: tasks and datatypes do not have to extend from Task and DataType. The only thing that makes a task a task ultimately is i

Re: problems with ftp task to VAX server

2002-03-07 Thread Steve Loughran
- Original Message - From: "David Tuck" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Thursday, March 07, 2002 13:44 Subject: Re: problems with ftp task to VAX server > > > ftp from the command line works, using the get method > > send and mkdir both work correctly

Re: problems with ftp task to VAX server

2002-03-07 Thread David Tuck
ftp from the command line works, using the get method send and mkdir both work correctly from ant ftp task (but list does not) so the directory syntax seems ok although we have tried explicitly using other syntax variants for To: "Ant Users List" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sen

RE: Adding a custom task to default.properties

2002-03-07 Thread Dominique Devienne
Or better yet, a true plugin architecture as someone recently wrote on this list. Just having custom tasks and types in the classpath should be enough for them to be picked up. And the actual task name (used in the XML build file) can even be specified using a public static final String, and grabb

Re: Adding a custom task to default.properties

2002-03-07 Thread Erik Hatcher
Ummm, is there something wrong with these variants of ? Its right there in the documentation! :) -or- - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 07, 2002 4:04 PM Subject: Adding a custom task to default.properties > > A request

Adding a custom task to default.properties

2002-03-07 Thread David . Bailey
A request . . . . I believe that the only two ways of defining the association between a custom ant task and the class which contains the logic for the task are to include a statement in every build.xml which uses the task, or to modify the org/apache/tools/ant/taskdefs/default.properties. Inc

Re: problems with ftp task to VAX server

2002-03-07 Thread Ken Gentle
Assuming that you're VAX is running a flavor of VMS, you'll have to vary your syntax some more. Most VMS ftps would do some type of file mapping, but I don't know if ANT turns that on. Directories and files on VMS look like this: DISK1:[HOME.GENTLEJK]login.com IIRC, the TGV Multinet

problems with ftp task to VAX server

2002-03-07 Thread David Tuck
Has anyone successfully used the ftp task to retrieve files from a VAX server. The transfer target below is successful but zero files are transferred, though there are files which match. Attempts with several syntax variants have not helped. The send action works fine.

Re: String translation/regex

2002-03-07 Thread Mark Derricutt
This looks it'll do me, where does one find the script tag? Its not in optional/standard so I assume its another independant jar I need? Actually, does it have any tasks for validating javascript in jsp pages? Would be great to be able to trap any errors/problems in there before doing a dist.

Re: executing tasks ala make

2002-03-07 Thread Stefan Palme
ah, sorry, I see what you mean, I did not read until the example with the filemapper-feature... ok, thanx, I think this will work. -stefan- > yes, with and a certain fileset I can run my > task over *all* the files in the fileset. but how to > choose only the files, that would also be compile

Re: executing tasks ala make

2002-03-07 Thread Stefan Palme
yes, with and a certain fileset I can run my task over *all* the files in the fileset. but how to choose only the files, that would also be compiled by the javac-task? (that are only those files, where the .java-version is newer than the .class-version) regards -stefan- > Have a look at > -

RE: ant logo t-shirts?

2002-03-07 Thread STRAYER, JON (AIT)
Yes. > If there is interest, I can arrange for a logo file to be > created and people would be able to order t-shirts, polo's > etc. from our corporate sales division. The cost would > typically be $5 to $10 over the cost of the article to allow > for the cost of stitching the logo onto it. >

Re: executing tasks ala make

2002-03-07 Thread Erik Hatcher
Have a look at - Original Message - From: "Stefan Palme" <[EMAIL PROTECTED]> To: "Ant (E-mail)" <[EMAIL PROTECTED]> Sent: Thursday, March 07, 2002 2:01 PM Subject: executing tasks ala make -- To unsubscribe, e-mail: For additional commands, e-mail:

executing tasks ala make

2002-03-07 Thread Stefan Palme
hi, i have a build file, that defines a target "all", that "compiles" all my java-files into class-files (via the javac-task). i want to execute a given task (defined via taskdef) on every file (i want to run a beautifier on it) before javac compiles it. I DON'T(!) want the beautifier to run ove

Re: JavaScript comment stripping Task

2002-03-07 Thread Magesh Umasankar
From: "Duncan Harris" <[EMAIL PROTECTED]> > > > However I looked at the code for StripJavaComments > > as an example and it is wrong, e.g. k=a/b converts to k=ab > > and it strips all the string and char literals... oops. > Unless I'm missing the point here somehow? I have now fixed the code

Re: JavaScript comment stripping Task

2002-03-07 Thread Magesh Umasankar
From: "Duncan Harris" <[EMAIL PROTECTED]> This is getting to be more of a ant-dev question, but anyway... > [EMAIL PROTECTED] (Magesh Umasankar) wrote: > > > In Ant's CVS tree (1.5Alpha), I have recently > > committed a set of FilterReaders. Please take > > a look at it. IMHO, your task must

Re: problem in using Ant for running a CORBA client

2002-03-07 Thread Steve Loughran
try setting fork to true in the reason is that when you run java without fork, I think the org,omg stuff does not get passed down the classloader tree (only java and javax do) - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 07, 2002 00:12 S

Re: JavaScript comment stripping Task

2002-03-07 Thread Duncan Harris
[EMAIL PROTECTED] (Duncan Harris) wrote: > However I looked at the code for StripJavaComments > as an example and it is wrong, e.g. k=a/b converts to k=ab and it strips all the string and char literals... oops. Unless I'm missing the point here somehow? Duncan Harris ~~~

Ejbjar Weblogic 6.1 & I18n

2002-03-07 Thread Smiley, Paul
Hi all, You guys have been great in the past, so I hope that someone can help me out here too! I've gotten past my first round(s) of problems, thanks to you folks. What I'm trying to do is have a user via the GUI input international info from which we dynamically create beans, jar them up and ho

Re: JavaScript comment stripping Task

2002-03-07 Thread Duncan Harris
[EMAIL PROTECTED] (Magesh Umasankar) wrote: > In Ant's CVS tree (1.5Alpha), I have recently > committed a set of FilterReaders. Please take > a look at it. IMHO, your task must instead be > implemented as a filterreader that can be > passed to multiple tasks like , , > , etc. I had a look at t

Re: JavaScript comment stripping Task

2002-03-07 Thread Duncan Harris
[EMAIL PROTECTED] (Diane Holt) wrote: > > I've just knocked up an Ant Task to strip comments from JavaScript > > files. Useful in web apps so you can comment to your hearts delight > > without using up runtime bandwidth. > > > > Would this be useful to others, or is there some component out ther

Re: JavaScript comment stripping Task

2002-03-07 Thread Duncan Harris
[EMAIL PROTECTED] (Stefan Bodewig) wrote: > On Thu, 7 Mar 2002, Duncan Harris <[EMAIL PROTECTED]> wrote: > > > cannot resolve symbol symbol : class ClassCPInfo location: package > > constantpool import > > org.apache.tools.ant.taskdefs.optional.depend.constantpool.ClassCPInfo; > > How did you o

Re: Exec & Apply

2002-03-07 Thread Diane Holt
--- "Romain.Rouvoy" <[EMAIL PROTECTED]> wrote: > I only want to know what are the differences between the two commands > Exec and Apply because the documentation isn't explicit about it. See the second, third, and fourth paragraphs in the "Description" section of the Apply task. Note that these

Exec & Apply

2002-03-07 Thread Romain.Rouvoy
Hi ! I only want to know what are the differences between the two commands Exec and Apply because the documentation isn't explicit about it. Thanks, Romain -- R. Rouvoy -- Romain ROUVOY <[EMAIL PROTECTED]> USTL Lille 1 -- To unsubscribe, e-mail:

Re: JavaScript comment stripping Task

2002-03-07 Thread Stefan Bodewig
On Thu, 7 Mar 2002, Duncan Harris <[EMAIL PROTECTED]> wrote: > cannot resolve symbol symbol : class ClassCPInfo location: package > constantpool import > org.apache.tools.ant.taskdefs.optional.depend.constantpool.ClassCPInfo; How did you obtain the sources? Looks like a corrupted archive or som

Re: JavaScript comment stripping Task

2002-03-07 Thread Duncan Harris
[EMAIL PROTECTED] (Stefan Bodewig) wrote: > Could you expand? > > It bootstraps fine for me with 1.3.1. Compiling on Windows 2000 with Sun JDK 1.3.1_02 First error is: ... Building Ant Distribution Buildfile: build.xml bootstrap: prepare: check_for_optional_packages: Created dir: C:\java-p

SQL Statement

2002-03-07 Thread Thomas Fischer
Hi all :-) I wrote the following target: For some tables this target triggers the following exception : interbase: [exec] Use CONNECT or CREATE DATABASE to specify a database [sql] Executing file: P:\server\db\test\jo\APPLICATIONFORM.SQL

RE: JavaScript comment stripping Task

2002-03-07 Thread Duncan Harris
[EMAIL PROTECTED] (Paul Cody) wrote: > Sorry to be off-topic, but what were the test results that showed comment > stripping from *.js files made a tangible difference in performance of your > webapp? Just looking to minimise startup time. Depends a lot on bandwidth of your users (and how much

Re: JavaScript comment stripping Task

2002-03-07 Thread Stefan Bodewig
On Thu, 7 Mar 2002, Duncan Harris <[EMAIL PROTECTED]> wrote: > How stable is the 1.5 alpha nightly? Depends on what you can deal with. I use it every day, but then again I can fix it as soons as I come accross issues. > I just tried to get the latest and it didn't build in SunJDK 1.3.1. Could

RE: JavaScript comment stripping Task

2002-03-07 Thread Paul Cody
> > > --- Duncan Harris <[EMAIL PROTECTED]> wrote: > > > I've just knocked up an Ant Task to strip comments from JavaScript > > > files. Useful in web apps so you can comment to your > hearts delight > > > without using up runtime bandwidth. > > > Sorry to be off-topic, but what were the test

Re: JavaScript comment stripping Task

2002-03-07 Thread Duncan Harris
[EMAIL PROTECTED] (Diane Holt) wrote: > --- Duncan Harris <[EMAIL PROTECTED]> wrote: > > I've just knocked up an Ant Task to strip comments from JavaScript > > files. Useful in web apps so you can comment to your hearts delight > > without using up runtime bandwidth. > > > > Would this be useful

Manifest Entry in Ejb Jar

2002-03-07 Thread B Manikandan
Hi, Iam trying to include my own Manifest file in EJB Jar file.I browsed through ant mail archives and found lot of links. But the Jar file that gets generated still contains the one generated by Ant(that contains all the name of files in the jar) and not the one specified by me. My targe

Re: Error message

2002-03-07 Thread Stefan Bodewig
On Thu, 07 Mar 2002, Romain Rouvoy <[EMAIL PROTECTED]> wrote: > What's the signification of this message ? It means that you are trying to assing a new value to an already existing property - which is not possible, the attempt is ignored. Stefan -- To unsubscribe, e-mail:

RE: Error message

2002-03-07 Thread Jon Skeet
> When compiling I obtain the following message with the properties I > declared : > [property] Override ignored for OpenCCM.version > [property] Override ignored for OpenCCM.root.dir > [property] Override ignored for config.dir > [property] Override ignored for idl.dir > ... > > What's the

Error message

2002-03-07 Thread Romain.Rouvoy
Hi ! When compiling I obtain the following message with the properties I declared : [property] Override ignored for OpenCCM.version [property] Override ignored for OpenCCM.root.dir [property] Override ignored for config.dir [property] Override ignored for idl.dir ... What's the significatio

Re: ant logo t-shirts?

2002-03-07 Thread Stefan Bodewig
On Wed, 6 Mar 2002, Mark Womack <[EMAIL PROTECTED]> wrote: > Does anything need to happen to make this "official"? Legaleese, trying to sort it out. Stefan -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Need to create an empty file

2002-03-07 Thread Stefan Bodewig
On Wed, 6 Mar 2002, dhaval h. udani <[EMAIL PROTECTED]> wrote: > However I want these files to be added to the base path in the zip > file. Could you clarify this? If you don't specify a prefix or a fullpath attribute, all files will be taken they way they are. Stefan -- To unsubscribe, e-mai

Re: Custom tasks/project directory

2002-03-07 Thread Stefan Bodewig
On Wed, 06 Mar 2002, Mark Derricutt <[EMAIL PROTECTED]> wrote: > is there a way to find the build.xml's path to pickup the correct > file? Do you really want the directory of the build.xml file or do you want the basedir of your project? If the later is true, make the setter method for the attr

Multiple entrys in properties

2002-03-07 Thread Koegel, Michael
Hi, is there a way to go like this: without specifing the antcall part for every webmodule? I try to have a generic war target that builds all webmodules contained in the build.pro