Showing the contents of a file

2002-07-10 Thread Per Thomas Jahr
Hi! How can I output the contents of a file to stdout in ant? I thought maybe the echo task would do it. Is there a less/more/cat task somewhere? -- Per Thomas Jahr -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Ant 1.5 -- deprecated warning from Available task

2002-07-10 Thread Stefan Bodewig
On Wed, 10 Jul 2002, Bryan Pendleton <[EMAIL PROTECTED]> wrote: > [available] DEPRECATED - used to override an existing > property. > [available] Build file should not reuse the same property name for > different values. When your run target gets called, the property has already been set and

AW: Invocation of batch scripts before Ant.bat is run. : Please help ...

2002-07-10 Thread Jan . Materne
1) On windows you can create a "antrc_pre.bat" and a "antrc_post.bat" an save them in your Homedirectory. If you look at %ant_home%\bin\ant.bat these files are called from ant.bat before ant-executing and after it. --8-<--- %ant_home%\bin\ant.bat 8-<---8-<---8-<---8-<---8-<---

Path-Like-Struture. How tom maintain order for classpath?

2002-07-10 Thread J S
I see in the ant docs under path-like-structures this note Note: The order in which the files building up a FileSet are added to the path-like structure is not defined. I need to maintain order of jar files in my classpath but I would also like to use a patternset. How can I do it? They always

outputproperty for exec task in 1.5.1beta3

2002-07-10 Thread Shah, Lokesh
Hi, In the task, the output is not directed to the property outputproperty is set to, if the executable returns with an error. On the other hand, if I use the out attribute and set it to a file, the output goes to the file. Is there some reason why this is the behaviour? I am do

Fw: failonerror=false

2002-07-10 Thread sunyj
> > > > ... > > > > > > > > > > > > suggestions anyone?? > > > > Henning > > You can use TryCatchTask in ant-contrib. > > ANT Contribute project is here. You can get it through cvs. > http://sourceforge.net/projects/ant-contrib/ >

RE: building ejb's with Ant1.5 using Weblogic 6.1

2002-07-10 Thread Matt McAuliffe
Sure, here is the target, it hasn't changed. -Original Message- From: Jesse Stockall [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 5:40 PM To: Ant Users List Subject: Re: building ejb's with Ant1.5 using Weblogic 6.1 On Wed,

RE: problem building ejb's with Ant1.5 using Weblogic 6.1

2002-07-10 Thread Jesse Stockall
On Wed, 2002-07-10 at 18:45, Matt McAuliffe wrote: . > Since this worked in 1.5alpha without the dependency attribute, is this a > bug? > Thanks in advance. > See this bug report for more details. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8262 Jesse -- Jesse Stockall

Re: building ejb's with Ant1.5 using Weblogic 6.1

2002-07-10 Thread Jesse Stockall
On Wed, 2002-07-10 at 15:20, Matt McAuliffe wrote: > > I never encountered this error using 1.5alpha. Has anyone had any > success building EJB's using Weblogic 6.1. Yes, I build then everyday. Can you post the target from your build file? Jesse -- Jesse Stockall |

Re: Filtering and FilterChain/ExpandProperties

2002-07-10 Thread Diane Holt
--- Rick Berman <[EMAIL PROTECTED]> wrote: > I'm interested in using ${...} property references in > a filter file such that the filter file can supply a > ${...} string in the token replcement process and then > the ${...} gets replaced with the value of the > property. It looks like I can't qui

Filtering and FilterChain/ExpandProperties

2002-07-10 Thread Rick Berman
Hi all, I'm interested in using ${...} property references in a filter file such that the filter file can supply a ${...} string in the token replcement process and then the ${...} gets replaced with the value of the property. It looks like I can't quite get there from here. My first attempt wa

Ant 1.5 -- deprecated warning from Available task

2002-07-10 Thread Bryan Pendleton
With Ant 1.5, I use the following build file: and I run the Ant command: ant check run Then I get the output: [available] DEPRECATED - used to override an existing property. [available] Build file should not reuse the same property name for different values

building ejb's with Ant1.5 using Weblogic 6.1

