replaceregexp Task and RegExp Mappers

2003-02-06 Thread William Ferguson
Hi all, We're using Ant 1.5 and are trying to use both the replaceregexp task and the regexp Mapper (during a Copy), but it seems that classloading has become a bit of an issue. When we attempt to execute the replaceregexp task, it fails with the RegexpFactory reporting, with "No supported regula

Re: Not Adding Files

2003-02-06 Thread Antoine Levy-Lambert
This is a well known bug http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10755 You need to download the latest nightly build of ant , for instance from this URL http://cvs.apache.org/builds/jakarta-ant/nightly/2003-02-04/ Antoine Levy-Lambert - Original Message - From: "Aidan Monroe" <[EM

War only works if I Unzip and manually jar

2003-02-06 Thread Scott Williams
I've notice that there are several posts about this so I'm posting my issue as well. I have an ANT script that creates a war file and works fine on Unix/Weblogic 6.1. I use the same ANT script on using Weblogic 7.0 on a Windows machine and the resources in the war file cannot be found. Howev

Re: CvsChangeLog - IllegalArgumentException/Stupid User Trick...

2003-02-06 Thread Ken Gentle
Thanks, I'll give that a shot. Seems like a waste, though, doesn't it? If I *ever* get to slow down a little, I'll look into the CVS source... Ken At 19:06 2003-02-06, you wrote: At 06/02/2003 12:21 -0500, you wrote: The following ant script won't quite work for me, and I'm sure it is

copy with filtersets and unicode?

2003-02-06 Thread Paul D. Schmidt
Hello, As part of our build, we do a copy with filtering to substitute some values into some files. One of these files has french accented characters in them. It seems when doing a copy with filtering enabled, these special characters get converted into question marks. Is there anything special

Re: CvsChangeLog - IllegalArgumentException/Stupid User Trick...

2003-02-06 Thread Felipe Martin Anaya
At 06/02/2003 12:21 -0500, you wrote: The following ant script won't quite work for me, and I'm sure it is a stupid user trick, but I just can't see what I'm doing wrong. It appears that the date in the "start" attribute is unparseable for some reason, but is sure looks ok to me, is parseable

RE: build.xml & build.properties best practices

2003-02-06 Thread Dominique Devienne
FWIW, I believe only Ant 1.6 will have the import capability you are talking about, and it's not even sure yet whether target re-writing will be allowed. At least that's what I remember I understood lurking on ant-dev. Costin, Conor, Stefan, and others involved, please correct me if my recollectio

reconciling Ant & S1S standard file structures.

2003-02-06 Thread sideshowfry
Common organization of files, especially with Ant users, is to put the source and compiled files in different directories. The standard Sun ONE Studio file organization (in my experience, anyway) is to set up a web app directory structure where .java and .class files are in the same location.

Re: Compile against a war

2003-02-06 Thread Dan Christopherson
Problem is that all the classes in the war are either in /WEB-INF/classes or in /WEB-INF/lib/somefile.jar The Axis distribution should have all of the necessary jars distributed separately from the war, I'd think -danch Grinvald, Edward wrote: Hello all, I'm trying to compile my code against a

Re: Ant reference book

2003-02-06 Thread DoNOTuseREPLY
you might try "Java Development with Ant" or "Ant Developer's Handbook." both have good stuff for the "new" and "seasoned" ANT_ter (?)/user. jimS - Original Message - From: "Neville Burnell" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Wednesday, February 05, 2003

Re: jar fot use task ftp

2003-02-06 Thread Martin
H- yes your ANT_HOME env variable needs to point to the location of thee Ant installation. -M - Original Message - From: "David McTavish" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Thursday, February 06, 2003 5:18 PM Subject: RE: jar fot use task ftp I'm not sure

Re: build.xml & build.properties best practices

2003-02-06 Thread Adam Hardy
[EMAIL PROTECTED] wrote: - userhome\build.properties - projectroot\project\project.properties - projectroot\global.properties This is how we made a very easy way on how to use ant. I am currently waiting to get 1.5.2 because there you can include targets from another file and overwrite them in th

