Re: How to attach a patch in jar?

2011-01-25 Thread Olivier Lamy
Which cvs version are you using for not having this option -d ??

Here I have :

olamy@olamy-laptop:~/dev/sources/maven/scm$ cvs --help-options rlist
CVS global options (specified before the command name) are:
-H   Displays usage information for command.
-Q   Cause CVS to be really quiet.
-q   Cause CVS to be somewhat quiet.
-r   Make checked-out files read-only.
-w   Make checked-out files read-write (default).
-n   Do not execute anything that will change the disk.
-t   Show trace of program execution (repeat for more
 verbosity) -- try with -n.
-R   Assume repository is read-only, such as CDROM
-v   CVS version and copyright.
-T tmpdirUse 'tmpdir' for temporary files.
-e editorUse 'editor' for editing log information.
-d CVS_root  Overrides $CVSROOT as the root of the CVS tree.
-f   Do not use the ~/.cvsrc file.
-z # Request compression level '#' for net traffic.
-a   Authenticate all net traffic.
-4   Use IPv4 addresses only.
-6   Use IPv6 addresses only.
-s VAR=VAL   Set CVS user variable.

olamy@olamy-laptop:~/dev/sources/maven/scm$ cvs -v

Concurrent Versions System (CVS) 1.12.13 (client/server)

2011/1/25 samuellawrence :
>
> Hi,
>
> My problem is, I have to list the files that are in the repository and it
> can be any repository. So I have chosen maven to do that. Now I could list
> the files from svn repository. and when I used to list from cvs I got the
> following error and I am using maven scm 1.4 version.
>
> D:\temp
> basedir = D:\temp; files = [DQA\Doc\Development\3.4.0]
> [INFO] Executing: cmd.exe /X /C "cvs -z3 -f -d
> :pserver:[email protected]:/bosco/cvsrep -n -q rls -d  -e -R
> DQA\Doc\Development\3.4.0"
> [INFO] Working directory: D:\temp
> There was a error while executing the SCM command.
> Error message from the provider: The cvs command failed.
> Command output:
> rls: invalid option -- d
> Usage: cvs rls [-q] [-e] [-l] [-R] [-r rev] [-D date] [-t] [modules...]
>        -D date Show files from date.
>        -e      Display in CVS/Entries format.
>        -l      Display all details.
>        -P      Ignore empty directories.
>        -q      Quieter output.
>        -R      List recursively.
>        -r rev  Show files with revision or tag.
>        -T      Show time in local time instead of GMT.
> (Specify the --help global option for a list of other help options)
>
> Where I remove and "-d" from the command and it worked fine in the command
> line but in the program "-d" is appended automatically. Kindly help me how
> to remove the "-d" using api or run the with '-d' Or if you have a jar that
> resolved this problem kindly pass it to me. it will very helpful.
>
> Kindly help me.
>
> Thanks in Advance
>
>
>
> Olivier Lamy wrote:
>>
>> Hello,
>> AFAIK the issue is closed and marked as fixed for scm 1.1 .
>> Which version are you using ? If >= 1.1 and you still have the issue,
>> the best is probably to open an other one with a description.
>>
>> Thanks,
>> --
>> Olivier Lamy
>> http://twitter.com/olamy
>> http://www.linkedin.com/in/olamy
>>
>> 2011/1/25 samuellawrence :
>>>
>>> Dear all,
>>>
>>> I am working on maven-scm-client using api. When I use list cvs command.
>>> I
>>> am getting the following error message from the provider:
>>>
>>> The cvs command failed.
>>> Command output:
>>> rls: invalid option -- d
>>> Usage: cvs rls [-q] [-e] [-l] [-R] [-r rev] [-D date] [-t] [modules...]
>>>        -D date Show files from date.
>>>        -e Display in CVS/Entries format.
>>>        -l Display all details.
>>>        -P Ignore empty directories.
>>>        -q Quieter output.
>>>        -R List recursively.
>>>        -r rev Show files with revision or tag.
>>>        -T Show time in local time instead of GMT.
>>> (Specify the --help global option for a list of other help options)
>>>
>>> I found solution in http://jira.codehaus.org/browse/SCM-380 url but it a
>>> patch. I don't know how to apply the patch to the maven scm jars.
>>>
>>> Please help me how to apply the patch to a jar.
>>>
>>> Thank in Advance.
>>> --
>>> View this message in context:
>>> http://maven.40175.n5.nabble.com/How-to-attach-a-patch-in-jar-tp3355871p3355871.html
>>> Sent from the Maven Developers mailing list archive at Nabble.com.
>>>
>>> -
>>> 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]
>>
>>
>>
>
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/How-to-attach-a-patch-in-jar-tp3355871p3356124.html
> Sent from the Maven Developers mai