2002-07-10 Thread Matt McAuliffe
Hi- I seem to be having a problem creating Weblogic 6.1 ejb's using this morning's release of Ant 1.5. I was previously using the following version: Apache Ant version 1.5alpha compiled on February 26 2002. I'm getting the following java.lang.NoClassDefFoundError error with this morning's re

RE: Wildcards in the file attribute for the available task

2002-07-10 Thread Diane Holt
I couldn't think of any way to do it other than using , along with and . (Well, I suppose you could 86 the and and just have the script do the timeout, but it gave me a good excuse to play with them, and besides, it's less script code this way).

Invocation of batch scripts before Ant.bat is run. : Please help ...

2002-07-10 Thread Viraj Purang
Hi, I need to run a few batch scripts (they have multiple set statements) to create an environment before I run the ant command.Having an exec task run each of those scripts will not solve the problem as each ould runits seperate shell. Is there a way out in Ant other than putting these script

RE: problem building ejb's with Ant1.5 using Weblogic 6.1

2002-07-10 Thread Matt McAuliffe
This error only happens when the attribute dependency="super" or dependency="none". The beans build fine if I set dependency="full" however, it takes a very long time. Reading the 1.5 docs, I see that: "super is the default value and replicates the original ejbjar behaviour where super classes

Is it possible to set content encoding for email attachment?

2002-07-10 Thread Alexey Solofnenko
Hello, the report script I posted here zips build log and sends it as attachment. The zipping adds another step for long viewing. It can be avoided if I could set "Content-Encoding: gzip" header and use gzip archiver. Is it possible to do it in task? - Alexey. -- { http://trelony.cjb.net/

RE: Classpath problem with 1.5 "ant" on Win2000, tcsh

2002-07-10 Thread Diane Holt
--- Alexey Solofnenko <[EMAIL PROTECTED]> wrote: > It seams already fixed. In CVS. I just meant "when" in the sense of as part of a release. Diane = ([EMAIL PROTECTED]) __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http:/

RE: Classpath problem with 1.5 "ant" on Win2000, tcsh

2002-07-10 Thread Alexey Solofnenko
It seams already fixed. - Alexey. -- { http://trelony.cjb.net/ } Alexey N. Solofnenko { http://www.inventigo.com/ } Inventigo LLC Pleasant Hill, CA (GMT-8 usually) -Original Message- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 2:50 PM To: Ant Users List

Re: Can you compile C++ and C from ant

2002-07-10 Thread Steve Loughran
- Original Message - From: "Jennifer Moter" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Wednesday, July 10, 2002 2:03 PM Subject: RE: Can you compile C++ and C from ant > these are the gcc command line args - here's the gcc command: > > gcc -I../msclib -I../crypt

Re: Classpath problem with 1.5 "ant" on Win2000, tcsh

2002-07-10 Thread Diane Holt
--- Kendall Collett <[EMAIL PROTECTED]> wrote: > No particular reason--it's the way I set it up when I first installed > Ant and it hasn't been an issue up to now. Okay, in that case, the workaround would be to change that :) Or, if you haven't already, just fix your copy of the script. (I'm not

RE: BCEL

2002-07-10 Thread Matt Lyon
Yup, just figured it out. Sorry, that was a total RTFM question. Must be time to go home and drink beer. ;^) -Original Message- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 5:45 PM To: Ant Users List Subject: Re: BCEL --- Matt Lyon <[EMAIL PROTECTED]> wrot

Re: Classpath problem with 1.5 "ant" on Win2000, tcsh

2002-07-10 Thread Kendall Collett
No particular reason--it's the way I set it up when I first installed Ant and it hasn't been an issue up to now. Kendall - Original Message - From: "Diane Holt" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Wednesday, July 10, 2002 16:25 Subject: Re: Classpath proble

Re: BCEL

2002-07-10 Thread Diane Holt
--- Matt Lyon <[EMAIL PROTECTED]> wrote: > I'm a little unclear on why I'm encountering the following message when > I build my EJB's: > > [ejbjar] Unable to load dependency analyzer: > org.apache.tools.ant.util.depend .bcel.AncestorAnalyzer Do you have bcel.jar? See: http://jakarta.apache.org

BCEL

