ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gian Franco Casula" <gian.franco.cas...@topficie.nl>
Subject Re: AW: AW: Batch script with arguments
Date Mon, 05 Jul 2004 11:36:04 GMT
Hi,

My environment used to be (b) and I changed to
(a). What happens is the following. Different
developers are extracting data from cvs on their
local machine, this does not happen simultaneously,
and eventually perform some changes on it.
Since not everbody has Ant on his/her machine
I wanted to have a central point to call Ant from, but
still providing a means of localizing the sources of the
user that calls it. Ant then compiles and makes a
jar which is then placed in the proper deployment
directory.

Bare in mind that the use of ant and cvs in our
project is in the rookie stage, in the near future I
plan to integrate them properly with the ant tasks :-)

Cheers,

Gian Franco


----- Original Message ----- 
From: "Ivan Ivanov" <rambiusparkisanius@yahoo.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Monday, July 05, 2004 12:58 PM
Subject: Re: AW: AW: Batch script with arguments


> --- Jan.Materne@rzf.fin-nrw.de wrote: 
> > What is your environment?
> > a) a server and all users are working there (Ant
> > runs on the server)
> > b) a server and several clients which have a network
> > drive (mount) to the
> > server
> >    (Ant runs locally)
> > 
> > I think all should be fine with
> > ${user.home}/project.properties 
> 
> Jan, 
> My environment is OK :)) Let the original requestor
> comments whether this is useful for him.
> 
> > Yes. 
> > 
> > The scenario would be:
> > <project name"test">
> >     <property
> > file="${user.home}/${ant.project.name}.properties"/>
> >     <input message="Enter source directory"
> > addproperty="project.src.dir"/>
> > </project>
> > 
> > If there is a "test.properties" in the user home
> > directory containing that 
> > "project.src.dir" key, the input is skipped.
> > Otherwise the user is asked.
> > 
> 
> Yes, I checked that. The prompt appears if and only if
> project.src.dir is not set. But I also observed
> something else: when the prompt of <input> appeared I
> typed ${basedir}/src and the result was that
> ${basedir} was not expanded in the value of the
> property. Here is the the input/output:
> 
> prompt:
>     [input] Enter sources dir
> ${basedir}/src <-- This was entered by me
>      [echo] project.src.dir is ${basedir}/src
> 
> So do you think that it may be useful if, say,
> "expandProperty" attribute is added to the <input>,
> controlling whether the properties in the input be
> expanded?
> 
> > 
> > Jan
> > 
> > 
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message