Re: Ant 1.4 -- failonerror attributes?

2001-05-02 Thread Nico Seessle
- Original Message - From: "Diane Holt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 03, 2001 3:30 AM Subject: Re: Ant 1.4 -- failonerror attributes? > I don't use (thankfully :) VSS, but the doc suggests that if you have > autoResponse="Y" it will overwrite already ch

Re: Passed in $CLASSPATH versus javac classpath

2001-05-02 Thread Stefan Bodewig
David Bailey <[EMAIL PROTECTED]> wrote: > It appears that whenever ant encounters a task, it uses the > passed in $LOCALCLASSPATH instead of any path specified using the > "classpath" attribute of the task. No, it prepends the passed in CLASSPATH by default (changeable via build.sysclasspath).

Re: Passed in $CLASSPATH versus javac classpath

2001-05-02 Thread Stefan Bodewig
J. D. Fagan <[EMAIL PROTECTED]> wrote: > I believe in Ant 1.4, you can change the classpath behavior with > build.sysclasspath: This property has already been present (but undocumented) in Ant 1.3. Stefan

RE: Weblogic 6, ejbjar and pain

2001-05-02 Thread Andrew Thompson
Title: RE: Weblogic 6, ejbjar and pain Essay alert!! >>AndyT said >Conor said >> >> * Using means every file that one puts in the >> fileset ends up in every EJB .jar file >Yep. It isn't ideal. I'm not sure the best way to have a task which >processes multiple beans but which allows

RE: Optional jar snapshot

2001-05-02 Thread Andrew Thompson
Title: RE: Optional jar snapshot >From: Conor MacNeill >I have built a recent snapshot of the optional jar. This is a more Hi Conor, I believe from your earlier mail that this changes the task to use Weblogic 6's new ejb2.0 compiler/persistance layer rather than the wl5.1/ejb1.1 ejb compi

RE: Newbie question

2001-05-02 Thread Keith Kee
Hi Stefan: How do you find docs about all these special features like unless, if, fail, etc, etc? I searched high and low in the manual at jakarta.apache.org for some description but cannot find any mention about these feature. Thanks keith > -Original Message- > From: Stefan Bodewig

Re: Ant 1.4 -- failonerror attributes?

