On Wed, 9 Mar 2005, Don J. Payette <[EMAIL PROTECTED]> wrote:
> This is an interesting one (at least to me). Ant is attempting to
> call LoadCorp (as can be seen from my stdout). It gets an
> IllegalAccessException. Inside LoadCorp is a "main" that looks like
> this:
>
> public static vo
copy.compile.post
-Original Message-
From: Jeffrey E Care [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 14:34
To: Ant Users List
Subject: Re: Why "Trying to override old definition of task xxx" message?
You are likely defining a macrodef for a task that already exists.
What
Thanks, this is helpful.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 09:27
To: user@ant.apache.org
Subject: AW: alternate xml logger stylesheets
The key part is
[EMAIL PROTECTED] != 'debug']
in line 178 and 195. All messages w
I have a project that has worked for almost forever. I just moved to ant
1.6.2 and I get a strange error.
If I run ant -diagnostic everything seems ok. I am missing junit stuff and
something else, but not likely to be the problem.
On my class path I have only JAVA_HOME
I have taken stuff out o
Well...that worked...
Thanks for the workaround. I'll use that for now.
-Rich
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 3:17 PM
To: user@ant.apache.org
Subject: RE: Odd MailLogger issue..
I invoke MailLogger like so:
ant -logge
--- Jacob Kjome <[EMAIL PROTECTED]> wrote:
>
> Oh, you know what. I think I ended up having to
> first copy all the files to a
> single directory so that I could first use the
> "flatten" mapper on my fileset
> first (since all libs live inside a single parent
> base directory, but are
> scatte
I invoke MailLogger like so:
ant -logger org.apache.tools.ant.listener.MailLogger
-DMailLogger.properties.file=maillogger.properties
I have a vague recollection that when I tried to set the same properties
without setting ${MailLogger.properties.file}, it didn't work... Don't know if
that help
Thanks, I'll keep that in mind.
Sameh
-Original Message-
From: David Resnick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 9:06 PM
To: 'Ant Users List'
Subject: RE: How to escape the quotes characters in a string?
You can also use this:
-David
-Original Mes
ANT Version: 1.6.0
Command line run:
ant -f test.xml -logger org.apache.tools.ant.listener.MailLogger
test.xml refs a properties file that contains the following:
# mail variables
[EMAIL PROTECTED]
MailLogger.mailhost=mail.XXX.com
[EMAIL PROTECTED]
MailLogger.failure.notify=true
Oh, you know what. I think I ended up having to first copy all the files to a
single directory so that I could first use the "flatten" mapper on my fileset
first (since all libs live inside a single parent base directory, but are
scattered within at different levels of depth). Then I did the cop
I'm not going to guarantee that this works. I worked on this a while back and
commented it out because I went another route, but wanted to keep this around
for reference. The Regexp might be able to be written better as well. Try it
and see if it works for you. Let me know if it does.
This is an interesting one (at least to me).
Ant is attempting to call LoadCorp (as can be seen from my stdout). It
gets
an IllegalAccessException. Inside LoadCorp is a "main" that looks like
this:
public static void main(String [] argv) throws Exception {
What is ant's problem?
-
Read about File Mappers under the Concepts and Types
section of the Ant manual... specifically you probably
need a regexpmapper.
HTH,
Matt
--- Casey Daniell <[EMAIL PROTECTED]> wrote:
> Is there any good way to automatically rename files
> in a fileset?
>
> Situation, I have many different produ
> From: Casey Daniell [mailto:[EMAIL PROTECTED]
> I would like to be able to rename the libraries from log4j-1.2.8.jar
to
> log4j.jar, when I copy the file contained in a fileset to the distro
> point. Is there any easy way to do this? (Basically just strip out
> the number part of the library name
Is there any good way to automatically rename files in a fileset?
Situation, I have many different products that I support, instead of
including specific libraries in the build script I include a reference to
the files which is resolved in a properties file. This allows me to easily
vary different
> From: Baker, Derek [mailto:[EMAIL PROTECTED]
>
> Is it possbile to have multiple if or unless conditions? [target
> name="foo"
> if="property1, property2"]
No. Combine the conditions with , in a target
that 'name' would depend on (or at the top level). --DD
Is it possbile to have multiple if or unless conditions? [target name="foo"
if="property1, property2"]
Thanks,
Derek
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Jan,
Thank you for reply.
My logger class is in a jar file.
I put that jar in classpath and I get:
Unable to instantiate specified logger class br.com.sabius.listener.NbLogger
: java.lang.Exception
java.lang.RuntimeException
at org.apache.tools.ant.Main.createLogger(Main.java:787)
Shouldn't be too hard.
John
-Original Message-
From: Rhino [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 10:49 AM
To: Ant Users List; Bill Rich
Subject: Re: Confusion re path-like structures
So when I gave it a path and three locations, I *wasn't* saying "you'll find
the thr
Is there any way in Ant, to compare filenames? I am dealing with jar
files and after 2 levels of hierarchy , I need to scan all file names
and come out with similar pattern with the latest timestamp(included in
filename).
Any advice would be appreciated.
So when I gave it a path and three locations, I *wasn't* saying "you'll find
the three jar files mentioned in 'location' in the path denoted by 'path'"?
What DOES 'path' do then if it doesn't identify where the 'location' files
are?
I find the manual very fuzzy on this point
Rhino
- Ori
you´re welcome
re-checked?
Jan
-Ursprüngliche Nachricht-
Von: Markus Innerebner [mailto:[EMAIL PROTECTED]
Gesendet am: Mittwoch, 9. März 2005 17:32
An: Ant Users List
Betreff: Re: AW: how to read an environment var in a property file
Hi Jan
thanks for your quick answer
[EMAIL PROTECTED
Hi Jan
thanks for your quick answer
[EMAIL PROTECTED] wrote:
You have to read the ENV before the prop file:
build.properties:
-
test=${ENV.KEY}-Text
${test}
test
C:\TEMP\xx>set KEY=Hello
C:\TEMP\xx>ant
Buildfile: build.xml
[echo] Hello-Text
BUILD SUCCESSFUL
Jan
I think it worked the way it should have. I believe what you told it was to
include the C:/Program Files/IBM/SQLLIB/java and the db2java.zip,
db2jcc.jar, and db2jcc_license_cu.jar files from the "base path".
Therefore, when you give it a specific path for the 3 files it finds them.
HTH
Bill
You have to read the ENV before the prop file:
build.properties:
-
test=${ENV.KEY}-Text
build.xml
-
${test}
test
C:\TEMP\xx>set KEY=Hello
C:\TEMP\xx>ant
Buildfile: build.xml
[echo] Hello-Text
BUILD SUCCESSFUL
Jan
-Ursprüngliche Nachricht--
Hello to all
is it possible to do following in a property file:
aPropertyItem= ${ENV_VARIABLE}/var
when I am trying to use it later in a ant file, I am not able to see the
content of this property item.
I also tried to do it with:
aPropertyItem= ${env.ENV_VARIABLE}/var
thanks for helping
Is it possible? How?
Thanks!
Maciek
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I'm a bit confused by path-like structures. I wonder if someone can clarify
something for me?
I am trying to revise a 'javac' step that previously only needed one jar on
its classpath so that it can see three jars in the same directory. Based on
the article on path-like structures in the Ant manua
You are likely defining a macrodef for a task that already exists.
What is the name of the macro that it's complaining about?
--
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/projects/mantis
"David
If you use or and if the "copy.compile.post" macro
contains text or attributes that have embedded properties (like "${name}")
which may change when the a new project is used, the macro
contents will be different and the ant core code will whine about
a change to the macro.
There is a bug report a
As best as I can see it, I am only defining it once.
This is the situation:
There are 2 files: Main.xml and tools.xml.
In Main.xml (directly inside the project element) I have:
Inside targets in Main.xml I use the copy.compile.post macro.
In tools.xml (also directly inside
Looks like you are redefining a macrodef.
For exmple:
Would cause the macro "doit" to be defined twice.
Normally, one would place macrodefs outside of targets
and give them different names.
Peter
David Resnick wrote:
I have a project with a dozen macrodef definitions. Tod
Hi list!
It seems the XmlValidate task only supports files as input.
The DTD to validate against, however, can be a file, URL or resource.
Any hints on how to go about to validate a URL with XmlValidate?
Do I need to save its contents into a file first? If so, how?
(My main purpose is to val
On Wed, 2005-03-09 at 04:43, Perkins, Kristian wrote:
> I think the point to make is that the same JDK will be used regardless
> of the values of build.compiler or compiler attribute, but the
> difference will be in the compiled classes that are outputted, that is
> setting compiler to javac1.4 wil
34 matches
Mail list logo