- 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
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
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
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
[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
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?
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
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
[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).
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} .
[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
...are there anywhere more usable task which has been written by users ?
...is there a way to get such tasks ?
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
- 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
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
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
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
Hi,
Is an Ant(1.2) task to send emails with attachments (zips etc) available
somewhere?
Thanks,
Pawan
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
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
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
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
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
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
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
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
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
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}
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
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
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
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
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
- 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
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-
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:
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:
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
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
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.
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
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
--- 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
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
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
--- 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
--- 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
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 --
--- 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
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
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
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
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.
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.
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:
--- 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:
--- 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
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
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
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
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
--- 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
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
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
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
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
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.
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 .
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
--- 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
- 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
Hi,
Could somebody please tell me how is ant related to Tomcat...How does this
reflect on build.xml...
Thanks a lot
72 matches
Mail list logo