On Apr 4, 2006, at 1:06 AM, Michelle Le wrote:
To build my code in Java 5, it's required to upgrade JavaCC to
version 4.0. I have downloaded JavaCC source and built the
JavaCC.zip file.
I'm having problem when executing javacc from ant build.xml file. ant
is looking for "COM.sun.labs..." wh
I've been asked to forward this to the Ant user community
Begin forwarded message:
From: "John Rizzo" <[EMAIL PROTECTED]>
I'm John Rizzo, founder of JavaBlackBelt.com
We finalize a free multiple choice test about Ant
http://www.javablackbelt.com/jbb/QuestionnaireDefDisplay.do?
questpubl
On Jul 8, 2005, at 6:04 PM, Scott Simpson wrote:
I noticed in Hatcher's properties.xml example file from Java
Development with Ant that he puts a # in front of the comments?
What is the reason for this? Thanks.
Dredging up ancient painful memories...
The reason is because those # marks wer
I concur that this issue should be addressed by fixing the default
behavior even at the risk of backwards compatibility issues - I
seriously doubt that folks would complain about this change.
Erik
On May 27, 2005, at 11:18 AM, Antoine Levy-Lambert wrote:
Matt Benson wrote:
Yes, it a
On May 3, 2005, at 2:48 PM, Ben Gill wrote:
Hi,
The only reason I am even including Spring.jar - is because Spring
API supports loading of files using the ant style **/*.xml
paths... (which is really useful especially for my custom task..)
But in theory, I should not need to include spring.ja
On Apr 4, 2005, at 5:20 PM, Rohnny Moland wrote:
On Monday 04 April 2005 16:08, Erik Hatcher wrote:
For the record, is as built-in as any other core tasks.
I recommend you consider using it.
Thanks for your answer, Erik. I use in ant 1.6.2 and
here it
seems like it is an optional task. Thats
For the record, is as built-in as any other core tasks.
I recommend you consider using it.
Erik
On Apr 4, 2005, at 8:36 AM, Rohnny Moland wrote:
Hello,
I am looking for an alternative way to modify a property file, without
using
the optional propertyfile task, and just use core functi
There is an task in Ant's CVS.
However, is what you're looking for as a way to exec on a
fileset.
Erik
On Mar 19, 2005, at 5:02 AM, Mark McKay wrote:
Hi,
I've been looking through the Ant website, but finding very little in
the way of a possible ant task to ease the use of using the 'a
See if the built-in task will do the trick.
Erik
On Feb 16, 2005, at 4:19 PM, Michael Wang (IT) wrote:
Hi,
Is there some if/while control structure in Ant?
Here is what I am trying to do with Ant.
I want to write a built script for ant. This script is used to compile
some oracle forms on
On Feb 14, 2005, at 5:56 PM, Anderson, Rob (Global Trade) wrote:
I think this should say...
public class HelloWorld extends org.apache.tools.ant.Task {
An Ant task only needs a "public void execute()" method though.
Extending from Task is handy (to get the Project instance and log
things) but no
On Jan 29, 2005, at 3:40 PM, Douglas Kramer wrote:
Is there a way to test whether a file exists?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Um nevermind. I missed the part that there is "just a blank
line". A custom FilterReader would work - have it only affect the 4th
line.
Erik
On Jan 26, 2005, at 8:55 AM, Erik Hatcher wrote:
task or the replaceregex filter reader on a
would do the tric
task or the replaceregex filter reader on a
would do the trick, I think.
Erik
On Jan 26, 2005, at 8:31 AM, Rebhan, Gilbert wrote:
Hi,
yet another txtfileprocessing question.
File looks like that :
01 bla
02 bla
03 bla
04
05
06
07 bla
08 bla
09 bla
How to put the value of a property on l
this file causes an IOException, so it looks like a bug to
me. Who does one inform of such things?
BTW, Erik thanks for your tip regarding constants!
On Mon, 24 Jan 2005 12:14:56 -0500, Erik Hatcher
<[EMAIL PROTECTED]> wrote:
On Jan 24, 2005, at 11:05 AM, michael sorens wrote:
(1) Well I tr
On Jan 24, 2005, at 11:05 AM, michael sorens wrote:
(1) Well I tried adding bcel.jar to my ant/lib directory but it made
no difference.
What did make a difference was my choice of .class file to load.
Instead of my Diagnostic.class
I tried a simpler Version.class and then I received no error, eve
lper.java:231)
at
org.apache.tools.ant.taskdefs.LoadProperties.execute(LoadPrope
rties.java:202)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
. . .
Any thoughts?
On Fri, 21 Jan 2005 05:16:27 -0500, Erik Hatcher
<[EMAIL PROTECTED]> wrote:
> And
I think VPP is a nicer way to go about doing this sort of thing:
http://vpp.sourceforge.net/
However, I personally cringe thinking of Java pre-processing instead of
architecting in more flexible design patterns. I love VPP for general
generation though - it's incredibly useful.
And even easier, you can do it with the ClassConstants FilterReader! :)
http://ant.apache.org/manual/CoreTypes/filterchain.html#classconstants
On Jan 21, 2005, at 2:53 AM, [EMAIL PROTECTED] wrote:
You can do that via API calls
- your own task
-
But you have to ensure that the class can be
The convention for tasks that need to set the value of a property (see
the source code for the task itself) is for it to take the
name of a property as one of its attributes (like ) and call setNewProperty(name, value).
So in your example, it'd look like this, instead of the line
you provided
ioned.
Erik
Chris
- Original Message - From: "Erik Hatcher"
<[EMAIL PROTECTED]>
To: "Ant Users List"
Sent: Friday, January 07, 2005 4:29 PM
Subject: Re: New Ant GUI - 'Ant's Nest'
On Jan 7, 2005, at 10:31 AM, Chris Clohosy wrote:
Thank you
On Jan 7, 2005, at 10:31 AM, Chris Clohosy wrote:
Thank you Rich, Erik, and Dominique for your comments, I'll certainly
look into them. When I first started looking into this around
May-time, I could not find any easy way of extracting the information
needed from the Ant class files. I tried eve
And further, Ant itself was annotated with XDoclet @tags a few years
ago for auto-generation of documentation and with the plan to use it
for metadata generation for tools to use. As far as I know, no tool
vendor as picked up on this metadata sadly. I'm not sure how the
IntrospectionHelper im
nd my development life is at a point where I do not
work with those technologies that XDoclet is handy for.
Erik
-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]
Sent: Thu 1/6/2005 4:25 AM
To: Ant Users List
Cc:
Subject:Re: Ant xDoclet - need some
On Jan 5, 2005, at 11:48 PM, EJ Ciramella wrote:
Hello, we're running (or attempting to run) ant 1.6.2 and xDoclet
1.1.2 (to avoid problems with assert statements. But I keep getting
this:
XDoclet 1.1.2 is *ancient*. I would highly recommend you use the most
current version. Is there a proble
I highly recommend that you simply put junit.jar into ANT_HOME/lib as
if it was a built-in part of Ant. In the big projects I've worked on,
we put Ant itself into source code control and everyone used the same
version of Ant from it. Any additional 3rd party tasks or dependencies
I wanted to
On Jan 4, 2005, at 5:41 PM, Donald Strong wrote:
Hi all,
I am having a problem launching tomcat from ant.
It works fine when I run ant in a dos shell
but not when I run ant from a cygwin shell.
executable="${tomcat.dir}/bin/catalina.bat" spawn="true"
dir="${tomc
On Jan 5, 2005, at 4:02 AM, James Abley wrote:
Have you read or got access to a copy of "Java Development with Ant"?
That has a good section about handling versioned dependencies which
might work for you.
It involves having a strict directory structure, and using a few levels
of indirection with pr
On Dec 22, 2004, at 4:04 AM, Robert Soesemann wrote:
On requirement is to write as few code as possible. Therefore I am
looking for an existing way to:
1 iterate over XML files
2 identify node
3 identify their @type attribute
4 pass the text value of each child node to its appropriate
Java Functi
Works for me
JAVA_HOME = ${env.JAVA_HOME}
java.vendor = ${java.vendor}
os.name = ${os.name}
os.version = ${os.version}
[echo]
[echo] JAVA_HOME = /Library/Java/Home
[echo] java.vendor = Apple Computer, Inc.
[echo] os.name = Mac OS X
n, such as root as opposed to
our own user that we log in with?
I have a custom CATALINA_OPTS in my ~/.bash_profile that gets picked up
just fine also. In fact, JAVA_HOME is set there also. I only showed
java.vendor, os.name, and os.version to show my platform.
Erik
--- Erik Hatch
book. You'll see it in the source code
build.xml file. The book shows how to use with Antlib (and
without).
Erik
On Dec 10, 2004, at 6:29 AM, Erik Hatcher wrote:
ObAnt: I packaged the source code distribution of Lucene in Action
(available from the site listed below) with a slick
ObAnt: I packaged the source code distribution of Lucene in Action
(available from the site listed below) with a slick build file using
Ant 1.6 features including a couple of 's. It leverages the
spawn feature of in some places, as well as to
demonstrate remote and multiple index searching.
Or, and I think even cleaner - put preparation stuff outside (and above
for clarity) any targets. In Ant 1.6, anything can be outside of
, not just as before.
Erik
On Nov 3, 2004, at 8:29 PM, Bill Rich wrote:
From the output shown it looks to me like CopyBRBuildArtifacts ran
before
pr
On Oct 27, 2004, at 8:56 AM, Benoît Lubek wrote:
Hi,
I have a property :
And I'd like to manipulate it a bit, ie, change the "." to "_" (so it
can be used for a cvs tag). So I'd like to have a property with the
value "v1_0_2".
Is there a way to do that with the core tasks? I realize it would be
On Oct 24, 2004, at 3:37 PM, Rhino wrote:
Remarks:
There are only a few things that can go wrong in this simple example.
For
instance, I can fail to provide any input for the two tasks in
the
'getlogin' target (by pressing the Cancel button). I suppose there
would
also be errors if the
On Oct 22, 2004, at 9:26 AM, Rhino wrote:
One of the aspects that I want to improve is error handling. Right
now, I mostly just assume that everything is going to work and don't
do much error handling; if the build fails, it fails.
This is really the Ant "way". Failure is a built-in mode of oper
On Sep 28, 2004, at 5:04 AM, Lennart Hellström (HF/EBC) wrote:
I want to copy a file to a destination file only if the destination
file is not readonly (it might be checked in on the version control
system)
I tried using with failOnError="false" but strangely the build
fails anyway when the de
some oddities - maybe you have some odd syntax that
it is not happy with?
At this point you need to bring this issue over to the xdoclet-user
list.
Erik
--- Erik Hatcher <[EMAIL PROTECTED]> wrote:
On Jun 15, 2004, at 3:56 PM, Kyle Korndoerfer wrote:
Sorry if this seems like a newb
On Jun 9, 2004, at 10:25 AM, Mattos, John wrote:
I have a variable called ${envir} and I'd like to do something like
Can I do anything like this? It doesn't seem to like the nested ${} 's
A cleaner solution is to have a qa.properties file and a dev.properties
file.
To
On May 11, 2004, at 8:01 PM, Kenneth Litwak wrote:
Thanks Jack and Peter. That fixed that problem.
Now how about this. In the process of developing a project, I have
code that I want to test, and code that is in development, i.e., it
isn't done and doesn't compile. I still want to run my tes
Wow... no more replies on this thread? Or is my inbox broken?! :)
On Apr 5, 2004, at 6:01 AM, Erik Hatcher wrote:
And also two active Ant committers views here (follow link to Stefan's
blog):
http://www.iseran.com/Steve/blog/archives/000103.html
My take, which includes many in-p
On Apr 5, 2004, at 6:46 PM, [EMAIL PROTECTED] wrote:
Can you provide an example?
No, sorry. Adding a condition inside a .bat - check the Microsoft docs
for that info. The docs for the MailLogger properties are in the Ant
manual.
-Original Message-
From: Erik Hatcher [mailto:[EMAIL
On Mar 30, 2004, at 4:46 AM, Marco Tedone wrote:
Hi, my boss would like to generate the XDoclet generated code for our
EJBs only when the "eventually generated" code would be different from
the "already generated" one, thus avoiding lost of time.
Has anyone something to reccomend?
XDoclet itself
My opinion on this topic is, of course, quite biased being a co-author
of Java Development with Ant and all. But I'll offer some generic
advice since I'm also a very critical book consumer. read the
reviews (at Amazon and elsewhere). Every publisher has their duds, so
you cannot rely sole
On Feb 6, 2004, at 4:32 PM, Matt Benson wrote:
It's 1.5 years out of date, but you could take a look
at
http://www.manning-source.com/books/hatcher/hatcher_apxE.pdf
for a start.
This was built using the original proposal/xdocs code - which can be
regenerated from the current source.
Erik
--
On Feb 4, 2004, at 4:14 PM, Matt Raible wrote:
I have the following compile target that compiles some .java files in
the
src/service tree, as well as some XDoclet generated files (Struts
ActionForms)
in build/web/gen. The problem I'm experiencing is that the files from
build/web/gen are recompil
I even have an Ant problem, believe it or not :O
A co-worker has experienced the most painful of all things "it
worked yesterday, but doesn't work today". Everyone else where I work
has no problems, but her particular environment for some reason is not
cooperating. I've seen this same iss
JavaCC sounds way overkill (and tangential even) to what you are
attempting. The task does have a dependency on the JavaCC
library itself (which is not included with Ant, you must obtain it
yourself.). Personally, I got fed up with the task and just
use to launch it.
Your job sounds most
On Jan 15, 2004, at 5:43 PM, Rhodes, Phillip C. wrote:
I have multiple targets. Each target has a responsible project
manager. If the target fails, I want to send an email to this
specific person. using the ant -logger mechanism appears to make it
global for the entire build.
Is there any way
On Monday, December 15, 2003, at 11:09 AM, Matt Harp wrote:
I was messing around with it over the weekend to generate
documentation on
my source. Through greps and the xdt I figured out a couple things like
@ant.attribute group="required" will make the docs say it's required.
@ant.task ignore="tr
is simply a fileset, so it's usage is identical to all you
will find documented about filesets.
for example.
Erik
On Monday, December 8, 2003, at 04:19 PM, Kavitha Ranga wrote:
Hello,
I am trying to use the metainf tag within a jar tag.
i am looking for examples and usage of this tag.
On Friday, November 7, 2003, at 06:37 AM, Hynes Fintan wrote:
Try this... it is rather ugly, though.
(There is probably a simpler way.. anyone?)
I'm on my way out the door, so don't have time to flesh this out, but
using with property="arg" value="-p" using an ,
along with would probably do th
If you fork then you can control the classpath more finely.
Give that a try - it will probably do the trick.
Logging what a pain!
Erik
On Tuesday, August 12, 2003, at 02:49 PM, James Asher wrote:
I have a JUnit test that also uses HtmlUnit.
HtmlUnit is using commons-logging which in t
And what would you want to get from the RSS feed? ant-user e-mails
(i'm sure there is a gateway to make that possible)? bug reports? cvs
commits?
there is an RSS feed for the Jakarta wiki.
On Wednesday, August 13, 2003, at 04:28 PM, Ciramella, EJ wrote:
Is there an RSS feed for ANT anywher
Exclude binary files from the filtered copy operation, and copy the
binary files in a separate that is unfiltered. That is just how
its done. I believe the or docs mention this
warning too :)
Erik
On Wednesday, July 30, 2003, at 12:58 PM, Peter Smith wrote:
Hi all,
I have a text file
Launch nmake with and use Ant as the front-end for all builds
and use MailLogger?! :)
On Wednesday, March 26, 2003, at 11:06 AM, Ciramella, EJ wrote:
Has anyone done some sort of auto notification? Since 3/4 of the
builds
done here are nmake and bat file based (the only ant related builds
Steve and I's book is up for a reader's Jolt award:
http://www.sdmagazine.com/jolts/2002/readerpoll.html
Also, to be fair, another Ant book (the O'Reilly one) is up for the
same award. Their book is also in the vendor-nominated category.
Please log in and vote soon! Polls are only open for a
On Tuesday, March 4, 2003, at 07:42 PM, Erik Price wrote:
Great. ${ant.home} was exactly what I needed. (Actually, it didn't
work at first, and I wondered if I had done something wrong but my
build file seemed to be right. It turns out that junit.jar doesn't
work if it's a symlink [at least
On Tuesday, March 4, 2003, at 04:33 AM, Matthew Oatham wrote:
Hi,
OK I've ordered Java Development with Ant book
Thank you!
I create a base jar which will be used for deployment on different App
servers so this base jar needs different deployment descriptors added
to it depending on the target
erence " + ref + " not found!");
}
if (!cls.isAssignableFrom(o.getClass())) {
throw new BuildException(ref + " not a " + name + " reference!");
}
return o;
}
}
PS: Usually, MyAttr would extend DataType.
-Original Message-
From: Erik Hatcher [ma
t. I couldn't find anything
without
clicking pages. For my use, I am putting bookmarks in the document
organized by letter of the alphabet and by what is on a page (remains
a PDF
file). I suppose that I would need the author's permission (Erik
Hatcher I
think) to give it to anyo
61 matches
Mail list logo