2001-05-02 Thread Diane Holt
I don't use (thankfully :) VSS, but the doc suggests that if you have autoResponse="Y" it will overwrite already checked-out files. Have you tried that? Diane --- "J.D. Fagan" <[EMAIL PROTECTED]> wrote: > Unfortunately, I'm stuck on a VSS based project at the moment :-( And > I'm > trying to bu

How to escape " still failing

2001-05-02 Thread debic
Sorry for bugging people but this still doesn't work, I guess I am missing something. Here's what I am doing: The output looks as follows [echo] ..\ConfigFiles\EpiMgr.vbs -P "" : this looks good -P has "" (no password given to the script) [exec] Myos = Windows NT [exec]

Ant 1.4 -- failonerror attributes?

2001-05-02 Thread J.D. Fagan
Unfortunately, I'm stuck on a VSS based project at the moment :-( And I'm trying to build a target that depends on a VSS checkout. How can I ignore an error from vsscheckout and continue on? My error sometimes occur when I already have a file checked out, and thus, just want to ignore this erro

REPOST: Where can I find a sample build.xml for a typical J2EE application?

2001-05-02 Thread Thai Thanh Ha
I can't find any anwers about this question, so I repost it. Please help me! Thai -Original Message- From: Thai Thanh Ha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 8:45 AM To: '[EMAIL PROTECTED]' Subject: Where can I find a sample build.xml for a typical J2EE applicatio

RE: How to escape "

2001-05-02 Thread debic
Yup, I figured it out, it's part of XML... > -Original Message- > From: Conor MacNeill [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 02, 2001 5:48 PM > To: [EMAIL PROTECTED] > Subject: RE: How to escape " > > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Thursday,

RE: How to escape "

2001-05-02 Thread Conor MacNeill
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 3 May 2001 10:28 AM > To: [EMAIL PROTECTED] > Subject: RE: How to escape " > > > I was looking for this in the manual but couldn't find it. Where is this > covered? Best regards. It is covered here http://www.w3.org/TR/2000/RE

RE: How to escape "

2001-05-02 Thread Peter Donald
At 05:27 2/5/01 -0700, [EMAIL PROTECTED] wrote: >I was looking for this in the manual but couldn't find it. Where is this >covered? Best regards. I doubt it is covered in it - feel free to send a patch though ;) The reason it is not covered is because ant uses XML and it is the underlying XML f

RE: How to escape "

2001-05-02 Thread debic
I was looking for this in the manual but couldn't find it. Where is this covered? Best regards. > -Original Message- > From: Diane Holt [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 02, 2001 5:23 PM > To: [EMAIL PROTECTED] > Subject: Re: How to escape " > > > --- [EMAIL PROTECTED] w

Re: How to escape "

2001-05-02 Thread Diane Holt
--- [EMAIL PROTECTED] wrote: > How do you escape " in ant say Use: Diane = ([EMAIL PROTECTED]) __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/

How to escape "

2001-05-02 Thread debic
How do you escape " in ant say Thanks.

Build files in MASTERING RMI

2001-05-02 Thread GHMyst
I am working through the examples in the book "Mastering RMI" by Rickard Oberg. The reason I am addressing my question to this group is that Mr. Oberg has provided a build.xml file along with the source code for each of the examples in the book. But I can get the build to work as intended for

RE: Passed in $CLASSPATH versus javac classpath

2001-05-02 Thread J.D. Fagan
I believe in Ant 1.4, you can change the classpath behavior with build.sysclasspath: build.sysclasspath The value of the build.sysclasspath property control how the system classpath, ie. the classpath in effect when Ant is run, affects the behaviour of classpaths in Ant. The default behavior vari

Re: Newbie question

2001-05-02 Thread Robert Leftwich
At 09:38 AM 02-05-01 +0200, Stefan Bodewig wrote: >Robert Leftwich <[EMAIL PROTECTED]> wrote: > > > b) Fail the build if JAVA_HOME or ant.java.version is not correct - > > but the only way I can find to do that is to write a script > > (javascript/netrexx/etc) that checks the value and adds a targ

Making copy task not fail

