ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Blanc <Sebastien.Bl...@alcatel.com>
Subject Re: Design help
Date Tue, 29 Apr 2003 22:38:11 GMT
+ usually paired with InstallShield or any other setup tool to be able to install and then
cleanup the registry
entries at upgrade or uninstall of the product. just note that registries are a major pain,
but may be worth to
analyze.
seb.

Sebastien Blanc wrote:

> by experience on our projects, we use the regedit WIN32 exe to install and persist runtime
environment
> variables.
> seb.
>
> Eric Dunn wrote:
>
> > Hi,
> >
> > If I use an environment variable, it is not a permanent fix right? When the machine
is rebooted the
> > environment setting will go away unless we persitenly put it somewhere, right? I
cannot expect to modify the
> > environment on a customer's machine through my ANT script. I will need to pass these
arguements as command
> > line parameters, thus in the batch file.
> >
> > Thanks again,
> > Eric
> >
> > -----Original Message-----
> > From: Sebastien Blanc [mailto:Sebastien.Blanc@alcatel.com]
> > Sent: Tuesday, April 29, 2003 3:16 PM
> > To: Ant Users List
> > Subject: Re: Design help
> >
> > "     I am trying ot figure out how to do this correctly. I want to edit
> > a .bat file, looking for a specific
> > java call and adding a command line arguement, and something its command
> > line specified classpath."
> >
> > -> u may want to externalize the pb and use for instance an environment variable
in the bat script where u
> > were trying to modify this 'variable', thus reducing the pb to modifying this variable
in the environment.
> >
> > Eric Dunn wrote:
> >
> > > Forgot to mention, I cannot modify the batch file. It is something like a web
server startup file like
> > > WebLogic or JBoss.
> > >
> > > Thanks,
> > > Eric
> > >
> > > -----Original Message-----
> > > From: Tharp, Joshua L, SOLGV [mailto:jltharp@att.com]
> > > Sent: Tuesday, April 29, 2003 3:06 PM
> > > To: Ant Users List
> > > Subject: RE: Design help
> > >
> > > Have you considered having a "source" bat file and just include tokens
> > > in it (i.e. @TOKEN@)? Then you run a replace or copy on the "source" bat
> > > with a filter and those tokens will be replaced with the correct values.
> > > Conversely, if the tokens have already been replaced, then you won't
> > > find any @TOKEN@ strings in your bat file and nothing will happen.
> > >
> > > Josh
> > >
> > > -----Original Message-----
> > > From: Eric Dunn [mailto:edunn@merc-int.com]
> > > Sent: Tuesday, April 29, 2003 3:03 PM
> > > To: 'user@ant.apache.org'
> > > Subject: Design help
> > >
> > > Hi,
> > >      I am trying ot figure out how to do this correctly. I want to edit
> > > a .bat file, looking for a specific
> > > java call and adding a command line arguement, and something its command
> > > line specified classpath.
> > >
> > > So I tried replaceregexp and I it works right, but if my customer runs
> > > it twice it has no way to check if it
> > > already made the change.
> > >
> > > So I installed "Antelope" with its "if\else" tasks but it seems to check
> > > properties. I need a property that
> > > dynamically is set by perhaps some custom task like
> > > "FileContains(filename,searchstring" so that the if\else
> > > task in antelope can use it an decide whether to run my replaceregexpr.
> > >
> > > Is this the right train of thought? Should I just write some monster
> > > custom ant task to just read the file
> > > myself, do java conditional logic, and insert if appropriate? I am
> > > pretty close to doing that.
> > >
> > > Thanks,
> > > Eric
> > >
> > > ---------------------------------------------------------------------
> > > 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
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> > ---------------------------------------------------------------------
> > 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