Jacob, Anil - MWT | 1 May 01:11 2004

RE: Setting property for all targets

Another option would be taking the input as properties and doing an echo
properties to send the properties to a file and then loading the file at
the project level using <property file="input.properties"/>
This way all targets get the property via input.

Anil
-----Original Message-----
From: Matt Benson [mailto:gudnabrsam <at> yahoo.com] 
Sent: Friday, April 30, 2004 2:32 PM
To: Ant Users List
Subject: RE: Setting property for all targets

--- "Jacob, Anil - MWT" <Jacob.Anil <at> menlolog.com>
wrote:
> My question is how can I set ${value} in the 2nd run
> without having a
> depend on the input target and without running it
> like in the 3rd run.
> How can the input target set the value of $value for
> all targets without
> invoking it again and again.
> 
As mentioned before, Project properties only "live" as
long as the JVM and are not designed to survive
multiple invocations of Ant.  The most obvious thing
to do is enter all the targets you wish to run on a
single command-line...

-Matt

(Continue reading)

hanasaki | 2 May 05:48 2004

subant project namespace clash ant 1.6.1 - target name polymorphism

Below is a description of what I wish to accomplish and what is 
happening with the current approach.  I think what is needed is not <ant 
or <subant but a way to use <ant on multiple build files selected in the 
same way that <subant runs multiple files with a fileset.

The reason for using the same projectname is to achieve some 
polymorphism of ant targets.

Any suggestions are appreciated.  Thank you

thanks
=============

build_1.xml includes build_x.xml
	build_1.xml project name="build_1"
	build_x.xml project name="build_special"

project target build_1.all calls subant on some directories

build_sub1.xml includes build_x.xml
	build_sub1.xml project name="build_sub1"

problem
================
when calling target build_1.all, ant calls target
build_sub1.all and then reports build_special was
first defined in build_1 and then again in
build_sub1

The reason for using the same projectname is to achieve some 
(Continue reading)

Johan Vromans CPWR | 3 May 09:23 2004
Picon

Re: Assign new value to an existing property

Matt Benson wrote:
>  There have
> also been talks about performing automatic imports but
> I don't currently recall the status of that.

Works like a charm, see 
http://marc.theaimsgroup.com/?l=ant-user&m=108246877104481&w=2

-- Johan
Steve Cohen | 3 May 13:37 2004

Fwd: [ANNOUNCEMENT][NET] jakarta-commons/net 1.2 Released

Those Ant users (of version 1.6.0 or above) who use or who would like to use 
the <ftp> task against non-unix ftp servers but have found it to fail there 
should  replace the existing version of commons-net.jar on their Ant 
classpath with this one.  It can autodetect the type of server it is 
accessing and react accordingly.

The only other requirement is that a version of jakarta-oro.jar > 2.0.1 also 
be on the classpath, but this has been the case since the release of ant 
1.6.0 for using the ftp task.
Picon
From: Steve Cohen <scohen <at> apache.org>
Subject: [ANNOUNCEMENT][NET] jakarta-commons/net 1.2 Released
Date: 2004-05-01 19:04:40 GMT

The Jakarta Commons team is pleased to announce the release of version
1.2.0 of the Jakarta Commons/Net component.

Commons/Net is an Internet protocol suite Java library which supports
Finger, Whois, TFTP, Telnet, POP3, FTP, NNTP, SMTP, and some miscellaneous
protocols like Time and Echo as well as BSD R command support.

This release adds, for the first time, autodetection of FTP server type
when retrieving an FTP listing  so that non-unix FTP servers can
automatically provide usable listings with valid dates, etc. Server types
supported in this are Windows NT, OS2, VMS, OS400.  Formerly only unix was
(Continue reading)

David Kavanagh | 3 May 13:55 2004
Picon

<hotswap> target

I've developed an ant target that can hotswap classes on a running VM.
I talked about this on the dev list a while back and this
implementation is a result of those conversations. It integrates
nicely with other ant components. Visit this URL to read more and
download the jar(s).
http://home.rochester.rr.com/dak/hotswap.html

There is a hotswap.jar and a jar for a date selector patch. If you run
ant 1.6.1, use both jars. If you have a newer nightly build (or off
CVS directly), you should al ready have the date selector patch.