2002-07-10 Thread Matt Lyon
Hi, I'm a little unclear on why I'm encountering the following message when I build my EJB's: [ejbjar] Unable to load dependency analyzer: org.apache.tools.ant.util.depend .bcel.AncestorAnalyzer The class is present in the optional.jar. Is it perhaps a library dependency issue? I think I'm r

Re: Classpath problem with 1.5 "ant" on Win2000, tcsh

2002-07-10 Thread Diane Holt
--- Kendall Collett <[EMAIL PROTECTED]> wrote: > Yes--I have ANT_HOME set to C:\Ant. That works with 1.4.1, 1.5b3, and > 1.5 (with the change to the ant script I described). Okay, well, that explains that. Is there some reason you don't have it set with *nix-type path instead? Diane = ([EM

Re: Classpath problem with 1.5 "ant" on Win2000, tcsh

2002-07-10 Thread Kendall Collett
Yes--I have ANT_HOME set to C:\Ant. That works with 1.4.1, 1.5b3, and 1.5 (with the change to the ant script I described). Kendall - Original Message - From: "Diane Holt" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Wednesday, July 10, 2002 16:08 Subject: Re: Class

Re: Classpath problem with 1.5 "ant" on Win2000, tcsh

2002-07-10 Thread Diane Holt
--- Kendall Collett <[EMAIL PROTECTED]> wrote:> > The problem seems to be that ANT_LIB is set using the "NT" version of > ANT_HOME. I'm not seeing that. Even if I unset ANT_HOME, I still get: In the beginning ANT_HOME = Setting ANT_HOME... ANT_HOME set to /usr/local/ant/jakarta-ant-1.5 ANT_LIB

RE: Can you compile C++ and C from ant

2002-07-10 Thread Jennifer Moter
these are the gcc command line args - here's the gcc command: >gcc -I../msclib -I../cryptlib -I../thdlib -I../pktlib -I../niolib -D__UNI X__ -DNO_WCHAR -c authServerData.cpp I think this may be a cpptask bug - I'm compiling a set of static libraries. When link="static", outfile isn't supposed

RE: Classpath problem with 1.5 "ant" on Win2000, tcsh (retry)

