Re: Ant 1.4 -- failonerror attributes?

2001-05-03 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 checked-out

Re: Newbie question

2001-05-03 Thread Stefan Bodewig
Keith Kee [EMAIL PROTECTED] wrote: How do you find docs about all these special features like unless, if, If and unless are attributes of target, they are documented here http://jakarta.apache.org/ant/manual/using.html in the section labeled Targets. fail fail is a built-in task, see

Re: Newbie question

2001-05-03 Thread Stefan Bodewig
At 09:38 AM 02-05-01 +0200, Stefan Bodewig wrote: failCan only build if running in a JDK 1.3 VM/fail make that fail message=Can only build if running in a JDK 1.3 VM / in Ant 1.3 - I think the support for nested text is new in 1.4alpha. Stefan

RE: Passed in $CLASSPATH versus javac classpath

2001-05-03 Thread SimonRichardson2
David We also use a wrapper to call ant, however the calls in our wrappers are in the form 'ant -buildfile buildfile -logfile logfile' Which on NT invokes ant.bat and on Solaris invokes the ant shell script. The problem we encountered was that ant.bat and ant (shell) construct LOCALCLASSAPATH

Re: How to escape still failing

2001-05-03 Thread Stefan Bodewig
[EMAIL PROTECTED] wrote: exec executable=cscript arg line=..\ConfigFiles\EpiMgr.vbs -P quot;quot;/ /exec Does something like this exec executable=cscript arg line=..\ConfigFiles\EpiMgr.vbs -P/ arg value=quot;quot; / /exec work? Stefan

Ant 1.4 ??

2001-05-03 Thread Eddie Bernard
I must've missed something on the web site or I'm not looking in the right place. Where's the distribution for Ant 1.4? Is there any documentation on it available?

Re: Ant 1.4 ??

2001-05-03 Thread Stefan Bodewig
Eddie Bernard [EMAIL PROTECTED] wrote: I must've missed something on the web site or I'm not looking in the right place. No, there is no Ant 1.4 - the current development version is labeled 1.4alpha and is probably going to be released as Ant 1.4 some time in the future. Where's the

RE: Passed in $CLASSPATH versus javac classpath

2001-05-03 Thread SimonRichardson2
Stefan Could you please look at the 2 questions below: It appears that whenever ant encounters a javac task, it uses the passed in $LOCALCLASSPATH instead of any path specified using the classpath attribute of the javac task. No, it prepends the passed in CLASSPATH by default

Re: Passed in $CLASSPATH versus javac classpath

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

RE: Passed in $CLASSPATH versus javac classpath

2001-05-03 Thread SimonRichardson2
Stefan So I understand from what you've said that it's the CLASSPATH environment variable which is accessible through the javac task and NOT the LOCALCLASSPATH (set in ant.bat and ant (sh)), even though ant is executed in these scripts as follows: java -classpath ${LOCALCLASSPATH} .

Re: Passed in $CLASSPATH versus javac classpath

2001-05-03 Thread Stefan Bodewig
[EMAIL PROTECTED] wrote: So I understand from what you've said that it's the CLASSPATH environment variable which is accessible through the javac task and NOT the LOCALCLASSPATH (set in ant.bat and ant (sh)), even though ant is executed in these scripts as follows: java -classpath

looking for usable tasks

2001-05-03 Thread Marco Struck
...are there anywhere more usable task which has been written by users ? ...is there a way to get such tasks ?

Re: Optional jar snapshot

2001-05-03 Thread Conor MacNeill
From: Andrew Thompson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 1:32 PM Subject: 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

Re: Weblogic 6, ejbjar and support pain

2001-05-03 Thread Conor MacNeill
- Original Message - * Using support means every file that one puts in the support 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 the support classes to vary by bean. Yes, I

Re: looking for usable tasks

2001-05-03 Thread Conor MacNeill
Marco, What do you mean by usable? Conor - Original Message - From: Marco Struck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 7:44 PM Subject: looking for usable tasks ...are there anywhere more usable task which has been written by users ? ...is there

RE: Passed in $CLASSPATH versus javac classpath

2001-05-03 Thread SimonRichardson2
Understood .. thanx -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: 03 May 2001 10:39 To: [EMAIL PROTECTED] Subject: Re: Passed in $CLASSPATH versus javac classpath [EMAIL PROTECTED] wrote: So I understand from what you've said that it's the

Re: looking for usable tasks