Re: How to attach a patch in jar?

2011-01-25 Thread Mark Struberg
Use the patch command [1].
There is a windows distribution of lots of GNU tools [2] which might help you 
too.

$> patch -p0 < yourpatchfile

LieGrue,
strub

[1] http://linux.die.net/man/1/patch
[2] http://gnuwin32.sourceforge.net/

--- On Tue, 1/25/11, Ricky Clarkson  wrote:

> From: Ricky Clarkson 
> Subject: Re: How to attach a patch in jar?
> To: [email protected]
> Date: Tuesday, January 25, 2011, 7:58 AM
> Check out the source code for the
> project you wish to patch.  Apply
> the patch (see the patch command, or look into whatever
> tortoise etc.
> supply), change the pom.xml's version number to something
> non-standard
> and mvn clean install (deploy if you like).
> 
> You can't apply a source code patch to a binary jar, you
> need to apply
> it to source.
> 
> On Tue, Jan 25, 2011 at 7:14 AM, samuellawrence 
> wrote:
> >
> > Dear all,
> >
> > I am working on maven-scm-client using api. When I use
> list cvs command. I
> > am getting the following error message from the
> provider:
> >
> > The cvs command failed.
> > Command output:
> > rls: invalid option -- d
> > Usage: cvs rls [-q] [-e] [-l] [-R] [-r rev] [-D date]
> [-t] [modules...]
> >        -D date Show files from date.
> >        -e Display in CVS/Entries format.
> >        -l Display all details.
> >        -P Ignore empty directories.
> >        -q Quieter output.
> >        -R List recursively.
> >        -r rev Show files with revision or tag.
> >        -T Show time in local time instead of GMT.
> > (Specify the --help global option for a list of other
> help options)
> >
> > I found solution in http://jira.codehaus.org/browse/SCM-380 url but it a
> > patch. I don't know how to apply the patch to the
> maven scm jars.
> >
> > Please help me how to apply the patch to a jar.
> >
> > Thanks in Advance
> > --
> > View this message in context: 
> > http://maven.40175.n5.nabble.com/How-to-attach-a-patch-in-jar-tp3355857p3355857.html
> > Sent from the Maven - SCM mailing list archive at
> Nabble.com.
> >
> 





Re: How to attach a patch in jar?

2011-01-24 Thread Ricky Clarkson
Check out the source code for the project you wish to patch.  Apply
the patch (see the patch command, or look into whatever tortoise etc.
supply), change the pom.xml's version number to something non-standard
and mvn clean install (deploy if you like).

You can't apply a source code patch to a binary jar, you need to apply
it to source.

On Tue, Jan 25, 2011 at 7:14 AM, samuellawrence  wrote:
>
> Dear all,
>
> I am working on maven-scm-client using api. When I use list cvs command. I
> am getting the following error message from the provider:
>
> The cvs command failed.
> Command output:
> rls: invalid option -- d
> Usage: cvs rls [-q] [-e] [-l] [-R] [-r rev] [-D date] [-t] [modules...]
>        -D date Show files from date.
>        -e Display in CVS/Entries format.
>        -l Display all details.
>        -P Ignore empty directories.
>        -q Quieter output.
>        -R List recursively.
>        -r rev Show files with revision or tag.
>        -T Show time in local time instead of GMT.
> (Specify the --help global option for a list of other help options)
>
> I found solution in http://jira.codehaus.org/browse/SCM-380 url but it a
> patch. I don't know how to apply the patch to the maven scm jars.
>
> Please help me how to apply the patch to a jar.
>
> Thanks in Advance
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/How-to-attach-a-patch-in-jar-tp3355857p3355857.html
> Sent from the Maven - SCM mailing list archive at Nabble.com.
>