Hi:
when the task is called the execute() is called...just
follow it
form there.
Next you will need to get the contents of the file and
parse
it. If it plain text then it is easy .. indexOf...
Hope this helps.
I would like to search a word within a file.
What version of java are you using?
On Tue, 23 Oct 2001 Weinmann, Alexander wrote :
Under windows 2000 I experienced several times that
the
copy task did not work as expected. License files and
other
proprietary formats seemed to have changed [when read
from other applications]
Add weblogic.jar (or weblogicaux.jar if using WL 6.x)
into your system CLASSPATH before launching ant and the
'Could not fully load...' warning message will go away.
Magesh
does anyone know of a good site for example ANT
scripts (Unix or NT)?
All projects hosted at http://jakarta.apache.org use
ant scripts to perform builds.
Magesh
looks the same, even down to the file size, (except
for the manifest file.)
When the jar is created using Ant in Windows, the
Manifest file is created with Windows specific line
separators. Hence dumping the war created in windows
isn't readable in Unix, as Unix line separators
not do that - it ends each line
depending upon the platform - if it is Unix, it ends it
with \n - Unix's line separator, and if it is Windows,
it ends the line with \r\n - Windows's line separator.
Maybe this is causing your problem?
Magesh
On Wed, 14 Nov 2001 Magesh Umasankar wrote
Alan:
This enhancement request is a duplicate of
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4127
A patch has been submitted. Please wait for it to be committed.
Magesh
- Original Message -
From: Alan Pearlman Spencer [EMAIL PROTECTED]
To: Ant Users List [EMAIL PROTECTED]
Patch to allow debug level applied to Ant 1.5 alpha. DebugLevels will
be used only when the modern javac compiler is used.
- Original Message -
From: Alan Pearlman Spencer [EMAIL PROTECTED]
To: Ant Users List [EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 3:49 AM
Subject: RE: Line
Please post it as an enhancement request in bugzilla so that
this request doesn't get buried in the archives.
http://nagoya.apache.org/bugzilla/
Thanks,
Magesh
- Original Message -
From: Alfonso Urdaneta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 5:34 PM
No. There isn't such a link. For a list of available builds, visit
http://jakarta.apache.org/builds/
Magesh
- Original Message -
From: martin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 3:37 PM
Subject: Download antidote
Is there a link to download the
Is there a step-by-step install guide for Ant on Solaris? I have not
Just ensure you read the big red 'Note' in
http://jakarta.apache.org/builds/jakarta-ant/release/v1.4.1/bin/
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
- Original Message -
From: forgotten gentleman [EMAIL PROTECTED]
To: Ant Users List [EMAIL PROTECTED]
Sent: Sunday, November 25, 2001 3:04 PM
Subject: Copying, jikes
- Is there a fast way to move directories even if you
know they stay on the same volume? Many OSes treat
this as a
On Mon, 26 Nov 2001 Nico Seessle wrote :
- When using Jikes compiler, does it do incremental
builds by comparing the dates of the .java .class
files?
Yep.
No. Jikes compiles everything you tell it. As far as
Ant is concerned it
only passed files to jikes which Ant
On Mon, 03 Dec 2001 Stefan Bodewig wrote :
On Fri, 30 Nov 2001, Paul Cody Johnston
[EMAIL PROTECTED]
wrote:
Does anyone know if there are plans to support nested
filesets for
the unjar class of tasks?
The CVS version of Ant already supports this. I'm not
quite sure,
From: shawn [EMAIL PROTECTED]
variable to the ant root directory as directed. When
I try to run ant -v at the command prompt it tells me
that ant is not recognized as an internal or external
command, operable program or batch file.
What is the value of your PATH variable?
From: shawn [EMAIL PROTECTED]
C:\ant\bootstrap\bin;
Hmm... Try inserting debug messages in ant.bat.
Also try 'CD'ing into the bin directory where ant.bat is
and then run it. Though this shouldn't be needed, it
will help you debug the problem better.
Magesh
--
To
I can't reproduce the exact problem as I don't run
Win2K, but try removing the statements in ant.bat that
begin with rem because of the and was unexpected at
this time. that you receive. Also change the first
line to @echo on, spice up the file with some echo
statements to find out
List [EMAIL PROTECTED]; Magesh Umasankar
[EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 6:40 PM
Subject: Re: newbie issue
Thanks a lot. That worked and now Ant is at least being recognized.
Unfortunately, I'm still a bit stuck. I'm trying to run sun's j2ee
tutorial
and use ant to compile
...
Magesh
- Original Message -
From: Maciej Zawadzki [EMAIL PROTECTED]
To: Ant Users List [EMAIL PROTECTED]; Magesh Umasankar
[EMAIL PROTECTED]
Sent: Friday, December 07, 2001 2:59 PM
Subject: RE: Tar task weird behavior on Linux
After doing gzip --list on the generated .gz file, it contains
From: Christopher R. Gardner [EMAIL PROTECTED]
Does Ant have an FTP task?
Yes. It ships an optional task. Please read the manual for further
details.
Magesh
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
From: Nathan Coast [EMAIL PROTECTED]
quick question, has anyone managed to do a 'get' from
vss using labels? I keep getting 'version not found'
when I exec vss from ant (I also get the
http://marc.theaimsgroup.com/?t=10053354321r=1w=2
Look at the above thread. The note by
Yes, This has been recently added to cvs 1.5alpha. You can check the
machine architecture and version of Os using os
- Original Message -
From: Ron Coutts [EMAIL PROTECTED]
To: 'Ant Users List' (E-mail) [EMAIL PROTECTED]
Sent: Monday, December 10, 2001 6:06 PM
Subject: Machine
From: Dmitri G. Chtchekine [EMAIL PROTECTED]
I get exception trying to delete some files (OS is Windows NT).
Windows doesn't let a program delete any file that is locked
by the OS at the time of attempting to delete. Such is not the case
in Unix. So this problem will usually occur in Windows
On Thu, 13 Dec 2001 Dmitri G. Chtchekine wrote :
It's not Windows' locking. (I have seen Windows locking
when I had Explorer open and tried to delete some
directories)
It is the propertyfile task that is guilty here. We
have identified and fixed it against the main CVS trunk.
Ant 1.5Alpha has the necessary fix to allow multiple
Class-Path attributes to exist in the Manifest file.
The Jar Specification and Manifest Specification by Sun
are inconsistent. These links will show the
inconsistencies:
http://java.sun.com/j2se/1.4/docs/guide/jar/jar.html
On Sat, 22 Dec 2001 Mallampati, Suresh wrote :
If there are multiple individual sections for the
same file entry, the attributes in these sections are
merged. If a certain attribute have different values
in different sections, the last one is recognized.
And how does this relate
From: Magesh Umasankar [EMAIL PROTECTED]
multiple Class-Path attributes in the same section.
All other attributes will not be allowed to be
repeated.
I should have said - If any other attribute is repeated
within a section, only the last value of that attribute
From: Dan Lipofsky [EMAIL PROTECTED]
If I want to make targets A and C but not B, and they all depend on
X, then I end up running X twice if I do ant A C.
Try this:
project ...
target name=X unless=Xcalled
echo message=Hi X/
property name=Xcalled value=true/
/target
target name=A
From: Peterson, Brian [EMAIL PROTECTED]
MAKE. Unfortunately I am stuck with using Source Safe, yet need to do
builds on Unix.
I'd like to do a one step build, which includes getting the files from the
code repository from NT, and then issue the build command on Unix, and
capture its
Take a look at:
http://jakarta.apache.org/builds/jakarta-ant/release/v1.4/bin/
http://jakarta.apache.org/builds/jakarta-ant/release/v1.4.1/bin/
Cheers,
Magesh
- Original Message -
From: M.A.Dunphy [EMAIL PROTECTED]
To: Ant-User (E-mail) [EMAIL PROTECTED]
Sent: Friday, January 18, 2002
From: Lev Zak [EMAIL PROTECTED]
I use Ant 1.4.1 under windows nt/2000.
How can I unzip specific file only from the zip-file (have been included
many files) by unzip task?
This feature has been added to the Ant 1.5
development tree. You may want to use the
nightly build.
Lev.
Cheers,
Known Issue, visit
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5167
Cheers,
Magesh
***
* Smile: A curve that can set a lot of things straight. *
***
- Original Message
From: [EMAIL PROTECTED]
The jar file produced by Ant 1.4.1 is roughly
500KB smaller than the one produced by 1.3.
However, I'm now thinking that it must be something
else that is different because the actual build
directory that contained the class files before
the jar was created
From: Magesh Umasankar [EMAIL PROTECTED]
In Ant 1.3, id the debug attribute was not
specified to javac, the -debug flag was not
included in the javac command line.
Please read it as ... -g flag was not included ...
Cheers,
Magesh
From: Pravin Pillai [EMAIL PROTECTED]
Guys:
Can i access an environment variable using ant???
Did you read the manual under BuiltIn tasks-Property???
Cheers,
Magesh
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
From: Stefan Bodewig [EMAIL PROTECTED]
On Fri, 8 Feb 2002, Scott Ellsworth [EMAIL PROTECTED] wrote:
I have a multi stage build using ANT 1.4.1. Each stage produces a
jar containing the complete product of that stage. We want to
combine the results of several of those stages to build
From: Joshua Allen [EMAIL PROTECTED]
Hi, I have a great task and want it included
in the optional package next release. How can
I do this?
Please send an e-mail to ant-dev explaining
what the task will do and how it is going to
be useful. That would get the ball rolling.
Cheers,
From: Lev Zak [EMAIL PROTECTED]
I use ANT 1.4.1 on Windows 2000.
I need to compare two properties (build number) that I take from a two
different build.properties file.
I have two installation in the different directory (d:/app1 and d:/app2)
and
I would like to compare if this is the same
From: Duncan Harris [EMAIL PROTECTED]
I've just knocked up an Ant Task to strip comments from JavaScript files.
Useful in web apps so you can comment to your hearts delight without using
up runtime bandwidth.
Would this be useful to others, or is there some component out there that
From: Duncan Harris [EMAIL PROTECTED]
This is getting to be more of a ant-dev
question, but anyway...
[EMAIL PROTECTED] (Magesh Umasankar) wrote:
In Ant's CVS tree (1.5Alpha), I have recently
committed a set of FilterReaders. Please take
a look at it. IMHO, your task must instead
From: Duncan Harris [EMAIL PROTECTED]
However I looked at the code for StripJavaComments
as an example and it is wrong, e.g. k=a/b converts to k=ab
and it strips all the string and char literals... oops.
Unless I'm missing the point here somehow?
I have now fixed the code in CVS. It
From: Darrell DeBoer [EMAIL PROTECTED]
Unfortunately, there's no prefix attribute
on tarfileset, as there is with zipfileset,
so you'll need a workaround.
Just FYI, Three new attributes have been added
to Ant 1.5Alpha - prefix, fullpath and
preserveLeadingSlashes.
Cheers,
Magesh
From: Ylan Segal [EMAIL PROTECTED]
- There where warning in the jar task, however the jar created was
sucessful and worked ok.
[jar] DEPRECATED - The jarfile attribute is deprecated. Use destfile
attribute instead.
Before Ant 1.5 is released, this message will be removed,
but the
From: Ylan Segal [EMAIL PROTECTED]
Hi Ylan:
This is my first submitted patch, so forgive me if it
is not in the expected format.
Unified diff format patches are prefered generally.
I was looking at the manual for the junit and junitreport tasks, and it
seems to me that they should have
From: Ylan Segal [EMAIL PROTECTED]
I was looking at the manual for the junit and junitreport tasks, and it
seems to me that they should have a note like the one on style task that
links to the Library dependency table.
So I added the link. Maybee someone here with access to the cvs
From: Diane Holt [EMAIL PROTECTED]
--- Diane Holt [EMAIL PROTECTED] wrote:
--- Erik Hatcher [EMAIL PROTECTED] wrote:
FYI - In Ant's CVS there is an AnsiColorLogger that can be used to do
this or something similar.
Have you used it? I got a nullPointerException (at printMessage())
From: Diane Holt [EMAIL PROTECTED]
--- Magesh Umasankar [EMAIL PROTECTED] wrote:
I have introduced an assertion for not null in the code now. You said
you had access to FreeBSD, right? It would work there - perhaps
you may want to give it a shot (for feedback's sake, at least
The first beta for Ant 1.5 is now available:
http://jakarta.apache.org/builds/jakarta-ant/release/v1.5Beta1/
I'd like the members of these lists to try out these builds and if there
are no major problems in the next two days, I will send out announcements
to a broader group of people.
If you
Ahem! It is still in its first beta though ;-)
The final release is scheduled for July 1.
Cheers,
Magesh
**
* Compromise: The art of dividing a cake in such a *
* way that everybody believes others too got the*
* same small size
Good catch! I have fixed it now. Thanks!
Cheers,
Magesh
**
* Experience: The name men give to their mistakes. *
**
- Original Message -
From: Juergen Damke [EMAIL PROTECTED]
To:
- Original Message -
From: Kyle Adams [EMAIL PROTECTED]
The main issue I'm concerned about is how I'll explain to
management why we're using beta software to build mission critical apps.
In
other words, how to cover my rear :-)
By asking them to treat 1.4.1 as the alpha
release to
Please create a build.xml and a zip file that will
help recreate this problem and send it. Please make
sure the files that you send address just this problem.
I wouldn't want everybody receiving a huge zip file ;-)
Cheers,
Magesh
*
You are running ant 1.5Beta1, I assume. The problem
occurs because it was compiled using JDK 1.4 and you
are perhaps running JDK 1.1.x on your Sun box. I am
planning on building Beta2 such that it doesn't result
in this problem.
Cheers,
Magesh
- Original Message -
From: Chris
- Original Message -
From: Dominique Devienne [EMAIL PROTECTED]
BTW, I found online doc on filterchain in the Concepts section, which
says
copy (and other tasks) can use it, but there's no mention about (I could
see) in copy or move or ...
I have now added cross-references to
- Original Message -
From: Steve Loughran [EMAIL PROTECTED]
and now selectors. (there are filters too, but I think they get neglected
by
both)
I am going to have a fight with the authors over that ;-)
-Steve
Cheers,
Magesh
*
* Early to
This is to announce that Jakarta Ant-Dev has released
the second beta of the forthcoming 1.5 release 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.5Beta2/
If you notice any problems with
- Original Message -
From: Erik Hatcher [EMAIL PROTECTED]
We have one chapter dedicated to writing custom tasks, and another that
has
info on writing custom selectors, FilterReaders, mappers, listeners, and
loggers.
Woohoo! I notice the new inclusions :-)
Erik
Cheers,
Magesh
- Original Message -
From: Paul Christmann [EMAIL PROTECTED]
So I rebuilt 1.5b2 to try hacking some stuff into JUnitTestRunner to try
and further isolate the cause -- and much to my surprise, a rebuilt
version of optional.jar did the trick. I noticed that both ant.jar and
- Original Message -
From: Paul Christmann [EMAIL PROTECTED]
-Original Message-
From: Magesh Umasankar [mailto:[EMAIL PROTECTED]]
Which JDK are you using and on which OS?
Windows 2000, JDK 1.4 compiler
I wonder if it is a Win2K specific issue. Works fine
on NT
This hasn't been done already - your proposal
looks good to me. If you are comfortable with
coding, please provide this enhancement yourself
to ant-dev. Otherwise, please make sure you file
it in BugZilla as an Enhancement Request.
Cheers,
Magesh
This is to announce that Jakarta Ant-Dev has released
the third beta of the forthcoming 1.5 release 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.5Beta3/
If you notice any problems
Message-
From: Magesh Umasankar [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 9:03 AM
To: Ant Developers List; Ant Users List;
[EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Ant 1.5Beta3 Released
This is to announce that Jakarta Ant-Dev has released
From: [EMAIL PROTECTED]
Unfortunately, no it wont. I'm not in a position to
call for a vote,
As I understand it, anybody can call _for_ a vote. The
committers get the right _to_ vote.
Cheers,
Magesh
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
- Original Message -
From: Nicola Ken Barozzi [EMAIL PROTECTED]
Magesh Umasankar wrote:
From: [EMAIL PROTECTED]
Unfortunately, no it wont. I'm not in a position to
call for a vote,
As I understand it, anybody can call _for_ a vote. The
committers get the right
- Original Message -
From: Dmitry Macsema [EMAIL PROTECTED]
Another issue came up, however, nothing gets added to .jar with these
options:
jar destfile=lib/amurnet.jar update=false
fileset dir=${basedir}/ledestin
include name=**/*.class, **/*.policy,
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
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
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?
If it
- Original Message -
From: Rick Berman [EMAIL PROTECTED]
My first attempt was as follows:
copy file=file1 tofile=file2
filterset
filtersfile file=filters/
/filterset
filterchain
expandproperties/
/filterchain
/copy
However, the
- Original Message -
From: Magesh Umasankar [EMAIL PROTECTED]
By the 1.5 design, filterchains get executed
before filtersets. I recollect documenting
this 'somewhere', but am not able to pinpoint
the location where I did.
Qute a nice place to document this, isn't it? ;-(
Look
This (misleading) message will be removed before
1.5.1 is released next month.
Cheers,
Magesh
**
* Wisdom comes to those who live long enough *
* to see things twice. *
**
-
This is to announce that Jakarta Ant-Dev has released
the First Beta of Version 1.5.1 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.1beta1/
The changes between the last release and this
- Original Message -
From: Damon Hill [EMAIL PROTECTED]
** High Priority **
Is there a time frame as to when Ant 1.5.1 will become an official
release as opposed to the
beta release as it is referred to on the website??
The reason I am asking is because it is labeled as Beta
This is to announce that Jakarta Ant-Dev has released
Version 1.5.1 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.1/
The changes between the last release and this one
are also highlighted
. *
***
- Original Message -
From: Magesh Umasankar [EMAIL PROTECTED]
To: Ant Developers List [EMAIL PROTECTED]; Ant Users List
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, October 03, 2002 11:03 AM
Subject: [ANNOUNCEMENT
Typos in both cases:
Try:
targetname=merge-descriptor-2
loadfile property=webinc.xml srcFile=webinc.xml/
copy file=web.xml toFile=dist/web.xml
filterset
filter token=WEBINC value=${webinc.xml}/
/filterset
/copy
/target
Try:
targetname=merge-descriptor-3
The condition element must be specified as a
nested element of target
Try:
project name=test default=all basedir=.
target name=init
condition property=build.properties.filename
value=build-linux.properties
os name=Linux/
/condition
condition
- Original Message -
From: Scott Stirling [EMAIL PROTECTED]
Seems like sed and grep could be implemented as filterreaders (see
http://jakarta.apache.org/ant/manual/CoreTypes/filterchain.html). The
LineContainsRegExp filterreader is already a solid foundation for grep. A
little more
- Original Message -
From: Matt Benson [EMAIL PROTECTED]
Nice thought here--why not adapt the various angles of
Jakarta ORO as FilterReaders? Another class I have
thought of writing for quite some time, but whose
implementation would be quite tricky, is an
InverseFilterReader
- Original Message -
From: didge [EMAIL PROTECTED]
From: Kief Morris [mailto:[EMAIL PROTECTED]]
I'm trying to figure out the behavior of ChainableReader implementations
under copy type tasks. In particular, it seems that the Reader has its
initialize() method called for each file
80 matches
Mail list logo