2001-05-02 Thread Robert Leftwich
Is it possible to make the copy task not fail if the source directory is not present ? The reason I ask is that I have a (somewhat) generic task that is called in a number of places and in one or two the source directory is not present. One option is to break the task into 2 pieces (which would

Passed in $CLASSPATH versus javac classpath

2001-05-02 Thread David . Bailey
I'm invoking ant with a wrapper script, which calls ant using '$JAVACMD -classpath $LOCALCLASSPATH $ANT_OPTS org.apache.tools.ant.Main $ENVOPTS $@' It appears that whenever ant encounters a task, it uses the passed in $LOCALCLASSPATH instead of any path specified using the "classpath" a

Re: quick question

2001-05-02 Thread Diane Holt
--- Aarti Chandnani <[EMAIL PROTECTED]> wrote: > I have written a task of my own. > If I make it to be in org.apache.tools.ant.taskdefs.optional package > and compile it and add it to the optional jar... > Then can i call it with its name , like other optional tasks... > or do I still have to call

RE: quick question

2001-05-02 Thread Aarti Chandnani
Title: quick question actually i made it an optional jar, dont bother -Original Message-From: Aarti Chandnani Sent: Wednesday, May 02, 2001 1:50 PMTo: '[EMAIL PROTECTED]'Subject: quick question I have written a task of my own. If I make it to be in org.apache.tools.ant.ta

RE: v1.3 -- problems retrieving properties from

2001-05-02 Thread Webb, James
Success. This example worked. The problem was related to the encoding of the properties files themselves. They were encoded as unicode rather than ASCII. When i ran this example i created the files quickly with notepad so they both were created as ascii. Since this example worked I knew the prob

quick question

2001-05-02 Thread Aarti Chandnani
Title: quick question I have written a task of my own. If I make it to be in org.apache.tools.ant.taskdefs.optional package and compile it and add it to the optional jar... Then can i call it with its name , like other optional tasks... or do I still have to call it with in the xml.

RE: Weblogic 6, ejbjar and pain

2001-05-02 Thread Kurt Olsen
Thanks Conor, Later today I'll get some info together and post it. Can't thank you enough for the response. Till later, Kurt (the delay is caused by being 27 days from release!). -Original Message- From: Conor MacNeill [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 11:49 PM To: [E

RE: v1.3 -- problems retrieving properties from

2001-05-02 Thread Diane Holt
--- "Webb, James" <[EMAIL PROTECTED]> wrote: > In my testing I have tried to use multiple properties from the file > in these tasks to rule out the possibility of a parsing error > or something like that in one of the name/value pairs. > Anyway, none of the properties from the file are set > when

RE: Weblogic 6, ejbjar and pain

2001-05-02 Thread J.D. Fagan
I concur with Les. I just read these same documents a few days ago, and what I got out of it was its preferable to use ear's vs. separate jars and wars. Filing separately forces WLS to create sibling classloaders which you then must include EJB home/remote interfaces in the .war file, AND WLS mu

RE: v1.3 -- problems retrieving properties from

2001-05-02 Thread Webb, James
Hi Diane, In my testing I have tried to use multiple properties from the file in these tasks to rule out the possibility of a parsing error or something like that in one of the name/value pairs. Anyway, none of the properties from the file are set when I try to use them within a task. James -

RE: nested property references

2001-05-02 Thread Hayes, Peter
I did not mention it but I actually added a fileset feature to the property taskdef so that I can read in arbitrary prop files without specifying them directly. This way we can add a new project w/o changing any code in the build.xml file. Since one project may reference another project, it is

Re: basic file dependency

2001-05-02 Thread Stefan Bodewig
Jason Crickmer <[EMAIL PROTECTED]> wrote: > Is there an include mechanism, A very basic one, see - more to come in Ant2. > or even better, a > run-this-ant-file-in-a-separate-name-space-while-exporting-these-variables > mechanism? As

RE: v1.3 -- problems retrieving properties from

2001-05-02 Thread Diane Holt
Hi James, Are the other properties in the properties file getting set correctly? Diane --- "Webb, James" <[EMAIL PROTECTED]> wrote: > the properties are not being set when i use them. > i have tried to use them in other tasks without > success. > > also the properties from my file are > not

RE: Platform specific targets???

2001-05-02 Thread Les Hughes
Hi, There's always more than one way to do it eh? I tend to do similar using props but from an overal build.properties something like ... ... and in the props file I have either os.unix=1 or os.nt=1 These two props files are mapped out into the same physical location via my SCM (so the uni

RE: Jar/ EJBs / Weblogic (general weirdness)

2001-05-02 Thread Les Hughes
Hi, Do you get the same problem when using the ejbjar / weblogic tasks? Bye, Les > -Original Message- > From: Andy Yates [mailto:[EMAIL PROTECTED]] > Sent: 02 May 2001 06:47 > To: '[EMAIL PROTECTED]' > Subject: Jar/ EJBs / Weblogic (general weirdness) > > > hi - so I have a somewhat

Re: nested property references

2001-05-02 Thread Stefan Bodewig
Peter Hayes <[EMAIL PROTECTED]> wrote: > I wrote a Property2 file that handles this because we need to use it > in order to have only a single general build.xml file to build / > package an arbitrary number of projects. But your patch will only change the behavior for 's value attribute, all oth

Re: basic file dependency

2001-05-02 Thread Jason Crickmer
Conor, Thanks, that seemed to do the trick. It seems a little more verbose, and the variable name-space is going to get pretty cluttered. Although we moved to Ant from Make because most developers deplored the "Makefile in each directory" architecture that we had, I am thinking the "all-in-one"

Re: nested property references

2001-05-02 Thread Stefan Bodewig
Rob van Oostrum <[EMAIL PROTECTED]> wrote: > - I agree that it is possible that you can work around not having > nested property suppport. But I do consider it a workaround. Giving > me a workaround IMHO does not constitute an argument why the feature > itself is not needed. See, we have a diffe

RE: v1.3 -- problems retrieving properties from

2001-05-02 Thread Webb, James
the properties are not being set when i use them. i have tried to use them in other tasks without success. also the properties from my file are not referring to other properties. each is explicit with its own key and value. also i am not using the properties from the file as the basis for any

Re: REPOST: Failed to load Main-Class manifest attribute

2001-05-02 Thread Conor MacNeill
Try a colon separated classpath :-) - Original Message - From: "Anuj Agrawal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 02, 2001 11:26 PM Subject: REPOST: Failed to load Main-Class manifest attribute > Hi folks - > > i'm running ant 1.3 on solaris 8 (with jdk1.3),

Re: basic file dependency

2001-05-02 Thread Conor MacNeill
Checkout the uptodate task. - Original Message - From: "Jason Crickmer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 02, 2001 11:15 PM Subject: basic file dependency > I am new to the list, so please pardon me if this question has been > asked before... > > We have

Re: REPOST: Failed to load Main-Class manifest attribute

2001-05-02 Thread Anuj Agrawal
sheesh! I must be blind! 8(( Thanks a bunch. Anuj. Jason Crickmer wrote: > Try using colons in your classpath instead of semi-colons. Windows/DOS > uses the semi-colon as a separator, but sh, bash, and tcsh use the > colon.

RE: Using different compilers?

2001-05-02 Thread Shaikh, Mehmood
You can set the property within the target as follows : but unfortunately you cannot set same property twice, the new value will not override the old value, as in this case : This will print "abc" twice. Mehmood -Original Message- From: Dominic Pilbeam [mailto:[

re: REPOST: Failed to load Main-Class manifest attribute

2001-05-02 Thread Jason Crickmer
Try using colons in your classpath instead of semi-colons. Windows/DOS uses the semi-colon as a separator, but sh, bash, and tcsh use the colon. Hoep this helps, Jason Anuj Agrawal writes: > Hi folks - > > i'm running ant 1.3 on solaris 8 (with jdk1.3), but when i run the following > antmake.s

classpathref weirdness

2001-05-02 Thread Darin_Hawley
I'm having a problem using a classpathref for both compilation and execution. It appears to work properly for the former but not the later, even though it's the exact same refid. I'm hoping this is due to a bug in Ant, and not just my own ignorance. Here's the particulars... I have a simple d

REPOST: Failed to load Main-Class manifest attribute

2001-05-02 Thread Anuj Agrawal
Hi folks - i'm running ant 1.3 on solaris 8 (with jdk1.3), but when i run the following antmake.sh file (below) i get the corresponding error message (below). 8(( This doesn't happen when i run basically the same script on a windows box. Anybody face the same issue, or have a workaround? Thanks

RE: Changing the appearance of the output from javac

2001-05-02 Thread Jay Glanville
I don't think that this is an Ant question, as ant doesn't have any control over the error reporting style of the compiler. I'm assuming that you're using a javac compiler and not a jikes compiler. A suggestion would be to try the jikes compiler with (and also try without) the -emacs option. It

basic file dependency

2001-05-02 Thread Jason Crickmer
I am new to the list, so please pardon me if this question has been asked before... We have moved from Make to Ant, but there are some lingering issues that I need to try to resolve. The most important is, how does file dependency work? Take this Makefile for example: .PHONY: mytarget CP_XERC

RE: Can ant do something for each file in a fileset

2001-05-02 Thread M.A.Dunphy
Title: RE: Can ant do something for each file in a fileset Thanks tim, I've got it working but I've a couple of questions. I wasn't sure what mapper to use? I'd like to use the regexp but I just can get the syntax I need and would appreciate help. Below is am example of the source and target

Re: v1.3 -- problems retrieving properties from

2001-05-02 Thread Conor MacNeill
From: "Diane Holt" <[EMAIL PROTECTED]> > --- Nico Seessle <[EMAIL PROTECTED]> wrote: > > > (Maybe this should go in the FAQ.) > > > > > The better place would be Bugzilla with a little testcase :-) So we can > > fix that and don't need to describe wrong behaviour... > > As I recall, it may not be

Re: Anyone got the element for to work with weblogic 6?

2001-05-02 Thread Conor MacNeill
- Original Message - From: "Les Hughes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 02, 2001 7:52 PM Subject: RE: Anyone got the element for to work with weblogic 6? > > Hi, > > One point, we use local copies of out DTDs to speed up deployment as well. > So the DT

RE: Anyone got the element for to work with weblogic 6?

2001-05-02 Thread Les Hughes
Hi, One point, we use local copies of out DTDs to speed up deployment as well. So the DTD location in the XML file is tagged with a filter @dtd.dir@ which is substituted during our build process. Upshot? I don't need to use the element, our stuff deploys quicker and I can quickly run the xmlva

RE: Weblogic 6, ejbjar and pain

2001-05-02 Thread Les Hughes
Hi, Here's my 2p :-) Ear does seem to be the deployment model. WLS's classloaders are hierarchical for EJB and web app if everything is in an EAR - i.e. your taglibs, beans or straight JSP can find anything contained in your EJB.jar because it's classloader is a child of the ejb loader. If you

Re: Weblogic 6, ejbjar and pain

2001-05-02 Thread Conor MacNeill
Kurt, If you can give us some more information about what problems you are having, we may be able to help. Conor - Original Message - From: "Kurt Olsen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 02, 2001 5:44 AM Subject: RE: Weblogic 6, ejbjar and pain > Weblog

Optional jar snapshot

2001-05-02 Thread Conor MacNeill
I have built a recent snapshot of the optional jar. This is a more complete version than that found with the standard nightly build. You can find it here http://jakarta.apache.org/builds/jakarta-ant/nightly/optional/2001-05-02/ Conor

Re: Anyone got the element for to work with weblogic 6?

2001-05-02 Thread Conor MacNeill
Andrew, From: "Andrew Thompson" <[EMAIL PROTECTED]> > Yeah, I had a file path originally, but I was experimenting. It would be > good if the documentation, if not the syntax could reflect what was expected > where. eg, Name / Required / Type in those handy tables. I know it says its > a "file" bu

Re: Weblogic 6, ejbjar and pain

2001-05-02 Thread Conor MacNeill
Andrew, From: "Andrew Thompson" <[EMAIL PROTECTED]> > Hi all, > > As you might have gathered from my last mail, I'm getting involved in a > Weblogic 6 project - I have previously done some 5.1 stuff with ant. > > This new situation with the element seems to be a real pain, > though from reading

Re: Task for collecting code metrics

2001-05-02 Thread Michael Twomey
Hmm, I've never had problems with but then again I've never tried it on any really large system. I noticed on its sourceforge page that there are a few bugs logged against certain structures in code which cause it to throw a wobbler so I'm guessing you've managed to stumble over one of those.

Re: Task from a task?

2001-05-02 Thread Stefan Bodewig
Jeffrey A. Kenward <[EMAIL PROTECTED]> wrote: > What's the best way to invoke a task from another task? There are several tasks in Ant's module that actually do this - take a look at the (optional) RenameExtensions task that has been changed to completely rely on in Ant 1.3. Stefan

Re: Task for collecting code metrics

2001-05-02 Thread Stefan Bodewig
Johannes Brodwall <[EMAIL PROTECTED]> wrote: > I managed to compile , but when I tried running it, it got very > upset at practically all my files. I had some strange problems as well (I think related to inner or package private classes). is open source, so ... I know, I didn't have th

Re: Newbie question

2001-05-02 Thread Stefan Bodewig
Robert Leftwich <[EMAIL PROTECTED]> wrote: > b) Fail the build if JAVA_HOME or ant.java.version is not correct - > but the only way I can find to do that is to write a script > (javascript/netrexx/etc) that checks the value and adds a target (or > enables a target) that does the fail - this seems