1. Wondering if anybody using ant with VAJava in a
real life project? Is it effective? Easy to use?
2. also looking for sample build.xml (apart from one
given in docs) which does importing projects, building
jar from vaj repository
__
Do You
Hi,
-Original Message-
From: Peter Donald [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 12:19 AM
To: Ant Users List
Subject: Re: How do you version jar files?
On Fri, 16 Nov 2001 09:47, Conor MacNeill wrote:
Scott,
There are a number of ways to version jars
oh,
I forgot to mention that you could put the information also within an
xml file within the jar file.
I'm planning to do that sooner or later, because it allows you to store
more information easily.
For example you store the version numbers of the jar-files the jar file
depends on.
This
On Fri, 16 Nov 2001 19:36, Markus Kohler wrote:
If Java would have a standard for this (I haven't found one)
See jdk1.3 docs looking for term Extension or Optional Package. It is not bad
but is a really immature system in some ways. If you want to make an
incompatible change you have to
I have used these together...
I think is is because ANT tried to catch output (System.out) from tasks.
I would use a file appender if I were you...
Alan.
-Original Message-
From: Christopher Berry [mailto:[EMAIL PROTECTED]]
Sent: 15 November 2001 21:59
To: Ant-User (E-mail)
Subject:
Hi,
-Original Message-
From: Peter Donald [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 9:33 AM
To: Ant Users List
Subject: Re: How do you version jar files?
On Fri, 16 Nov 2001 19:36, Markus Kohler wrote:
If Java would have a standard for this (I haven't found
I have this same configuration and I have a target
that sets the flag before getting on with it.
target name=debug_dist depends=set_debug,dist/
Where set_debug is like setmode...
And Dist depends on an init that sets debug to false.
Then I use debug in my javac calls...
Alan.
-Original
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
The rough equivalent of this in Xalan-J 2.x is the
javax.xml.transform.TransformerFactory, which is a
JAXP-standard call. I
know there have been discussions in Ant-land about making Ant
style? task
use
Hi !
Is there some task for remote copying ? like rcp ?
Thanks
/Joel
___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Courrier : http://courrier.yahoo.fr
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
Hallo,
I have following property entry in my build.properties:
build.revision = $Revision: 1.2.4.1 $
And this in build.xml:
target name=usage description=-- usage
echo message=${build.revision}/
...
/target
My output looks:
bash-2.03$ ./build.sh
Buildfile: build.xml
I find this code works on win2k applied to ${dist.dir} which is laid out like the
unpacked webapp..
jar jarfile=${name}.war
basedir=${dist.dir}
include name=**/*/
/jar
-Original Message-
From: Michael Weir (Transform Research) [mailto:[EMAIL PROTECTED]]
Sent:
Hi,
please bear with me, cos I'm new to this list, and I can't find the answer
to this question in the archive..
I use a freeware IDE, Jcreator, which suits me fine, I can set up ant to be
run from within it for any project and any target (nice) and for it to
capture ant's output.
Great I hear
1. Name the jar with the version as part of the name. This is
the way Ant's
own jars are distributed.
I use a slight twist to this and use the date in the jar name, of course that has
pro's and con's like everything else particularly because it inscrutably fails to let
you know if
On Fri, 16 Nov 2001 21:04, Rafal Kedziorski wrote:
Hallo,
I have following property entry in my build.properties:
build.revision = $Revision: 1.2.4.1 $
And this in build.xml:
target name=usage description=-- usage
echo message=${build.revision}/
...
/target
My
Hi !
Are the RemoteTask task, RemoteCopyTask... describe in
this article
http://www.javaworld.com/javaworld/jw-10-2000/jw-1020-ant_p.html
already blundled with Ant ??
Thanks
/Joel
___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et
On Fri, 16 Nov 2001 21:16, Danny Angus wrote:
Hi,
please bear with me, cos I'm new to this list, and I can't find the answer
to this question in the archive..
I use a freeware IDE, Jcreator, which suits me fine, I can set up ant to be
run from within it for any project and any target (nice)
it is mentioned in docs
import an appropriate XML parser to VAJ (we use
Xerces 1.2.0 and are happy with it)
what version of xml parser should we insall in VAJ .
xerces 1.4.4? (latest)
also another question
import the Ant sources into VAJ.
what does it mean. Where can i download ant source?
Hi,
-Original Message-
From: Danny Angus [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 11:16 AM
To: Ant Users List
Subject: RE: How do you version jar files?
1. Name the jar with the version as part of the name. This is
the way Ant's
own jars are
In addition I was wondering if it is possible to do something like
'scp' - secure copy
sftp- secure ftp
I want to use this to create an 'ant putlive' build target.
Sincerely,
Joel
On Fri, 2001-11-16 at 11:03, Joel Cordonnier wrote:
Hi !
Is there some task for remote copying ?
Getting fol error when i click on Ant Buil for a
project in VAJ
classnotfoundexceptoin :org.apache.tools.ant.taskdefs.optional.ide.VAJAntTool
__
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
--
To unsubscribe,
you could write a BuildListener that translated it. When many of
the jakarta
projects used to do this I used an awk script. That may be an
option aswell.
Thanks Pete. Can't see the wood for the trees me sometimes ..
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
build.xml
jar jarfile=${dest1}/lib/app.jar
basedir=${dest}
manifest
attribute name=JarVersion value=1.1/
/manifest
/jar
manulay edit every build
Manifest-Version: 1.0
JarVersion: 1.1
Created-By: Ant 1.4.1
__
Do You Yahoo!?
Find
Couple of questions...
I'd like to create an ant task to bundle some code with the libs it depends upon in a
jar with its main-class and class-path attributes set. Since ant knows everything
there is to know about what I need it goes against the grain to write a separate
manifest file.
Conor
On Fri, 16 Nov 2001, brian ewins [EMAIL PROTECTED] wrote:
Also, is what Conor's saying right?
If Conor says, it is possible, it is 8-). He has written the code.
I have the 1.4 code in front of me and I can't see anything in the
jar task or 'manifest' code that would allow this?
I only
If you are working on a Unix box, using a fileset with dir=/ would
help - see my other post in the thread Manifests, copy task.
Stefan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
You probably need to add the Ant project_resources dir to
your Workspace classpath. You can accomplish this by doing
the following:
Window - Options - Resources, click on browse and search
for the Ant dir in VAJ_INSTALL_DIR/ide/project_resources.
The dir is the name of the project into which
On Thu, 15 Nov 2001, Christopher Berry [EMAIL PROTECTED]
wrote:
NOTE: In order to see my output in the JUnit Formatters, I ended up
having to add the following lines to JUnitTestRunner::run().
System.setOut( systemOut );
You are supposed to get the output in the formatters and things like
Not true. You can have the value attribute of attribute
be a variable that you pass in on the command line.
attribute name=JarVersion value=${jar.version} /
-jason
--- Bacardi Wasabi [EMAIL PROTECTED] wrote:
build.xml
jar jarfile=${dest1}/lib/app.jar
basedir=${dest}
manifest
On Fri, 16 Nov 2001, Joel Cordonnier [EMAIL PROTECTED] wrote:
Are the RemoteTask task, RemoteCopyTask... describe in
this article
http://www.javaworld.com/javaworld/jw-10-2000/jw-1020-ant_p.html
already blundled with Ant ??
They've never been offered to the Ant community, thus they are not
I'm having difficulty doing these two things, building package by
package, and using depend, at the same time. I'm able to do either
separately without any difficulty.
By building package by package, I mean that I want to build package
com.odi.A first, then com.odi.B, then com.odi.C. Package B
Hi,
I'm a new user of Ant and I need advice to be able to correct my problem.
I use the Ant version 1.4.1.
I have writen an Ant build file to build my product.
The building works fine on a machine which have 512M memory.
But I have the following error:
java.io.IOException: Not enough space
Well, I guess I will add my two cents.
I just implemented what I think might turn out to be a pretty good solution.
We will have to see though.
We have one class in our project whose sole purpose is to provide this
information. Like the example below, a String variable is assigned to
$Name$.
Hello,
I don't know how open you are to outside tools, but check out Anthill.
Anthill is an extension to Ant and is Open Source. It is a controlled build
process tool that provides a solution to your question. Anthill performs a
build of a project whenever it determines that the code base has
See:
http://marc.theaimsgroup.com/?l=ant-userm=100102270812060w=2
Diane
=
([EMAIL PROTECTED])
__
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
Hi,
in ant 1.4 i have the problem, that the Class.forName() is throwing an
exception. I saw in the archive, that there was a similar request, but did
not find any reply.
Here the problem is residing in an own taskdef, where i want to instantiate
a class by calling Class.forName( ), which
sounds like a classloader issue... but I am not an expert
there. Anyone else?
-jason
--- Michael Remme [EMAIL PROTECTED] wrote:
Hi,
in ant 1.4 i have the problem, that the Class.forName()
is throwing an
exception. I saw in the archive, that there was a similar
request, but did
not find
On Sat, 17 Nov 2001 01:16, Michael Remme wrote:
in ant 1.4 i have the problem, that the Class.forName() is throwing an
exception. I saw in the archive, that there was a similar request, but did
not find any reply.
Here the problem is residing in an own taskdef, where i want to instantiate
a
The class you are looking up should be in the same classloader or
a parent
classloader of your task. So if your task is loaded from ant/lib then the
other class must also be in ant/lib etc.
Does ant use a different class loader for every task definition? Why?
Cheers,
Pete
I feel like a jerk for doing for reposting this, but I got no response the
last time I posted this query, and maybe there is someone new reading who
can help
Hi all,
I'm having a problem including files in a generic ejbjar task. I need the
jars for eventual deployment into WebSphere
On Fri, 16 November 2001, Peter Donald wrote:
On Fri, 16 Nov 2001 21:19, Joel Cordonnier wrote:
Hi !
Are the RemoteTask task, RemoteCopyTask... describe in
this article
http://www.javaworld.com/javaworld/jw-10-2000/jw-1020-ant_p.html
already blundled with Ant ??
It is set to withOutAndErr. This did not help. Only with the change below
does the output end up in the Formatter. I instrumented the source and
traced it back to the JUnitTestRunner.
-Original Message-
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001
Yeah. It all works fine with a FileAppender. Only this is not rolled in
nicely with the JUnit Formatter's output, and adds another artifact to the
mix.
I am thinking of using Ant to post process the generated HTML files to
include a link, if any, to the log4j file. Currently, AFAIK, the
I ended up not using either the jar or the war tasks. Instead, I copied
all the files I needed to my build area and zipped it up. Voila! I got a
working war file. This leads me to believe that there's a subtle bug in
the jar and war tasks Thanks everyone who helped me on this one.
Chris,
There is no need to post-process the generated HTML I'd recommend simply
tweaking the XSLT sheets that are used to generate the HTML.
Its not really feasible currently to provide a link from the HTML to the XML
data files because the HTML could be generated in a different directory
Good advise. Thanks.
Couldn't the included output -- the stuff (if it is present) in between the
system-out and system-err tags, be dropped into separate HTML files in
the same dirs by junitreport itself. As, say, TestMyTest-stdout.html, and
then linked on the suite summary pages.
Cheers,
--
You're most likely running out of swap space; a good rule of thumb is to allocate 2x
the amount of RAM you have. You should be able to add an additional swap file on the
fly in most(?) UNIX variants rather than being forced to create another swap
filesystem.
If you do already have plenty of
I've some problems using the JUnit task.
I have some tests which load a resource from the classpath using
getSystemResource().
This only works if I use fork=yes in my JUnit task, otherwise the resource
is not found (due to classloader issues, I suppose).
Using fork=yes two other problems arise:
Of course!
I just forgot about those elements being there (d'oh!) - but everything in
the XML data files is fair game for HTML reporting. I could see it being
handy to actually hyperlink right to the XML data files as well if they are
kept together as a unit.
Erik
- Original Message
If you run Ant with -quiet, then I don't think the output will appear...
-Original Message-
From: Stefano Mancarella [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 10:11 AM
To: [EMAIL PROTECTED]
Subject: JUnit problems
I've some problems using the JUnit task.
I
--- Bryan Pendleton [EMAIL PROTECTED] wrote:
Thanks for the suggestions. Those both work, but
in my case, the actual set of targets is not
pre-determined; I was hoping to be able to pass the
set of targets in at runtime (for example, by
loading them from a property file).
I'm not sure how
I am using ANT with Visual Age for Java for
1: Extracting code out of visual Age.
2: Importing code in Visual Age.
3: Staring and stopping Visual Age.
All these using Remote access to tool API.
Check this link
http://www7.software.ibm.com/vad.nsf/Data/NTD2CE?OpenDocumentp=1mast=2
The
Unfortunately it does.
Any other idea?
- Original Message -
From: Christopher Berry [EMAIL PROTECTED]
To: 'Ant Users List' [EMAIL PROTECTED]
Sent: Friday, November 16, 2001 18:47
Subject: RE: JUnit problems
If you run Ant with -quiet, then I don't think the output will appear...
Hi,
Is it possible to give the ant command line a different way?
I'm using ANT in NetBeans and in Cruise Control etc... And would like to
pass in -debug -quite etc...
Thanks,
Alan.
Alan Pearlman-Spencer
MobileAware Ltd.
3225 Lake Drive,
Todd,
I'm having a problem including files in a generic ejbjar task.
snip/
The problem is, the support tag is including all the .xmi files from
all
the descriptors in the generic-ejb.jar when all I want is the two
files that
accompany each ejb-jar.xml.
I don't quite understand what you are
I have encountered this problem when stating the classpath in each task,
what
happened was that I not only got several instances of each class but
each
target loaded a new instance of the class code on a large build it
consumed
a lot of memory. (This was with the sql task)
I removed the
I thought it would be a good idea to add some stuff to the manifest file so
that later it could help me debug, so I did:
jar jarfile=${dist.home}/dcs.jar
fileset dir=${compile.to}
include name=**/dcs/**/*.class/
include
Stephane Bailliez wrote:
I'm afraid the error you are having is not due to a memory problem but to a
disk space problem.
As the message says, it's a I/O Exception not a Memory error.
Hi Stephane,
First of all, thank you very much for your reply.
I'm sure this is a memory problem.
Indeed
Diane Holt wrote:
See:
http://marc.theaimsgroup.com/?l=ant-userm=100102270812060w=2
Hi Diane,
First of all, thank you very much for you reply.
I had already try to set the ANT_OPTS with different values for -Xmssize and
-Xmxsize, without any success.
Kind regards.
Hélène.
--
-=-
I have no idea if this is the reason you are experiencing errors, but try
getting rid of the spaces in the names (e.g., instead of Date of Build,
try DateOfBuild).
Scott
- Original Message -
From: Ylan Segal [EMAIL PROTECTED]
To: Ant Users List [EMAIL PROTECTED]
Sent: Friday, November
I agree. My (limited) experience with jar files have them being very syntax
sensitive. Line length, I know, can be a problem.
Mark
-Original Message-
From: Scott Moore [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 2:22 PM
To: Ant Users List
Subject: Re: How do you
Thanks a lot You apparently got it exactly right... spaces in names.
I just did a test, and it is working nicely.
I decided to put all my variables in a section which has also a name
without spaces and it is finding classes without a problem.
Ylan.
I have no idea if this is the
over here we have a template file for a class (VersionMetaData)
which contains tokens replaced with the replace action.
tokens are things like build host, build time, build user,
and build number, which are determined by a Perl script.
each package or application requiring this version
On Fri, 16 Nov 2001, Michael Remme [EMAIL PROTECTED] wrote:
Here the problem is residing in an own taskdef, where i want to
instantiate a class by calling Class.forName( ), which is
always throwing a ClassNotFoundException.
Could you show us the taskdef please - is the class you need in
Hi.
I've seen that exception before (when trying to compile an HTML template
using XMLC). I'm pretty sure that the not enough space message
is referring to SPAP space, not memory. If you had run out of
memory you would see java.lang.OutOfMemory exceptions.
Check to see what your swap space
On Fri, 16 Nov 2001 15:29:04 -0500
Peter Davison [EMAIL PROTECTED] wrote:
Hi.
I've seen that exception before (when trying to compile an HTML template
using XMLC). I'm pretty sure that the not enough space message
is referring to SPAP space, not memory. If you had run out of
Sorry,
-Original Message-
From: Hélène JOANIN [mailto:[EMAIL PROTECTED]]
I'm a new user of Ant and I need advice to be able to correct
my problem.
I use the Ant version 1.4.1.
I have writen an Ant build file to build my product.
The building works fine on a machine which have 512M
Why do you think this is a memory problem?
As Stephane says you are getting an IO exception NOT an OutOfMemory error.
Check your swap space while performing a build and see what happens to
it.
Regards,
Pete.
On Fri, 16 Nov 2001 16:52:44 +0100
Hélène JOANIN [EMAIL PROTECTED] wrote:
Stephane
The following fact might be relevant to this issue:
unfortunately, Sun's implementation of exec() on UNIX uses an
expensive version of fork() that makes a complete current process replica
in memory before proceeding with exec(). This will fail if the current
process is very large in
On Sat, 17 Nov 2001 01:47, Mark Claassen wrote:
The class you are looking up should be in the same classloader or
a parent
classloader of your task. So if your task is loaded from ant/lib then the
other class must also be in ant/lib etc.
Does ant use a different class loader for every
Attribute names can not have spaces in them. f they do the JVM will not load
them. Remove the spaces and try again.
On Sat, 17 Nov 2001 05:58, Ylan Segal wrote:
I thought it would be a good idea to add some stuff to the manifest file so
that later it could help me debug, so I did:
jar
there is a Install.sh file which installs project in virtual directory
In this file i have following property tag for specifying properties
file
property file=install.properties /
question is how can these properties and values could be refered
again ..for example if i want to use them again
Hi fellow Ants,
I'm having a Ant-problem for which I can see no explaination. Any input appreciated.
In the snippet below the instance property is set to a,b,c. I want the
ftp_transfer target to run three times with a different remotedir
attribute value each time. The target fires three times
Thank you, your idea really helped me!
-brent
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi,
I spotted a recent thread that I thought answered my question, re
setting environment
variables but I'm not sure I get it. If I want to amend an environment
variable, i.e.
the CLASSPATH, can I do this from within the ant script? I've tried
setting the CLASSPATH
in the same shell that I
Hi,
I've searched the mail archives and ant documentation for a couple hours
and haven't found a solution to my problem. I'm wondering if somebody
has a quick fix that could fix this problem.
Problem statement: I'm using Ant 1.4. My project has multiple build
files, one of which could be
(was getting off-topic for ant-user)
On Fri, Nov 16, 2001 at 09:36:24AM +0100, Markus Kohler wrote:
Hi,
-Original Message-
From: Peter Donald [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 12:19 AM
To: Ant Users List
Subject: Re: How do you version jar files?
Yes Yes Yes,
This is almost exactly what I wanted to implement anyway :-)
Another application for example is that you can print out the versions of
all jar-files
within your classpath. I've already done that.
Regards,
Markus
-Original Message-
From: Jeff Turner [mailto:[EMAIL
I like this, a lot, if I had a +1 here I'd use it..
its simple
its addresses a real need
it would facilitate the production of tools to deal with the nightmare that
is .jars and the classpath
Ant could check jars against dependencies, and build the jars from scratch
only if need be.
A new tool
Personally I would instead choose to just enhance the jdk1.3 Optional
Pacakge spec with an extra attribute. (ie Jakarta-Rules: true or something
better named) and then just add more fixed rules on interpretation of
versions. The reason is that the Optional Pacakge spec is used in servlet,
ejb
79 matches
Mail list logo