Hi All,
I had a question on how I could use two variables to access information from
my properties files. I am trying to build an ant script to generate
configuration files for all of my development, qa, and staging environments.
For example I have the following in a properties file:
#Confi
I believe the 1.3 version of Java do not include JCE (Java Cryptography
Extension) in their defualt configuration. You will need to download and
install JCE into the jre or jdk. Not sure about IBM's version though,
but I think that is the cause of your error.
-Rob A
> -Original Message-
>
Hmmm...
The problem is something related to the verson of Java used, Java 1.4 vs
Java 5.
When I use Java 1.4, MailLogger & the task both work OK. I can
have an email sent by the MailLogger that the build was successful, and
have a mail sent via the task, all within the same single
executio
I'm attemptiong to execute ANT's scp task on a box that contains IBM
WebSphere's 1.3.1 java. I get the following exception:
java.lang.NoSuchMethodError: java.net.InetAddress: method
getByAddress([B)Ljava/net/InetAddress; not found
I'm assuming that I can't run the version of scp provided by t
Thanks for the reply again. I have looked at both genericantfile and
antfile and they are not doing what I need.
I am not using inheritall at all, but I have tried setting it to false
(as it defaults to true).
Adam
Anderson, Rob (Global Trade) wrote:
Are you setting inheritall to true?
-R
Are you setting inheritall to true?
-Rob A
> -Original Message-
> From: Anderson, Rob (Global Trade)
> Sent: Friday, May 19, 2006 12:17 PM
> To: Anderson, Rob (Global Trade); 'Ant Users List'
> Subject: RE: Ant task
>
> Actually, afer looking at the example, I'm not so sure this
> is w
Actually, afer looking at the example, I'm not so sure this is what you
are looking for.
-Rob A
> -Original Message-
> From: Anderson, Rob (Global Trade)
> Sent: Friday, May 19, 2006 12:14 PM
> To: 'Ant Users List'
> Subject: RE: Ant task
>
> Check out the genericantfile attribute of t
Check out the genericantfile attribute of the subant task. I have not
used it personally, but I think the description sounds like it may fit
your needs.
-Rob A
> -Original Message-
> From: Adam Stroud [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 19, 2006 11:47 AM
> To: Ant Users List
>
Thanks Rob:
I actaully just found the subant task in the manual. The only problem I
am having with it is that the manual says that the basedir property is
not supposed to get set when using the "antfile" attibute of subant. In
my builds, it seems that basedir is being set to the dir that the
Strange indeed. I just ran a simple test with the mail task and
properties below, of course changing the props for my environment. It
seems to work, and I don't see anything wrong with your usage. The error
"message refused" may be coming from the mail server. Can you access the
logs for the mail s
If I do the task prior to the task, the
properties echoed are the same property values in the property file.
I'm using the Ant command line argument "-propertyfile
build-config.properties" to set the properties.
-Original Message-
From: Scot P. Floess [mailto:[EMAIL PROTECTED]
Sent: Th
No it can't run the task if I run the build from ant on the
command line without the MailLogger.
Yes it can run the task if I run the build using Ant within
Eclipse without the MailLogger.
I have tried replacing all my ant/lib jars with what Eclipse uses for
its ant/lib jars to get the task
Excellent...I've never used subant...and quite honestly I overlooked it :)
Rob - you are always full of great answers :)
Anderson, Rob (Global Trade) wrote:
The task has a failonerror attribute that, when set to false,
should continue when there is an error in the subproject. See the manual
pa
You cannot use FTP to transfer files to or from an SSH server.
Two options:
1) Make sure you have an FTP server running and point the ftp task to
port 23, the default port for FTP.
2) Use the scp task.
-Rob A
> -Original Message-
> From: Venkatesh Vijayakumar04 [mailto:[EMAIL PROTECTED]
The task has a failonerror attribute that, when set to false,
should continue when there is an error in the subproject. See the manual
page for more details.
http://ant.apache.org/manual/CoreTasks/subant.html
-Rob A
> -Original Message-
> From: Adam Stroud [mailto:[EMAIL PROTECTED]
> Se
Ah, a common misconception. Ant does not pass this to psql, but rather
uses jdbc to connect to the database using the java drivers for
postgresql. While this may seem like the same thing, it really isnt.
Most (if not all) of the proprietary functionality of tools like psql
and sqlplus are lost.
-R
Adam:
Not sure if this is the answer you are looking for or not...but "off the
top of my head" one thing you -could- use is ant contribs
task. You can wrap your calls in try/catches...
Not sure about stock Ant how one would accomplish that...
Scot
Adam Stroud wrote:
All:
I have a quick
All:
I have a quick question on the ant task. I am currently using the ant
task to initiate the builds of subprojects. Is there a way to prevent
the master build from failing when one of the subprojects fail?
Thanks
A
-
To
Bill:
Boy do I feel silly now :) I never considered using XSLT ;)
Excellent...very much appreciated!
I'll try it out (I hope this weekend).
I really appreciate you quick response!
Scot
bill/wilandra wrote:
Hi Scot, I use the attached XSL file to generate documentation for my Ant
files. T
Hi Scot, I use the attached XSL file to generate documentation for my Ant
files. This is an extension of the XSL stylesheet found at
http://www-106.ibm.com/developerworks/xml/library/x-antxsl/examples/example2
/ant2html.xsl modified to pick up some new stuff and to always display the
documentation
I have what may be either a stupid questions or a silly ones...but I
can't find an answer (perhaps my google search is using the wrong key
words)...
As part of one of my open source projects I am working on some (I hope)
reusable Ant scripts. I have some macro definitions, etc. I was
wonder
I was able to get it to work by invoking a macrodef instead of a target.
Thank you, I missed that there was an zipfileset.
The attribute you where looking for is prefix attribute and dose exactly
the things I want.
Lars
-Original Message-
From: Dominique Devienne [mailto:[EMAIL PROTECTED]
Sent: den 19 maj 2006 15:49
To: Ant Users List
Subject: Re: Fileset
>
Dear Oliver,
Your solution works!, so my regular expression:
eats the multi-lines.
I don't understand well why you need to put two times the )
as you have
commented. In my cas it works as above.
Thank a lot,
David
Oliver Ashoff <[EMAIL PROTECTE
The files as said get's at the root of each of the filesets.
I instead would want the each of the included directories be an own
directory and under a other name. Something like this:
Look into , and its attribute (don't recall the name) to
specify the path into which to place the selected file
http://www.iana.org/assignments/port-numbers
Jeffrey E. (Jeff) Care
[EMAIL PROTECTED]
IBM WebSphere Application
Server Development
WAS Pyxis Lead
Release Engineer
"Venkatesh Vijayakum
Well, almost like that,
But if possible I would like to have the names of changed.
So, if your file set ended up being
/alpha/beta/foo.txt
/theta/epsilon/bar.txt
/here/there
/over/yonder
You'd want the zip file to contain
foo.txt
bar.txt
/newname
/over/yonder
-Original Message-
From: Sc
Hi
I am getting the following error when I use ftp task in my ant script.
[echo]
[echo] Compling all class files
[echo]
makedirOnline:
[echo]
[echo] Creating directories for Online
[echo]
compi
So, are u saying what you want is if a file is found in your file set,
disregard the directory as part of the zip - and if its a directory, zip
everything in the directory?
So, if your file set ended up being
/alpha/beta/foo.txt
/theta/epsilon/bar.txt
/here/there
/over/yonder
You'd want the zi
Hello I want to create an Zip file with the zip and fileset tasks. The
problem I'm having is that it puts all files in the root directory.
f
What if you escape the $ signs?
Gareth Reakes wrote:
Hi Scot,
thanks for your response. I have tried both in the file and in the
sql tag. I get an error in both cases.
Cheers,
Gareth
Scot P. Floess wrote:
Gareth:
My apologies, I meant escaping when it exists in another file. I
neve
I would keep them separate and bundle as an EAR-file ...
Jan
>-Ursprüngliche Nachricht-
>Von: Sergi Marin/Upcnet [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 19. Mai 2006 12:11
>An: user@ant.apache.org
>Betreff: How to merge two different webapps with Ant
>
>Hello
>
>I'm looking for a
Hello
I'm looking for a way to merge two different webapps.
Both apps are implemented with servlets JSP etc, with the Tomcat directory
structure (WEF-INF...). We want to merge both projects to one. We need
some automated way to do this, because both projects remain separated and
will evolve in
33 matches
Mail list logo