2002-07-10 Thread Diane Holt
Okay, here's my echo's. I put my first one right after the for-loop on $ANT_LIB/*.jar, and my second one just before the call to 'java', and I get: /usr/local/ant/jakarta-ant-1.5/lib/xml-apis.jar:/usr/local/ant/jakarta-ant -1.5/lib/xercesImpl.jar:/usr/local/ant/[...] D:\cygwin\usr\local\ant\jaka

RE: Classpath problem with 1.5 "ant" on Win2000, tcsh (retry)

2002-07-10 Thread Dennis Doubleday
Sorry, the lines wrapped poorly before. I'll separate them a bit: I added "echo $LOCALCLASSPATH" in two places to both versions of the script. The first is right after LOCALCLASSPATH is manipulated; the second is right before running java. Here's the output in the 1.5 version (failed): C:/ant/l

Re: Classpath problem with 1.5 "ant" on Win2000, tcsh

2002-07-10 Thread Kendall Collett
In the beta, LOCALCLASSPATH is augmented using : [...] if $cygwin ; then [ -n "$ANT_HOME" ] && ANT_HOME=`cygpath --unix "$ANT_HOME"` [...] fi [...] DIRLIBS="${ANT_HOME}"/lib for i in "${DIRLIBS}"/*.jar [...] In the release, LOCALCLASSPATH is built up using: [...]

RE: Classpath problem with 1.5 "ant" on Win2000, tcsh

2002-07-10 Thread Dennis Doubleday
I added "echo $LOCALCLASSPATH" in two places to both versions of the script. The first is right after LOCALCLASSPATH is manipulated; the second is right before running java. Here's the output in the 1.5 version (failed): C:/ant/lib/xml-apis.jar:C:/ant/lib/xercesImpl.jar:C:/ant/lib/optional.ja r:

problem building ejb's using Ant 1.5 and weblogic 6.1

2002-07-10 Thread Matt McAuliffe
Hi- I seem to be having a problem creating Weblogic 6.1 ejb's using this morning's release of Ant 1.5. I was previously using the following version: Apache Ant version 1.5alpha compiled on February 26 2002. I'm getting the following java.lang.NoClassDefFoundError error with this morning's re

RE: Wildcards in the file attribute for the available task

2002-07-10 Thread Aaron Siri
Sorry, I changed it to 10 minutes during testing. I'd probably give JBossMQ something like 30 minutes to an hour to process the messages (stress testing). So what I want is something like "see if all of the messages have been PROPERLY processed in 60 minutes, if not then bail." When I say prope

RE: I.5 Optional

2002-07-10 Thread Diane Holt
--- "Duffey, Kevin" <[EMAIL PROTECTED]> wrote: > I didn't find it either. I used the 1.4.1. Seems to work. You should use the one that comes bundled with 1.5 instead. It's just a doc bug that slipped through the cracks. Diane = ([EMAIL PROTECTED])

RE: I.5 Optional

2002-07-10 Thread Duffey, Kevin
I didn't find it either. I used the 1.4.1. Seems to work. -Original Message- From: Matt Lyon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 2:20 PM To: Ant-User (E-mail) Subject: I.5 Optional Hi, This probably has already come up, but just as a sanity check: the 1.5 manual

Re: Can you compile C++ and C from ant

2002-07-10 Thread Steve Loughran
- Original Message - From: "Jennifer Moter" <[EMAIL PROTECTED]> To: "ant user" <[EMAIL PROTECTED]> Sent: Wednesday, July 10, 2002 1:08 PM Subject: FW: Can you compile C++ and C from ant > I found cpptasks 1.0a at source forge. > http://sourceforge.net/projects/ant-contrib/ > > on solari

I.5 Optional

2002-07-10 Thread Matt Lyon
Hi, This probably has already come up, but just as a sanity check: the 1.5 manual suggests: Optional Tasks Ant supports a number of optional tasks. An optional task is a task which typically requires an external library to function. The optional tasks are packaged separately from the core An

Re: Wildcards in the file attribute for the available task

2002-07-10 Thread Diane Holt
--- Aaron Siri <[EMAIL PROTECTED]> wrote: > Are wildcards/regexps permitted and respected for the file attribute in > the Available tag? Nope. > Specifically, I'm trying to do something like the following to wait for > a bit to make sure all of the jboss messages have been processed (the > snip

FW: Can you compile C++ and C from ant

2002-07-10 Thread Jennifer Moter
I found cpptasks 1.0a at source forge. http://sourceforge.net/projects/ant-contrib/ on solaris, I'm using gcc, but I'm having problems getting a good compile: Does anyone see what happened?

Re: Is there an environment var to add the antlib path to?

2002-07-10 Thread Thomas Zander
On Tue, Jul 09, 2002 at 03:16:06PM -0700, Diane Holt wrote: > --- Scott Ellsworth <[EMAIL PROTECTED]> wrote: > > > Almost right. Try ${ant.home}/lib. > > > > Cool! Someone ought to add that to the "Built in properties" section > > of "docs/manual/index.html", [...] > > Except it's not exactly b

Re: Classpath problem with 1.5 "ant" on Win2000, tcsh

2002-07-10 Thread Diane Holt
--- Kendall Collett <[EMAIL PROTECTED]> wrote: > CYGWIN_NT-5.0 In that case (no pun intended :), "cygwin" should be getting set, and all the 'cygpath' stuff at the end should be getting done. Diane = ([EMAIL PROTECTED]) __ Do You Yahoo!? Si

Wildcards in the file attribute for the available task

2002-07-10 Thread Aaron Siri
Are wildcards/regexps permitted and respected for the file attribute in the Available tag? Specifically, I'm trying to do something like the following to wait for a bit to make sure all of the jboss messages have been processed (the snippet is part of a unit test target):

Re: Classpath problem with 1.5 "ant" on Win2000, tcsh

2002-07-10 Thread Kendall Collett
CYGWIN_NT-5.0 - Original Message - From: "Diane Holt" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Wednesday, July 10, 2002 13:55 Subject: Re: Classpath problem with 1.5 "ant" on Win2000, tcsh > --- Kendall Collett <[EMAIL PROTECTED]> wrote: > > I'm seeing the sam

Re: Classpath problem with 1.5 "ant" on Win2000, tcsh

2002-07-10 Thread Diane Holt
--- Kendall Collett <[EMAIL PROTECTED]> wrote: > I'm seeing the same problem on W2K running cygwin. I've played around > with it a bit, and it appears that the difference that makes a > difference is that the classpath value supplied after the -classpath > argument is colon-separated instead of se

Re: How to set filesetmanifest attribute?

2002-07-10 Thread Magesh Umasankar
There is no alternative right now - however that message definitely is misleading... - Original Message - From: "Alexey Solofnenko" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Wednesday, July 10, 2002 2:48 PM Subject: RE: How to set filesetmanifest attribute? >

RE: How to set filesetmanifest attribute?

2002-07-10 Thread Alexey Solofnenko
If it is removed, what should be used instead of it? The log is the following: [jar] File D:\ccstg_d\dev_view\ics\build\lib\IsentrisObjectStorageAdmin.jar includes a META-INF/MANIFEST.MF which will be ignored. To include this file, set filesetManifest to a value other than 'skip'. [j

Re: How to set filesetmanifest attribute?

2002-07-10 Thread Magesh Umasankar
Please provide relevant debug output and build.xml portion filesetmanifest was removed before Ant 1.5 - sorry about that. Cheers, Magesh ** * Compromise: The art of dividing a cake in such a * * way that everybody believes others too got th

How to set filesetmanifest attribute?

2002-07-10 Thread Alexey Solofnenko
Hello, complains that filesetmanifest is not set, but it does not accept the attribute. There is no such attribute in documentation. What should I do? - Alexey. __ { http://trelony.cjb.net/ } Alexey N. Solofnenko { http://www.inventigo.com/ } Inventigo LLC Pleasant Hill, CA (GMT-8 usually)

Re: Classpath problem with 1.5 "ant" on Win2000, tcsh

2002-07-10 Thread Kendall Collett
I'm seeing the same problem on W2K running cygwin. I've played around with it a bit, and it appears that the difference that makes a difference is that the classpath value supplied after the -classpath argument is colon-separated instead of semicolon-separated. (Not sure why that's happening.)

Classpath problem with 1.5 "ant" on Win2000, tcsh

2002-07-10 Thread Dennis Doubleday
I have been using the ant shell script on Windows 2000 in a tcsh window just fine while using 1.5beta3. In the new 1.5 release, it no longer works--I get: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/ Main Diff'ing the two versions, I see there were some chang

RE: Possible Modifications to ForEach Task

2002-07-10 Thread David Colton (ext. 799)
Stefan, All. Here is my "hack" to let the ant-contrib task optionally inheritRefs. (Excuse the package naming - done for my convenience) <> I have only tested on what I want it to do and it seems to work as expected. I am blocked from using CVS to an external site so if you find this an accep

[ANNOUNCEMENT] Ant 1.5 Released

2002-07-10 Thread Magesh Umasankar
This is to announce that Jakarta Ant-Dev has released Version 1.5 of Apache Ant, a Java-based build tool. The release is available in binary and source forms at http://jakarta.apache.org/builds/jakarta-ant/release/v1.5/ The changes between the last release and this one are also highlighted there

RE: Can you compile C++ and C from ant

2002-07-10 Thread Judy Pearson
The tasks for compiling c/c++ are in the ant-contrib. (There's no Ant on my browser. What I meant to say was: If you ask your browser to search for the string "Build ant-contrib-cpptasks - C/C++ compilation tasks for Ant", you should find the site with that title.) As far as adding the task, you

Re: failonerror=false

2002-07-10 Thread sunyj
> > ... > > > > > > suggestions anyone?? > > Henning You can use TryCatchTask in ant-contrib. ANT Contribute project is here. You can get it through cvs. http://sourceforge.net/projects/ant-contrib/ Or it can be directly downloade

failonerror=false

2002-07-10 Thread Henning Mæland
The javac-task has the failonerror option. But what if I want to run say 20 task inside one target and the first of these fails? Then ant will exit, and none of the other tasks will be run. I want ant to continue with the other tasks even if one fails. How can that be done? ...