This target will only work on jdk 1.4 or higher. For that reason, it
can't be included in ant itself (since ant 1.6.x needs to run on 1.2.2
or higher).
I've used this task to swap into a large Swing client app and into a
weblogic app (using the Sun JVM).

Give it a try!

Thanks,
David
David R Robison | 3 May 14:56 2004

rmic task with -iiop and -poa

From the manual, the rmic task supports the -iiop="true" option. New to Java 1.4
is the -poa option to rmic. Is there a way to specify this on the rmic task?

Thanks,
David
--

-- 

David R Robison
Open Roads Consulting, Inc.
708 S. Battlefield Blvd., Chesapeake, VA 23322
phone: (757) 546-3401
e-mail: drrobison <at> openroadsconsulting.com
web: http://openroadsconsulting.com
Johan Vromans CPWR | 3 May 15:00 2004
Picon

Import clobbers ant.file?

Given an build.xml:

  <project name="main">
   <echo message="ant.file = ${ant.file}"/>
   <echo message="ant.file.main = ${ant.file.main}"/>
   <import file="foo.xml"/>
   <echo message="ant.file = ${ant.file}"/>
   <echo message="ant.file.main = ${ant.file.main}"/>
  </project>

and foo.xml:

  <project>
   <echo message="[ant.file = ${ant.file}]"/>
   <echo message="[ant.file.main = ${ant.file.main}]"/>
  </project>

This prints:

      [echo] ant.file = /home/johanv/tmp/build.xml
      [echo] ant.file.main = /home/johanv/tmp/build.xml
      [echo] [ant.file = /home/johanv/tmp/build.xml]
      [echo] [ant.file.main = /home/johanv/tmp/foo.xml]
      [echo] ant.file = /home/johanv/tmp/build.xml
      [echo] ant.file.main = /home/johanv/tmp/foo.xml

As you can see the included file changes the value of property ant.file.main 
(line 4), clobbering the value for the outer file (line 6).

This is not hard to explain, but is this intended behaviour?
(Continue reading)

alu, artifex | 3 May 15:47 2004
Picon

Re: rmic task with -iiop and -poa

you should be able to specify additional arguments with the nested 
<compilerarg> element:

example:
<rmic compiler="..." classname="..." base="...">
    <compilerarg line="-dispatchPolicy BlahBlah"/>
    <compilerarg ...>
</rmic>

alu

David R Robison wrote:

>>From the manual, the rmic task supports the -iiop="true" option. New to Java 1.4
>is the -poa option to rmic. Is there a way to specify this on the rmic task?
>
>Thanks,
>David
>  
>
Sylwester Lesniak | 3 May 16:41 2004
Picon

replaceregexp- help

Hi All, 

I am using Ant (1.5.3), jdk 1.4.1_02,
and have a file like:

  <mbean code="package.Task4"
         name="service=Naming">
    <attribute name="Port">9999</attribute>
  </mbean>

and want to change the port number to XXXX using
replaceregexp, so I can get back:

  <mbean code="package.Task4"
         name="service=Naming">
    <attribute name="Port">XXXX</attribute>
  </mbean>

I need a 'match' attribute to be started with: 
<mbean code="package.Task4"...

Can any body give me some suggestions,

thank you
Sylwester

	
		
__________________________________
Do you Yahoo!?
(Continue reading)

Jan.Materne | 3 May 16:59 2004
Picon

RE: replaceregexp- help

Maybe it would better to change to something like  <at> port <at> . Then you´ll get a
template
which can be used for <filterchains> to replace the  <at> port <at>  with the value of
an Ant
property (e.g. port=9999) while doing file operations (copy, zip, ...).

Without trying something I would start with an regexp like
    match     (&lt;mbean code=.package\.Task4.*Port.&gt;)(.*)(&lt;)
    replace   \1${port}\3

Jan

> -----Original Message-----
> From: Sylwester Lesniak [mailto:tycoonek <at> yahoo.com]
> Sent: Monday, May 03, 2004 4:42 PM
> To: user <at> ant.apache.org
> Subject: replaceregexp- help
> 
> 
> Hi All, 
>  
> I am using Ant (1.5.3), jdk 1.4.1_02,
> and have a file like:
> 
>   <mbean code="package.Task4"
>          name="service=Naming">
>     <attribute name="Port">9999</attribute>
>   </mbean>
> 
> and want to change the port number to XXXX using
(Continue reading)


Gmane