2001-05-03 Thread Vincent Massol
For the moment, there is no repository of tasks submitted by users (one is scheduled for Ant 2.0, the rationale beeing that the Ant structure for integrating external tasks is not ready yet in Ant 1.x). Either these tasks were considered vital enough (after voting) and were integrated in the Ant

Ant task for emails with attachments?

2001-05-03 Thread Pawan Kumar Katharikuppam
Hi, Is an Ant(1.2) task to send emails with attachments (zips etc) available somewhere? Thanks, Pawan

Re: Ant task for emails with attachments?

2001-05-03 Thread Stefan Bodewig
Pawan Kumar Katharikuppam [EMAIL PROTECTED] wrote: Is an Ant(1.2) task to send emails with attachments (zips etc) available somewhere? A few days ago a task like this has been submitted to ant-dev, just grab it from the archive http://marc.theaimsgroup.com/?l=ant-devm=98878520826391w=2. Not

Problem: Ant 1.3 with JDK1.2.2.007

2001-05-03 Thread lily Gao
Greeting all: I got the following Java exception with running Ant1.3 with JDK1.2.2.007. When I run Tomcat 3.2.1, I got exactly the same problem. I have only tools.jar with whatever jar files in ant\lib\ and tomcat\lib in my classpath. Any idea? - Buildfile: example1.xml BUILD FAILED

RE: Problem: Ant 1.3 with JDK1.2.2.007

2001-05-03 Thread SimonRichardson2
I've experienced the same problem running on Solaris and I would guess it's because you have a parser that is not compatible with ant in your classpath (xerces?) I got round the problem by making sure the standard CLASSPATH did not include anything, and instead included my jars as a an attribute

Using System Environment variables

2001-05-03 Thread Perry Hunchak
Is there any way to use the system environment variables (for windows) in the build.xml file ant uses? I currently use specify my tomcat home by pointing to the file system path example: property name=tomcat.home value=d:/java/tomcat3.2.1/ But I'd like to just use the system environment

Re: Using System Environment variables