RE: jar fot use task ftp

2003-02-06 Thread David McTavish
I'm not sure how ant works within eclipse, but I imagine all you should have to do is drop the jar either in the ant/lib folder OR your eclipse/lib folder, and it SHOULD work. d. -Original Message- From: Haroldo Pereira Nascimento [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2

RE: trying to write custom task wrapping Exec

2003-02-06 Thread David McTavish
I had the impression that the ant-contrib was C++ only? Thanks for the info. I've run into the PATH vs. path before, and use the fully qualified path throughout. It's most likely a case thing. (VB6.EXE vs. VB6.exe potentially). Perhaps I'll just force the user to add the executables to their local

Re: jar fot use task ftp

2003-02-06 Thread Haroldo Pereira Nascimento
I use Ant since few months in my IDE Eclipse. My problem is install the package. I download the file "NetComponents-1.3.8.zip" in the site below. I must the unzip the file in the folder plugins ? I need configureted any anviroment variable? Haroldo Pereira Nascimento [EMAIL PROTECTED] Avenida M

RE: trying to write custom task wrapping Exec

2003-02-06 Thread Dominique Devienne
If bin.vb contains only the compiler's short name (without path), even if you rewrite the system path using a nested , can lead to error=2 on Windows. That's what I have learned. It works for some people on some machine (all Windoze machines), but not on some others, for a reason I've never elucid

RE: jar fot use task ftp

