I have added support for some more features. Attached is the updated jar file
and sample build.xml. You can now use several attributes to define the fileset.
These two attributes take a String value:
brytpe
user
These attributes take a boolean value:
cview
me
directory
all
avobs
areplicas
All the attributes above correspond to the options of lsco in the clearcase
documentation.
I have also refactored the class.
<typedef name="lscoselector"
classname="org.apache.tools.ant.taskdefs.optional.clearcase.CleartoolLscoSelector"/>
Here is an example of how to select checkouts for a given user:
<fileset dir=".">
<lscoselector user="someuser"/>
</fileset>
I will be creating some real Ant documentation for this soon.
-Rob Anderson
> -----Original Message-----
> From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 17, 2004 2:27 PM
> To: Ant Users List
> Subject: RE: Ant fileset from list of checked out files
> (cleartool lsco)
>
>
> My comments below...
>
> > Rob,
> >
> > Thanks - i saved the jar to [~]/.ant/lib and tried your
> > script and it worked right off the bat:
> >
>
> Great!!
>
> > Y:\srcSDC\formZ>cleartool lsco -short -me -r
> > .\src\gui\fusebox\include\udf_basicvalidation.cfm
> > .\src\gui\fusebox\main\controller\3_validation\validationfiles
> > \validation_basic.cfm
> >
> > Y:\srcSDC\formZ>ant
> > Buildfile: build.xml
> >
> > setupfileset:
> >
> > build:
> >
> > processeach:
> > [echo]
> > Y:\srcSDC\formZ\src\gui\fusebox\include\udf_basicvalidation.cfm
> >
> > processeach:
> > [echo]
> > Y:\srcSDC\formZ\src\gui\fusebox\main\controller\3_validation\v
> > alidationfiles\validation_basic.cfm
> >
> > BUILD SUCCESSFUL
> > Total time: 14 seconds
> > Y:\srcSDC\formZ>
> >
> >
> > I notice that you only find "my" checkouts - in the case
> > above there is a file checked out by another user which i can see by
> > calling lsco w/out the "-me" switch. Any plans to implement
> > the "-user" switch or to mimic the "find all users by default"
> > behaviour?
>
> Yes. It should be really easy to add these features and I
> plan to do it very soon.
>
> > Did you write this to help you discard unmodified
> > checkouts (since you can't uncheckout someone else's
> checkouts unless
> > you have admin privs)?
>
> I wrote this for the purpose of creating a fileset of
> checkout files to deploy to a development environment for
> testing. Probably tar or zip the fileset, then copy to remote
> server and untar or unzip.
>
> >
> > Regs,
> > /t
> >
> > >-----Original Message-----
> > >From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED]
> > >Sent: Friday, December 17, 2004 6:56 PM
> > >To: Ant Users List
> > >Subject: RE: Ant fileset from list of checked out files
> > >(cleartool lsco)
> > >
> > >I have mailed the jar and a sample build.xml file to you
> > >directly. The list will not accept attachements. I need to add
> > >some essential enhancements and probably refactor this thing
> > >before trying to get it committed. I based the output handling
> > >part of this on the perforce tasks output handling. Now that I
> > >have gone through the exercise of creating the output handler,
> > >I see why they did what they did with the perforce tasks. So I
> > >really need to abstract some of the output stream handler
> > >classes that made for this so that other tasks can be easily
> > >implemented to do other clearcase stuff.
> > >
> > >-Rob Anderson
> > >
> > >> -----Original Message-----
> > >> From: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED]
> > >> Sent: Friday, December 17, 2004 1:21 AM
> > >> To: Ant Users List
> > >> Subject: RE: Ant fileset from list of checked out files
> > >> (cleartool lsco)
> > >>
> > >>
> > >> Hello Rob,
> > >>
> > >> We use clearcase here. I'd love to give it a spin if you'd
> > send it to
> > >> me.
> > >>
> > >> Regs,
> > >> /t
> > >>
> > >> >-----Original Message-----
> > >> >From: Anderson, Rob (Global Trade)
> [mailto:[EMAIL PROTECTED]
> > >> >Sent: Friday, December 17, 2004 1:13 AM
> > >> >To: [EMAIL PROTECTED]
> > >> >Cc: Ant Users List; [EMAIL PROTECTED]
> > >> >Subject: RE: Ant fileset from list of checked out files
> > >> >(cleartool lsco)
> > >> >
> > >> >I have implemented this fileset selector. It seems to work.
> > >> >Can we add this to Ant? Before I open an enhancement request,
> > >> >I'd like to get some feedback.
> > >> >
> > >> >Thanks,
> > >> >
> > >> >-Rob Anderson
> > >> >
> > >> >> -----Original Message-----
> > >> >> From: Anderson, Rob (Global Trade)
> > [mailto:[EMAIL PROTECTED]
> > >> >> Sent: Monday, December 13, 2004 4:34 PM
> > >> >> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > >> >> Subject: Ant fileset from list of checked out files
> > >> (cleartool lsco)
> > >> >>
> > >> >>
> > >> >> Ant and ClearCase users, I have a need to create a fileset in
> > >> >> Ant from the output of cleartool lsco. Does anyone have a
> > >> >> custom selector that would create such a fileset in Ant, that
> > >> >> you would be willing to share? I am willing to write one to
> > >> >> fill my need, but I thought it might be worth asking about
> > >> >> first, to avoid reinventing something that has already been
> > >> >> done. Also, is there any interest in a selector that would
> > >> >> facilitate creating a fileset in Ant from cleartool lsco
> > >> >> output? Let me know if you could use this?
> > >> >>
> > >> >>
> > _________________________________________________________________
> > >> >> Robert Anderson Sr. System Engineer Nike - Global Trade IT
> > >> >> (503) 532-6803 d
> > >> >>
> > >> >>
> > >> >>
> > >>
> >
> ---------------------------------------------------------------------
> > >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> > >> >>
> > >> >>
> > >> >>
> > >> >
> > >> >
> > >>
> > >>------------------------------------------------------------
> > ---------
> > >> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >> >For additional commands, e-mail: [EMAIL PROTECTED]
> > >> >
> > >> >
> > >>
> > >>
> >
> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >> For additional commands, e-mail: [EMAIL PROTECTED]
> > >>
> > >>
> > >>
> > >
> > >
> >
> >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
<project name="lsco test" basedir="." default="build">
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<taskdef name="lsco" classname="org.apache.tools.ant.taskdefs.optional.clearcase.CCLsCheckout"/>
<typedef name="lscoselector" classname="org.apache.tools.ant.taskdefs.optional.clearcase.CleartoolLscoSelector"/>
<target name="setupfileset">
<path id="files.to.deploy">
<fileset dir=".">
<lscoselector/>
</fileset>
</path>
</target>
<target name="build" depends="setupfileset">
<foreach target="processeach" param="file">
<path refid="files.to.deploy"/>
</foreach>
</target>
<target name="processeach">
<echo>${file}</echo>
</target>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]