2001-05-03 Thread Jim Downing
Perry, use property environment=env/ then env.Tomcat_Home. jim - Original Message - From: Perry Hunchak [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 3:27 PM Subject: Using System Environment variables Is there any way to use the system environment variables

RE: Using System Environment variables

2001-05-03 Thread Kuni Katsuya
use property environment=env/ and then just reference it as ${env.TOMCAT_HOME} -Original Message- From: Perry Hunchak [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 10:27 AM To: [EMAIL PROTECTED] Subject: Using System Environment variables Is there any way to use

RE: Problem: Ant 1.3 with JDK1.2.2.007

2001-05-03 Thread lily Gao
All right! I fixed it. There is another jaxp.jar file in JDK's ext directory. That jar file was always picked up first. -Jianhe From: lily Gao [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Problem: Ant 1.3 with JDK1.2.2.007 Date: Thu, 03 May 2001 14:32:34

Re: Using System Environment variables

2001-05-03 Thread Fabian Mörchen
hi haven't tried on win, but this work on linux: property environment=env/ ${env.JAVA_HOME} bye fabian Perry Hunchak wrote: Is there any way to use the system environment variables (for windows) in the build.xml file ant uses? I currently use specify my tomcat home by pointing to the

RE: Ant 1.4 -- failonerror attributes?

2001-05-03 Thread J.D. Fagan
Yep, already tried the autoResponse set to Y. Below is my vsscheckout task and resulting errors I get. I guess according to Nico's reply, I can't avoid this situation. Guess I could check to see on a per file basis if they are writable first before trying to check them out... -Snippet of

iplanet deployment tool

2001-05-03 Thread Keith Kee
Hi: I am using the May 1 snapshot of jakarta-ant with the new iplanet deployment tool. To test the new task, I using the iplanet's sample helloworld source. In my build.xml I have the following target: target name=stubs depends=build ejbjar srcdir=${classes.dir}

SetManifestProperty Task

2001-05-03 Thread Aarti Chandnani
Title: SetManifestProperty Task Hi, I have written a task called SetManifestProperty. I thought I will pass it on, and anyone who needs it can use it! This is something what i needed, I wonder if anyone out there needs it too... Anyways what this task does is: It is used to set the

Newbie Question

2001-05-03 Thread David Scassa
I know how to exclude a specific file from the ANT java compile function, but how do I exclude an entire subdirectory recursively? target name=compile depends=prepare javac srcdir=${sourceDir} destdir=${outputDir}/classesMain debug=on deprecation=off optimize=on

Basic question Javac ... (it is long !!!)

2001-05-03 Thread Viraj Purang
Hi, I am new to the ANT scene, so a silly question. I have multiple modules in CVS each having its own src directory CVS Structure for module ... --- module-name properties com company-name

Re: How to escape

2001-05-03 Thread N. J. O'Neill
Use: arg line=-h -f quot;somethingquot; -m -l/ Diane But for sanity's sake, how about: arg line='-h -f something -m -l'/ --Neil

excluding directories

2001-05-03 Thread Nolan Ring
Title: excluding directories I have what I'm afraid is an incredibly basic question about excluding directories from being built. With make, if there's no Makefile, that directory and any others under it are ignored. Is there any similar mechanism with ant? My list of directories to exclude

Re: Newbie Question

2001-05-03 Thread Nico Seessle
- Original Message - From: David Scassa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 7:42 PM Subject: Newbie Question I know how to exclude a specific file from the ANT java compile function, but how do I exclude an entire subdirectory recursively? target

RE: How to escape

2001-05-03 Thread debic
No it doesn't work, I need -P but it comes out as -P see below... exec executable=cscript arg line='..\ConfigFiles\EpiMgr.vbs -P '/ /exec [exec] cscript ..\ConfigFiles\EpiMgr.vbs -P Execute:CommandLauncher: cscript ..\ConfigFiles\EpiMgr.vbs -P -Original Message-

RE: -projecthelp

2001-05-03 Thread Aarti Chandnani
Title: RE: -projecthelp I dont think so The usefulness of doing the projecthelp is that it tells you which subtargets are there in the build.xml file What you can do is something like this: ant -projectfile -logfile log.txt Now you can read the logfile! -Original Message- From:

RE: Basic question Javac ... (it is long !!!)

2001-05-03 Thread Shaikh, Mehmood
I have a similar scenario and i have one build file per package. There's a top level build file, that fetches build file of every package from cvs and runs ant task. -Original Message- From: Viraj Purang [mailto:[EMAIL PROTECTED]] Sent: May 3, 2001 2:16 PM To: [EMAIL PROTECTED] Subject:

Re: Basic question Javac ... (it is long !!!)

2001-05-03 Thread Diane Holt
Whether to have build-files for each of your modules is a design decision. If you go with just a single build-file at the top of the tree, and your build process is complicated, then having everything in one file can tend to get a bit unwieldy. On the other hand, if your process is fairly

ANT - ANTCALL or something Similar [Long and Ugly]

2001-05-03 Thread David Scassa
With most automated builds written in perl it is possible to break the build up into several portions. (e.g. Build, Package, Ship, Deploy) This leads me to ask the following Newbie questions: 1. Assuming that I have a principal build.xml file that performs the build and even creates the

RE: How to escape still failing

2001-05-03 Thread Diane Holt
I don't know what 'cscript' is/does, but if it's something in-house, would it be possible to modify it so that it only requires the -P flag when there is a password? Diane --- Boris Debic [EMAIL PROTECTED] wrote: No it's still not working instead of having -P I get -P '' Best regards.

C++

2001-05-03 Thread Duffy, Erin
Hi all, I've been researching Ant for the past couple of weeks, as we'd like to start using it as our build tool. While I have gotten it to work for most things very nicely for our mostly Java and J2EE project, I still have some questions about how to get Ant to play nicely with C++. I

out of memory with javac

2001-05-03 Thread Mike Pedersen
Hello all, I'm attempting to compile a project which contains about 1300 source files on solaris. When using ant 1.3 or 1.4latest alpha I get the following error. [javac] The compiler has run out of memory. Consider using the -J-mxnumber command line option to increase the maximum heap

Re: -projecthelp

2001-05-03 Thread Diane Holt
--- Hayes, Peter [EMAIL PROTECTED] wrote: Is there anyway to suppress the Subtargets when doing ant -projecthelp. Doesn't look to be (see lines 585-586 in Main.java) -- but if you wanted to add that, you could change it :) ... We use a lot of intermediate subtargets that make the help less

Re: out of memory with javac

2001-05-03 Thread Diane Holt
See the mail archive at message: http://marc.theaimsgroup.com/?l=ant-userm=9863455820w=2 And for a little more info: http://marc.theaimsgroup.com/?l=ant-userm=98841369924374w=2 (Guess I should probably add this one to the FAQ.) Diane --- Mike Pedersen [EMAIL PROTECTED] wrote: Hello

RE: out of memory with javac

2001-05-03 Thread Swamy
I guess you could use -mx512m to tell the compiler to use 512Mb of memory. ss -Original Message- From: Mike Pedersen [SMTP:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 3:20 PM To: [EMAIL PROTECTED] Subject:out of memory with javac Hello all, I'm attempting to compile

RE: Ant 1.4 -- failonerror attributes?

2001-05-03 Thread Diane Holt
--- J.D. Fagan [EMAIL PROTECTED] wrote: Yep, already tried the autoResponse set to Y. Below is my vsscheckout task and resulting errors I get. I guess according to Nico's reply, I can't avoid this situation. Guess I could check to see on a per file basis if they are writable first before

Re: ANT - ANTCALL or something Similar [Long and Ugly]

2001-05-03 Thread Diane Holt
--- David Scassa [EMAIL PROTECTED] wrote: 1. Assuming that I have a principal build.xml [...] How would I call a distribution.xml file that would contain the move/copy functions? Use the ant task to run targets in other build-files. (Use antcall to run targets within the same build-file but

RE: Ant 1.4 -- failonerror attributes?

2001-05-03 Thread J.D. Fagan
I was under the impression that chmod was a UNIX only task. Or so it states in the documentation. Does it work for Windows? JD -Original Message- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 2:58 PM To: [EMAIL PROTECTED] Subject: RE: Ant 1.4 --

RE: Ant 1.4 -- failonerror attributes?

2001-05-03 Thread Diane Holt
--- J.D. Fagan [EMAIL PROTECTED] wrote: I was under the impression that chmod was a UNIX only task. Or so it states in the documentation. Does it work for Windows? Oh right -- sorry. I forgot we were dealing with VSS, which means dealing with Windows. Do you work in DOS, or do you have a

RE: How to escape

2001-05-03 Thread N. J. O'Neill
OK, after a bit of testing and RTFM it looks like you might want to use the 'value' attribute instead of the 'line' attribute. That is, exec executable=cscript arg value='..\ConfigFiles\EpiMgr.vbs -P '/ /exec If this fails, you might want to try separating out the arguments

RE: Jar/ EJBs / Weblogic (general weirdness)

2001-05-03 Thread Andy Yates
success! but I still don't know why... I checked the DDs, and they are exactly as shown below, however, we realised that we'd changed the version of EJBGen (1.15-1.18) that we use to generate the files - I switched back to the old version, and voila, deployable beans...! Still, it makes no

Only the init task executes

2001-05-03 Thread J2EE User
Following is a simple build file: project name=Junit default=init basedir=. target name=init tstamp/ property name=sourceDir value=src/ property name=outputDir value=classes/ /target target name=compile depends=init echo message=Begining the comilation of the Java source files/ javac

RE: How to escape

2001-05-03 Thread Boris Debic
Ok, I tried it it doesn't help I need this exact line: cscript ..\ConfigFiles\EpiMgr.vbs -P But what I get is this, for the first example you gave, [exec] cscript '..\ConfigFiles\EpiMgr.vbs -P ' Execute:CommandLauncher: cscript '..\ConfigFiles\EpiMgr.vbs -P ' and this for the second.

how to ear with 1.4?

2001-05-03 Thread J.D. Fagan
Trying to build an ear with the ear task from Ant 1.4 alpha (I see the Ear.java task in the CVS repository). However, I get errors from Ant complaining that ear is not a task. How do I make it work? Do I need to use the taskdef for this task? Any help from those using this task appreciated.

RE: Applications with Tomcat using ant

2001-05-03 Thread Kurt Olsen
Ant is a platform independent build-tool. Tomcat is an http server and jsp/servlet container. Tomcat is built with ant They are not 'related' per-se. -Original Message- From: Pinar Bicioglu [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 5:15 AM To: '[EMAIL PROTECTED]' Cc:

RE: Ant 1.4 -- failonerror attributes?

2001-05-03 Thread Diane Holt
--- J.D. Fagan [EMAIL PROTECTED] wrote: This is too messy...just gonna drop it and move onto other more important issues (like convincing management that VSS sucks). Good plan! There's a little write-up done that could help out at:

Re: how to ear with 1.4?

2001-05-03 Thread Diane Holt
--- J.D. Fagan [EMAIL PROTECTED] wrote: Trying to build an ear with the ear task from Ant 1.4 alpha (I see the Ear.java task in the CVS repository). However, I get errors from Ant complaining that ear is not a task. How do I make it work? Do I need to use the taskdef for this task? Any

wildcarding dir in fileset?

2001-05-03 Thread John Fisher
Hi folks- I'm at my wits end here. I'm trying to adapt Ant to work with our Apex development environment. I've already had to hack the Ant code to get compilations to work (they work beautifully now). I'm trying to get the creation of jar files to work. I've included a *manually* constructed

Ant and Conditional Expressions1

2001-05-03 Thread Adam Flegman
Hello All, I am very new to the world of XML and in particular have just discovered Ant I am was wondering if there was an easy way to create conditional expressions within the ant xml build files to help control execution of the build process. (eg to execute a target depending on the value for

RE: C++

2001-05-03 Thread Tim Vernum
Anyway, I don't see a way to get that kind of dependency checknig out of the apply task, I would really need some sort of C++ compilation task to be able to do that. But, before I even think about writing my own, I wanted to know if there are any already out there. There was a cc

RE: How to escape still failing

2001-05-03 Thread debic
So I did modify the current task to go arround the quote issue, the thing that vorries me a bit is that I did have the source this time but next time it might be some third party tool where I won't have the source and then I'll be either stuck or have to hack my way through doing on the fly shell

Re: wildcarding dir in fileset?

2001-05-03 Thread Diane Holt
--- John Fisher [EMAIL PROTECTED] wrote: My probably is that for any Apex view, this list is arbitrary. In other words, my list of dir values that I need to process are /nif/code/Framework_Templates/GUI.ss/fisher_java.wrk/Links/Imported_Views/* /classes (you can see I've created n fileset

RE: Jar/ EJBs / Weblogic (general weirdness)

2001-05-03 Thread Andy Yates
I don't know! I can't seem to get ejbjar to work for the life of me... here's the target I'm using: target name=ejbJar depends=compileSource copy todir=${build.metainf.dir} fileset dir=${build.src.dir} include name=*-jar.xml/ /fileset /copy

Ant + ZeroG Install Anywhere?

2001-05-03 Thread Jon Baer
Has anyone had any success on using Ant to do a final packaging build with any installer products like ZeroG's InstallAnywhere NOW! 4.0 stuff? (or any installer for that matter). - Jon

RE: Ant and Conditional Expressions1

2001-05-03 Thread Tim Vernum
I notice that targets can have an 'if' argument, but unfortunately this is only concerned with the existence of a parameter whereas I am also interested in the value of a parameter Some time ago I send an equal task to ant-dev, that would allow you to set a property if two values were

Re: Ant and Conditional Expressions1

2001-05-03 Thread Adam Flegman
Hi Tim, Thanks for the idea. Its a pity that something simple like and if expression isnt part of the standard ant control flow. It may break down the OO desing of the product a bit, but there is a payback in the usability. The source code might come in handy if it is easy enough to find. Is

Re: Ant and Conditional Expressions1

2001-05-03 Thread Robert Leftwich
At 11:39 AM 04-05-01 +0800, Adam Flegman wrote: Hello All, I am very new to the world of XML and in particular have just discovered Ant I am was wondering if there was an easy way to create conditional expressions within the ant xml build files to help control execution of the build process.

Ant Experts help me !!!!!!

2001-05-03 Thread Balasubramanian S
Hi all Iam facing the problem .Iam having the directory structure like this Root dir - classes - sun - com *.class - jar - docs - src - sun - com *.java 1)I have placed all the jar files in the jar dir .

flush Ant's output into the JBuilder console

2001-05-03 Thread Landgraf, Thomas GFIDOR
Hi, when i start a rather long task, a task that builds 3 EJB-Jars, i.e., i've noticed, that Ant's output gets rendered to JBuilder's console, after the last task of the 3 has finished it's processing. Is it possible to force some kind of 'flush' of the actual console output in order to see

Re: Ant and Conditional Expressions1

2001-05-03 Thread Diane Holt
--- Adam Flegman [EMAIL PROTECTED] wrote: Thanks for the idea. Its a pity that something simple like and if expression isnt part of the standard ant control flow. An if-expression is -- just not a test-for-equality. It will likely become available with Ant2, though. The source code might

Re: Ant 1.4 -- failonerror attributes?

2001-05-03 Thread Nico Seessle
- Original Message - From: Diane Holt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 12:48 AM Subject: RE: Ant 1.4 -- failonerror attributes? --- J.D. Fagan [EMAIL PROTECTED] wrote: I was under the impression that chmod was a UNIX only task. Or so it states in

Applications with Tomcat using ant

2001-05-03 Thread Pinar Bicioglu
Hi, Could somebody please tell me how is ant related to Tomcat...How does this reflect on build.xml... Thanks a lot