Murali,
Use token filter from ant to replace the propery values at run time.
Praveen
On Fri, 7 Jan 2005 10:34:37 -0500, Velagapudi, Murali
<[EMAIL PROTECTED]> wrote:
> Hi ,
>
> I am using same ant script to deploy application on various systems in this
>
[EMAIL PROTECTED] schrieb am 11.01.2005 17:42:40:
> The behavior exhibited is not unique to Ant--it's how shells work. If
you
> open a shell (start->run->cmd) you'll get a shell. If you set env
> variables in that shell, they don't persist to another shell that you
> might open.
> So the ta
http://ant.apache.org/manual/develop.html
http://ant.apache.org/manual/tutorial-writing-tasks.html
http://cvs.apache.org/viewcvs.cgi/*checkout*/ant/docs/manual/tutorial-tasks-
filesets-properties.html?content-type=text%2Fplain#filesets
http://marc.theaimsgroup.com/?l=ant-user&m=106118544128717&w
The behavior exhibited is not unique to Ant--it's how shells work. If you
open a shell (start->run->cmd) you'll get a shell. If you set env
variables in that shell, they don't persist to another shell that you
might open.
So the task in Ant is executing in a shell. Once the task
completes,
Thanks for your answers.
Is there any particular reason why this is not possible?
--
Gilbert Jeiziner
"Erskine, Chris" <[EMAIL PROTECTED]> schrieb am 11.01.2005 17:15:49:
> Or try calling a batch file which first calls your .Net setup and then
calls
> Visual Studio.
>
> Chris Erskine
>
> EDS
I was having the same issues when I was developing custom tasks and what
helped me was to go to the source of built in ant tasks and look at the
code. If you don't have it already downlaod a source distro and spend
an hour or so looking at the built in tasks.
That should do the trick
Doug
Karl
[EMAIL PROTECTED] wrote:
Usually tasks set the property themselves via
getProject().setNewProperty("propname", "propvalue");
If you´re result is in a file, you can load that via
And you can hook another property helper ... (somewhere in the
proposal section should be an example).
Jan
Perfect! T
Or try calling a batch file which first calls your .Net setup and then calls
Visual Studio.
Chris Erskine
EDS Consulting Services
F5-EDS-001
2424 Garden of the Gods Rd
Colorado Springs, CO 80919
Phone: 719-265-5962
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTEC
So, since you are on windows, change the parameters to be something like
-DDevBuild1=%1. The $ is the Unix substitution while with MS, it is the %
sign.
Chris Erskine
EDS Consulting Services
F5-EDS-001
2424 Garden of the Gods Rd
Colorado Springs, CO 80919
Phone: 719-265-5962
> -Origina
On Tue, 11 Jan 2005, Radha Sangal <[EMAIL PROTECTED]> wrote:
> Changed command line : cmd /c ant -buildfile
> D:\v04_E\Build_Scripts\CvsDiffReports\automated_cvsdiffs.xml
> manualDiff -DDevBuild1=$1 -DDevBuild2=$2 -l D:\test2.txt
>
>
>
those two lines are no-ops. If DevBuild? has been defined
On Tue, 11 Jan 2005, Keith Hatton <[EMAIL PROTECTED]> wrote:
> Shouldn't the -D... settings go immediately after "ant" and before
> "-buildfile ..."?
Doesn't matter to Ant.
Stefan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Got the trick .. donno how $1 was in mind .. %1 did all the work ..
Thanks everyone !
-Original Message-
From: Keith Hatton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 11:03 AM
To: Ant Users List
Subject: RE: passing parameters to ant
Shouldn't the -D... settings go immed
Hello,
--- Radha Sangal <[EMAIL PROTECTED]> wrote:
> Tried this ..
>
>
>
Well, this is not the exact syntax. I would try with
This is the correct way of referencing properties. In
your case, however, the above two lines are redundant
if you pass the arguments correctly. Ant accepts
properti
Back again: you cant use $1 on windows.
> Shouldn't the -D... settings go immediately after "ant" and before
"-buildfile ..."?
order is irrelevant (as long as the parameter follows its option flag :)
Jan
> -Ursprüngliche Nachricht-
> Von: Radha Sangal [mailto:[EMAIL PROTECTED]
> Gesen
creates a new process and s are passed to that process. When
that
has finished all environment settings are lost. There is no way to set env
variables from ant ... with usual things.
Under windows is an executable called "setx" which you could try.
Jan
> -Ursprüngliche Nachricht-
> Von
Shouldn't the -D... settings go immediately after "ant" and before "-buildfile
..."?
Keith
-Original Message-
From: Radha Sangal [mailto:[EMAIL PROTECTED]
Sent: 11 January 2005 16:01
To: Ant Users List
Subject: RE: passing parameters to ant
Changed command line :
cmd /c ant -buildfile
Changed command line :
cmd /c ant -buildfile
D:\v04_E\Build_Scripts\CvsDiffReports\automated_cvsdiffs.xml manualDiff
-DDevBuild1=$1 -DDevBuild2=$2 -l D:\test2.txt
Output :
manualDiff:
[echo] Starting CVS Difference Report ($1 to $2)
-Original Message-
Fro
Hi,
I'm using ant to build visual studio solutions (simple command line with
the task).
We have 2 versions of visual studio .NET (unfortunately, we have to
maintain those 2 version).
So, before running ant to build the solution, we have to set up specific
environment variables for
the versio
Please read the disclaimer at the bottom of this e-mail.
Thanks, it worked by changing the method name to addConfiguredFileset(). If
this is the case then why would you have addFilese
[EMAIL PROTECTED] wrote:
What does "-debug" say?
Jan
Also, what does filesets.add(fs) do.
If it checks the fileset, it would be incorrect as
useing the add(Fileset fs) form passes in
the fs *before* it is configurered. One would need
to do:
public void addConfiguredFileset(Fileset fs)
instead.
P
What does "-debug" say?
Jan
> -Ursprüngliche Nachricht-
> Von: Rajiv Jaitly [mailto:[EMAIL PROTECTED]
> Gesendet am: Dienstag, 11. Januar 2005 16:42
> An: user@ant.apache.org
> Betreff: custom task
>
>
> Please read the disclaimer
1) IIRC there _must not_ be a space betwixt "-D" and the property: i.e.
your command line should look like this:
cmd /c ant -buildfile
D:\v04_E\Build_Scripts\CvsDiffReports\automated_cvsdiffs.xml
manualDiff
-DDevBuild1=$1 -DDevBuild2=$2 > D:\test2.txt
2) You might consider using the
Please read the disclaimer at the bottom of this e-mail.
Hi,
I have written an custom task that can take FileSet. The task looks like
public void addFileset(FileSet fs) {
Tried this ..
Got this ..
manualDiff:
[echo] Starting CVS Difference Report (($DevBuild1) to
($(DevBuild2
-Original Message-
From: Chaganthi, Madhusudan R. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 10:33 AM
To: Radha Sangal
Subject: RE: passing parame
Use
curly braces
instead of
Jan
> -Ursprüngliche Nachricht-
> Von: Radha Sangal [mailto:[EMAIL PROTECTED]
> Gesendet am: Dienstag, 11. Januar 2005 16:36
> An: Ant Users List
> Betreff: RE: passing parameters to ant
>
> Am working on windows so $1 works fine ..
> thnx
>
>
Am working on windows so $1 works fine ..
thnx
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 10:34 AM
To: user@ant.apache.org
Subject: AW: passing parameters to ant
I think you have to write %1 instead of $1, thats bash-syntax.
Jan
The use of () instead of {} perhaps.
-Original Message-
From: Radha Sangal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 10:31 AM
To: Ant Users List
Subject: passing parameters to ant
This might be a silly mistake, so I m asking for few more eyes to see
it. Please help!
W
I think you have to write %1 instead of $1, thats bash-syntax.
Jan
> -Ursprüngliche Nachricht-
> Von: Radha Sangal [mailto:[EMAIL PROTECTED]
> Gesendet am: Dienstag, 11. Januar 2005 16:31
> An: Ant Users List
> Betreff: passing parameters to ant
>
> This might be a silly mistake, so I m
This might be a silly mistake, so I m asking for few more eyes to see
it. Please help!
We have an xml-rpc client calling a method on the server which executes
the following bat file.
Command line from "automated_Builds_Diffs.bat"
cmd /c ant -buildfile
D:\v04_E\Build_Scripts\CvsDiffReports\
That did it very nicely -- thanks Keith (and the others who responded) for
the help.
Glen
From: "Keith Hatton" <[EMAIL PROTECTED]>
To: "Ant Users List"
See the manual for the FixCRLF task.
http://ant.apache.org/manual/
Yes, it's an open source project at http://luntbuild.sourceforge.net (if
you search for "luntbuild" at Google, you'll find their home page at the
top of the list...). Version 1.0 was first released in September last
year.
The main benefits I see are the excellent support for Rational
ClearCase, b
Hi, Sten
never heard of LuntBuild before.
Everyone's speaking of CruiseControl and
AntHill, when it comes to Continous Integration.
Is LuntBuild open source ?
I've already googled for any supporting links
like f.e. a wiki or similar but didn't found.
Gilbert
-Original Message-
From:
Luntbuild have a new "build necessary condition" which among other
things can trigger a build based on the result of the execution of an
ant target or any shell script:
ant("/path/to/command.xml", "targetA") == 0
execute("/path/to/command.sh") == 0
If you can do your text parsing in either Ant or
Hi,
-Original Message-
From: Ilja Preuss [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 12:31 PM
To: 'Ant Users List'
Subject: RE: Automated Build System
>I'm not sure wether we are talking about the same thing here. I was
actually thinking about a scheduled build >(say, eve
Rebhan, Gilbert wrote:
> Hi, Ilja
>
> i've searched for examples but didn't found any other, than
> modificationset used for scheduled builds.
I'm not sure wether we are talking about the same thing here. I was actually
thinking about a scheduled build (say, every couple of minutes) and a
modific
Hi, Ilja
i've searched for examples but didn't found any other, than
modificationset used for scheduled builds.
No examples with text file parsing or other stuff.
Any hints ?
Gilbert
-Original Message-
From: Ilja Preuss [mailto:[EMAIL PROTECTED]
Sent: Monday, January 10, 2005 2:21 PM
Hi,
Running ant and cvs commit produces ? for files with status nonCvs file.
Has anyone managed to write an ant script that does a cvs commit, and
prior to that adds nonCvs files(according to a fileset definition
preferably ... ) ??
/Morten
Also, take a good look at Luntbuild (http://luntbuild.sourceforge.net).
Sten Rosendahl
> -Original Message-
> From: Ilja Preuss [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 10, 2005 2:42 PM
> To: 'Ant Users List'
> Subject: RE: CruiseControl, Ant Hill, Build Monkey...
>
> Alan Bro
The convention for tasks that need to set the value of a property (see
the source code for the task itself) is for it to take the
name of a property as one of its attributes (like ) and call setNewProperty(name, value).
So in your example, it'd look like this, instead of the line
you provided
39 matches
Mail list logo