You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mahen Perera <ma...@gmail.com> on 2005/01/05 11:04:24 UTC
submitting a file to Perforce using Maven
Hi Everybody,
I am in the process of writing a maven automated build script file.
The SCM used is Perforce.
I have succcessfully writen and tested the p4sync task and got the
latest code in to my local machine.
However, i am not sure as to how to do a submit.
I have used the following script..
<p4submit port="172.20.6.53:1666" client="someClient" user="someUser"
change="${p4.change}" />
However, the file is not getting submitted :( ,,, the icon in perforce
client does not change :(
I am not sure as to what this "change" attribute means....
Can someone please help me.
Appreciate if someone can tell me where i can find good documentation
abt Maven - Perforce - (writing build scripts which uses perforce
tasks)
I just want to do a "Open for edit" and then "Submit"
Please someone send me the steps i have to follow.
Thanx in advance
Mahen
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Fwd: submitting a file to Perforce using Maven
Posted by Mahen Perera <ma...@gmail.com>.
Thanx. it was bug in a earlier Ant version. The P4Change process
hanged !!!. Anyway using Ant 1.6 worked . Thanks everybody for the
help
Mahen
On Thu, 6 Jan 2005 10:04:27 +0100 (MET), Antoine Levy-Lambert
<an...@gmx.de> wrote:
> Hello,
> 1) there are bugs in the ant perforce tasks in ant 1.5.4, so check
> which version of ant you are using (1.6.2 should be fine, or a 1.4.x).
>
> 2) before you do a p4submit, you need to :
>
> create a perforce change list using <p4change description="this is my
> perforce change"/>
>
> then for instance
> <p4edit
> view="//depot/projects/projectfoo/main/src/Blah.java..."
> change="${p4.change}"/>
>
> then
> <p4submit change="${p4.change}"/>
>
> the p4.change property gets set by the p4change task.
>
> Cheers,
>
> Antoine
>
> > Hi Everybody ,,
> >
> > Can someone please help with this problem. See the mail below.
> >
> > I cannot do a "submit" using the ant tasks provided for perforce. i.e
> > using p4submit :(
> >
> > Can some please help.
> >
> > Thanx in advance
> >
> > Mahen
> >
> >
> > ---------- Forwarded message ----------
> > From: Mahen Perera <ma...@gmail.com>
> > Date: Wed, 5 Jan 2005 16:04:24 +0600
> > Subject: submitting a file to Perforce using Maven
> > To: users@maven.apache.org
> >
> >
> > Hi Everybody,
> >
> > I am in the process of writing a maven automated build script file.
> > The SCM used is Perforce.
> >
> > I have succcessfully writen and tested the p4sync task and got the
> > latest code in to my local machine.
> >
> > However, i am not sure as to how to do a submit.
> >
> > I have used the following script..
> >
> > <p4submit port="172.20.6.53:1666" client="someClient" user="someUser"
> > change="${p4.change}" />
> >
> > However, the file is not getting submitted :( ,,, the icon in perforce
> > client does not change :(
> >
> > I am not sure as to what this "change" attribute means....
> >
> > Can someone please help me.
> >
> > Appreciate if someone can tell me where i can find good documentation
> > abt Maven - Perforce - (writing build scripts which uses perforce
> > tasks)
> >
> > I just want to do a "Open for edit" and then "Submit"
> >
> > Please someone send me the steps i have to follow.
> >
> > Thanx in advance
> >
> > Mahen
> >
> > ---------------------------------------------------------------------
> > 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
Re: Fwd: submitting a file to Perforce using Maven
Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello,
1) there are bugs in the ant perforce tasks in ant 1.5.4, so check
which version of ant you are using (1.6.2 should be fine, or a 1.4.x).
2) before you do a p4submit, you need to :
create a perforce change list using <p4change description="this is my
perforce change"/>
then for instance
<p4edit
view="//depot/projects/projectfoo/main/src/Blah.java..."
change="${p4.change}"/>
then
<p4submit change="${p4.change}"/>
the p4.change property gets set by the p4change task.
Cheers,
Antoine
> Hi Everybody ,,
>
> Can someone please help with this problem. See the mail below.
>
> I cannot do a "submit" using the ant tasks provided for perforce. i.e
> using p4submit :(
>
> Can some please help.
>
> Thanx in advance
>
> Mahen
>
>
> ---------- Forwarded message ----------
> From: Mahen Perera <ma...@gmail.com>
> Date: Wed, 5 Jan 2005 16:04:24 +0600
> Subject: submitting a file to Perforce using Maven
> To: users@maven.apache.org
>
>
> Hi Everybody,
>
> I am in the process of writing a maven automated build script file.
> The SCM used is Perforce.
>
> I have succcessfully writen and tested the p4sync task and got the
> latest code in to my local machine.
>
> However, i am not sure as to how to do a submit.
>
> I have used the following script..
>
> <p4submit port="172.20.6.53:1666" client="someClient" user="someUser"
> change="${p4.change}" />
>
> However, the file is not getting submitted :( ,,, the icon in perforce
> client does not change :(
>
> I am not sure as to what this "change" attribute means....
>
> Can someone please help me.
>
> Appreciate if someone can tell me where i can find good documentation
> abt Maven - Perforce - (writing build scripts which uses perforce
> tasks)
>
> I just want to do a "Open for edit" and then "Submit"
>
> Please someone send me the steps i have to follow.
>
> Thanx in advance
>
> Mahen
>
> ---------------------------------------------------------------------
> 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
Fwd: submitting a file to Perforce using Maven
Posted by Mahen Perera <ma...@gmail.com>.
Hi Everybody ,,
Can someone please help with this problem. See the mail below.
I cannot do a "submit" using the ant tasks provided for perforce. i.e
using p4submit :(
Can some please help.
Thanx in advance
Mahen
---------- Forwarded message ----------
From: Mahen Perera <ma...@gmail.com>
Date: Wed, 5 Jan 2005 16:04:24 +0600
Subject: submitting a file to Perforce using Maven
To: users@maven.apache.org
Hi Everybody,
I am in the process of writing a maven automated build script file.
The SCM used is Perforce.
I have succcessfully writen and tested the p4sync task and got the
latest code in to my local machine.
However, i am not sure as to how to do a submit.
I have used the following script..
<p4submit port="172.20.6.53:1666" client="someClient" user="someUser"
change="${p4.change}" />
However, the file is not getting submitted :( ,,, the icon in perforce
client does not change :(
I am not sure as to what this "change" attribute means....
Can someone please help me.
Appreciate if someone can tell me where i can find good documentation
abt Maven - Perforce - (writing build scripts which uses perforce
tasks)
I just want to do a "Open for edit" and then "Submit"
Please someone send me the steps i have to follow.
Thanx in advance
Mahen
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org