[p4] Perforce and Apache
Qazwart
qazwart at gmail.com
Tue Mar 13 20:29:15 PST 2007
Yes, there are Perforce tasks in Ant, and I understand they have
fewer errors in them than the once in Nant. Unfortunately, except for
the Ant manual, there really isn't too much information on how to use
them.
The biggest problem between converting from Visual SourceSafe Ant
tasks to Perforce Ant tasks is that VSS and P4 operate so differently
that it isn't easy to change where you used a VSS task into a
Perforce Ant task.
You can set p4client, p4user, p4port as either Ant properties, or by
setting them as attributes in the various Perforce Ant tasks.
However, you're better off setting P4CONFIG in your environment and
setting a P4CONFIG file that defines these values.
The strange thing is the way changelists are handled. If you're going
to submit changes to your Perforce depot, I highly recommend you run
the "p4change" task. This will set the property "p4.change" which can
then be used in the "p4edit", "p4delete", "p4add", and "p4submit"
tasks. You cannot run the "p4submit" task on the default changelist.
On Mar 13, 2007, at 3:47 PM, Melissa wrote:
> Doesn't Ant have Perforce tasks?? It does, because I know that the
> Perforce
> tasks in Nant were modeled on Ant's Perforce tasks. Ant's should
> work better
> than Nant's because there are a few conceptual errors in Nant's.
> You can't
> return a change list number in a variable like you can in Ant, for
> example.
>
>
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Eramo, Mark
> Sent: Tuesday, March 13, 2007 12:22 PM
> To: perforce-user at perforce.com
> Subject: [p4] Perforce and Apache
>
>
> Hello,
>
> Other then the Ant User guide, has anyone out there found more
> information on how to try and do Apache Ant builds with Perforce.
>
>
>
> I am finding it hard trying to migrate our Vss based build scripts to
> Perforce and I am just trying to locate some more robust
> information then
> what is in the Ant guide.
>
>
>
> Any help or input would be appreciated.
>
>
>
> Regards,
>
>
>
> Mark
>
>
>
>
>
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
More information about the perforce-user
mailing list