2003-02-06 Thread David McTavish
www.savarese.org/oro/downloads -Original Message- From: Haroldo Pereira Nascimento [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 4:08 PM To: [EMAIL PROTECTED] Subject: jar fot use task ftp Hi I need of the files jar for use tak

jar fot use task ftp

2003-02-06 Thread Haroldo Pereira Nascimento
Hi  I need of the files jar for use taks "ftp". Can anybody send me the =package or link to download the files. Thanks Haroldo Pereira Nascimento [EMAIL PROTECTED] Avenida Marginal Pinheiros, 5200 05693-000 São Paulo -

RE: trying to write custom task wrapping Exec

2003-02-06 Thread David McTavish
Sorry, code fragment is: ExecTask exec = createExec(); if (vbBinaryDir != null) { try { Environment.Variable var = new Environment.Variable(); var.setKey("path"); var.setV

trying to write custom task wrapping Exec

2003-02-06 Thread David McTavish
Just wondering how I can update the path for the ExecTask. I've borrowed code from the optional Cab task, but I wish to update the path used by the Execute object. Here is what I currently have: ExecTask exec = createExec(); if (vbBinaryDir != null) {

Re: build.xml & build.properties best practices

2003-02-06 Thread Steve Loughran
- Original Message - From: "Dominique Devienne" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Thursday, February 06, 2003 11:04 Subject: RE: build.xml & build.properties best practices > Yes. GUMP builds Ant from CVS HEAD, and that version of Ant is used to build >

RE: Compile against a war

2003-02-06 Thread Grinvald, Edward
Yes, they are just glorified jars, so as you suggested, I unpackaged one, and then repackaged it into a normal jar with a (proper) path. Thank you. = eg -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 2:28 PM To: 'Ant Users List'

Re: Ant reference book

2003-02-06 Thread Steve Loughran
- Original Message - From: "Erik Hatcher" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Thursday, February 06, 2003 05:27 Subject: Re: Ant reference book > On Thursday, February 6, 2003, at 05:55 AM, Herr Christian Wolfgang > Hujer wrote: > > I have the small and th

RE: Compile against a war

2003-02-06 Thread David McTavish
is it possible to unwar the file and create two separate archives? I'm pretty sure java is going to have a hard time interpreting where the class files are located within a war file (ie: not at the root, but under WEB-INF/classes). If the war isn't sealed, I'd bust it open if possible. Sorry on bei

RE: Compile against a war

2003-02-06 Thread Dominique Devienne
I'm no WAR expert for sure, but aren't WAR files only glorified JARs, with a given layout inside? You probably just need to unjar (unwar?) somewhere, to get access to the classes and JARs inside, referring those in your classpath. Put that logic in a target that every target that needs the classpa

RE: Compile against a war

2003-02-06 Thread Grinvald, Edward
Unfortunately, the war isn't mine.. = eg -Original Message- From: David McTavish [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 2:23 PM To: 'Ant Users List' Subject: RE: Compile against a war probably not a good idea. I'd separate your war file into two: 1. war file cont

RE: Compile against a war

2003-02-06 Thread David McTavish
probably not a good idea. I'd separate your war file into two: 1. war file contains .jsp and servlets 2. jar file contains re-usable components that are necessary for dependents d. -Original Message- From: Grinvald, Edward [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 2:21

Compile against a war

2003-02-06 Thread Grinvald, Edward
Hello all, I'm trying to compile my code against a war file from Apache Axis (the one with all the soap stuff, soap.war), but not having any luck. How would I designate a war file as a library/path in an ant script? = eg - To uns

RE: multiple file check

2003-02-06 Thread Dominique Devienne
Behold the power of selectors ;-) --DD -Original Message- From: Dan Gardner [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 12:58 PM To: 'Ant Users List' Subject: RE: multiple file check Thanks this is working a treat; >>Martin, I suspect your option would work as well, but

RE: build.xml & build.properties best practices

2003-02-06 Thread Dominique Devienne
Yes. GUMP builds Ant from CVS HEAD, and that version of Ant is used to build the other Jakarta (and outside) project in the Gump workspace being executed (nightly). The Ant committers are pretty good at backward-compatibility, and thanks to GUMP they know quickly when they changed something that br

RE: Problem with tagging CVS source in build.xml

2003-02-06 Thread Richard T. Williams
try tagging a particular package. I do this: I think you should have: At 12:08 PM 2/6/2003 -0600, Dominique Devienne wrote: Perhaps, but tag is safer. You don't what made it to the repository in between the time the local sandbox was updated, and the remote repo is rtagged. With tag, you ta

RE: multiple file check

2003-02-06 Thread Dan Gardner
Thanks this is working a treat; >>Martin, I suspect your option would work as well, but its nice to keep it purely in ANT until I *have* to get more complex :). _

RE: multiple file check

2003-02-06 Thread Dominique Devienne
What I outlined earlier works out of the box with Ant 1.5.1. What you are proposing requires a

Re: multiple file check

2003-02-06 Thread Martin
How about 2 FileList(s) setting up an id for each then doing a diff between them using the refids of the FileLists? ??? -Martin - Original Message - From: "Dan Gardner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 06, 2003 1:58 PM Subject: multiple file check > I w

RE:

2003-02-06 Thread didge
> But then, the principal goal of is to be able to override some > properties, so the target ant-called can do something else than it did the > first time. By using , you cannot overwrite properties, so cannot > parameterize the called target. With , the project is shared between the caller and t

RE: build.xml & build.properties best practices

2003-02-06 Thread David Clements
The word is that apache used the nightly build of ant to build everything else. It should be pretty stable. Dave > -Original Message- > From: webhiker [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 06, 2003 11:05 AM > To: Ant Users List > Subject: Re: build.xml & build.propertie

RE: Problem with tagging CVS source in build.xml

2003-02-06 Thread Dominique Devienne
Perhaps, but tag is safer. You don't what made it to the repository in between the time the local sandbox was updated, and the remote repo is rtagged. With tag, you tag exactly what you have locally. --DD -Original Message- From: Arthur Lim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, Febr

RE: multiple file check

2003-02-06 Thread Dominique Devienne
Just define a with a selector. To check whether this selected any files, Then the fileset to a string property, and check with / whether the string is empty or not. --DD -Original Message- From: Dan Gardner [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 11:58 AM To: '[EMA

multiple file check

2003-02-06 Thread Dan Gardner
I would like to compare two directories and see if any files in directory_A exist in directory_B. Is this possible ? One way would be to use an exec task to run an OS script: Something along the lines of "ls -R1 > filelist.txt" against directory_A and then use this list for a find command against

Re: build.xml & build.properties best practices

2003-02-06 Thread webhiker
Dang, and I only JUST upgraded to 1.5.1! Will check out the CVS image and try it. Must say though, it's the FIRST time I've ever found Ant wanting. Most times it's got everything you need! Cheers. WH There is an import task in the nightly build. It seems to work great. Dave -Original

RE: build.xml & build.properties best practices

2003-02-06 Thread David Clements
There is an import task in the nightly build. It seems to work great. Dave > -Original Message- > From: webhiker [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 06, 2003 10:31 AM > To: Ant Users List > Subject: Re: build.xml & build.properties best practices > > > Could you tell

Re: build.xml & build.properties best practices

2003-02-06 Thread webhiker
Could you tell me if you found a less ridiculous (cryptic) way to factorise your tasks into a common include file other than the wonderfully "only it's mother could love it" syntax such as : ]> &include; . WH Hello Adam, I just can explain how we have structured our build process. We

CvsChangeLog - IllegalArgumentException/Stupid User Trick...

2003-02-06 Thread Ken Gentle
The following ant script won't quite work for me, and I'm sure it is a stupid user trick, but I just can't see what I'm doing wrong. It appears that the date in the "start" attribute is unparseable for some reason, but is sure looks ok to me, is parseable by CVS itself. BTW, I started with tha

RE:

2003-02-06 Thread Dominique Devienne
I'll take that back. is also affected by cycles, leading to an infinite loop between aTarget and bTarget (ends up in a StackOverflowError). But then, the principal goal of is to be able to override some properties, so the target ant-called can do something else than it did the first time. By usi

RE:

2003-02-06 Thread Dominique Devienne
Yes, Centipede as one I believe. The reason it's not in Ant is that it throws off the checks for circular dependencies between targets. Simply consider: Your or Centipede do make build faster, but not safer. The right approa

Re: tagging cvs source

2003-02-06 Thread Conor MacNeill
Andrew Zeon wrote: > Hi, > > I have these lines in my build.xml file: > > > > > This doesn't work. It doesn't tag the source files. > > However, this works: > > > > What is wrong? > Please run ant with -debug and look at the generated CVS command line. You should be able to run this from

Re: Ant reference book

2003-02-06 Thread Erik Hatcher
On Thursday, February 6, 2003, at 05:55 AM, Herr Christian Wolfgang Hujer wrote: I have the small and the big Ant books from O'Reilly. Usually I'd recommend O'Reilly, but, though these are very good, they don't explain much of Ant's additional tasks. I've heard there's an Ant book out there tha

tagging cvs source

2003-02-06 Thread Andrew Zeon
Hi, I have these lines in my build.xml file: This doesn't work. It doesn't tag the source files. However, this works: What is wrong? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: build.xml & build.properties best practices

2003-02-06 Thread mmay
Hello Adam, I just can explain how we have structured our build process. We have basically the Project Root Directory beneath which all our projects are stored. In this directory, we have central includes, which can be included by all our build scripts. On top of this there is a global.properties f

build.xml & build.properties best practices

2003-02-06 Thread Adam Hardy
Hi All, I am using ant for several different java projects: - often using completely different 3rd party jar like JAXB or struts or cachedRowset - sometimes with tomcat, sometimes with weblogic, occasionally just java - some are web apps, one is EJB, one is Swing. I am always editing my build.x

Re: Ant reference book

2003-02-06 Thread Herr Christian Wolfgang Hujer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Donnerstag, 6. Februar 2003 05:47 schrieb Andrew Zeon: > Hi, > > I'm thinking of buying an Ant reference book. Can you give me some > recommendations? > > Thanks. I have the small and the big Ant books from O'Reilly. Usually I'd recommend O'Reilly

RE: Does 'exec' work in unix?

2003-02-06 Thread Rajat Gupta
Yes, Check out the script in the OTN Survey sample at http://otn.oracle.com/sample_code/tech/xml/survey/content.html. The ANT script executes a shell script and a bat file depending upon the OS. Thanks, Rajat -Original Message- From: Andrew Zeon [mailto:[EMAIL PROTECTED]] Sent: Thursday,