ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Cody <paul.c...@lucidainc.com>
Subject RE: usage of perforce tasks
Date Thu, 11 Oct 2001 22:17:13 GMT
Arulazi, 

Sorry I have little time to think about your questions.  WIthout spending
more that a few seconds looking at your stuff, It looks like your view is
missing the ldots.  Perhaps "//depot/myptoject/..."?  Here are my perforce
tasks (not using label yet).  Hope this helps...

  <property name="p4.port"   value="eng:1666"/>
  <property name="p4.user"   value="cruisectl"/>
  <property name="p4.client" value="cruisectl-eng"/>
  <property name="p4.view"   value="//insight/..."/>
  <property name="p4.base"   value=""/>

  <taskdef name="p4sync" 
    classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Sync" 
  />

  <!--  P4 sync to get the source out of the repository --> 
  <target name="cruise-sync">
    <p4sync view="${p4.view}" force="false"/> 
  </target>

  <!--  P4 version of helloWorld modificationcheck --> 
  <target name="cruise-modcheck" depends="build-init">
    <echo message="Checking for modifications..." /> 
    <taskdef name="modset"
classname="net.sourceforge.cruisecontrol.ModificationSet" /> 
    <modset lastbuild="${lastBuildAttemptTime}"
            quietperiod="30" 
            dateformat="yyyy-MMM-dd HH:mm:ss">
      <p4element port="${p4.port}" user="${p4.user}" client="${p4.client}"
view="${p4.view}" /> 
    </modset>
  </target>

> -----Original Message-----
> From: Arulazi Dhesiaseelan [mailto:aruld@india.hp.com]
> Sent: Thursday, October 11, 2001 1:17 PM
> To: ant-user@jakarta.apache.org
> Cc: Arulazi D
> Subject: usage of perforce tasks
> 
> 
> Hi
> I need to use perforce tasks in ant for doing a checkout.
> Is anybody on the list tried this out.
> I have tried this, but I have some problems.
> How to specify the location in my machine where the files needs to be
> checked out.
> Also, how to specify the module (frm perf server) to be checked out in
> ant.
> Presently I use,
> 
> <target name="perfco" depends="init">
>     <taskdef name="p4sync"
> classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Sync" />
>     <taskdef name="p4label"
> classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Label" />
> 
>     <p4label
>       name="NightlyBuild:${DSTAMP}:${TSTAMP}"
>       desc="Auto Nightly Build"
>       view="//depot/myproject"
>     />
>     <p4sync force="no" />
>   </target>
> In the above target, I have specified 
> view="//depot/myproject". But when
> I use this target, it checks out all the modules under "//depot".
> Why is this? Did I miss something?
> I have set the environment vars thru "p4 set"
> P4PORT=myserv.com:1666(where the perf server i srunning)
> P4CLIENT=nt44139(my nt box, where the perf client is installed)
> P4USER=aruld(user in the perf server)
> Do I need to set any thing else?
> 
> Thanx in advance.
> --
> Thanks &  Regards
> ARUL
> 
> 

Mime
View raw message