CVS Commit Template Problem

Hello,

I'm using NetBeans3.3.1 (Build 200202011224)

on WinNT4.0 with J2SDK1.4.0. I'm also using

the CVS command line WinNT exe (cvs1-11-1p1.zip),

and ssh (ssh-1.2.14-win32.exe) to talk to the

CVS server on a unix box.

I'm attempting to change the default CVS

commit template. I've added the necessary

info to $CVSROOT/CVSROOT/rcsinfo, and of

course the template we want to use.

The template appears as excpected when I commit

via the cvs command line either on unix or on NT,

but NOT from within NetBeans? I've verified

that the workspace file ".../CVS/Template" is

created upon checkout as expected.

The NetBeans CVS command properties, in the

CVS filesystem customizer windows, seem to

refer to a ${TEMPLATE_FILE} but I don't know

what to do with this info? I've been searching

for any info on this and found one reference

to it being supported? What am I missing?

Any ideas appreciated!

Thanks,

Travis

Travis D. Minke

Avaya Inc

Ema tminke@avaya.com

Tel 303.538.0409

Fax 303.538.5478

[1196 byte] By [Travis] at [2007-11-25 16:49:10]
# 1

In :local: mode this works perfectly for me on Windows NT 4.0.

Can you please send the output (both standard and error output) from the

COMMIT_TEMPLATE_GETTER command?

Thanks,

Martin

"Minke, Travis D (Travis)" wrote:

>

> Hello,

>I'm using NetBeans3.3.1 (Build 200202011224)

> on WinNT4.0 with J2SDK1.4.0. I'm also using

> the CVS command line WinNT exe (cvs1-11-1p1.zip),

> and ssh (ssh-1.2.14-win32.exe) to talk to the

> CVS server on a unix box.

>

>I'm attempting to change the default CVS

> commit template. I've added the necessary

> info to $CVSROOT/CVSROOT/rcsinfo, and of

> course the template we want to use.

>

>The template appears as excpected when I commit

> via the cvs command line either on unix or on NT,

> but NOT from within NetBeans? I've verified

> that the workspace file ".../CVS/Template" is

> created upon checkout as expected.

>

>The NetBeans CVS command properties, in the

> CVS filesystem customizer windows, seem to

> refer to a ${TEMPLATE_FILE} but I don't know

> what to do with this info? I've been searching

> for any info on this and found one reference

> to it being supported? What am I missing?

>

> Any ideas appreciated!

> Thanks,

> Travis

>

>

> Travis D. Minke

> Avaya Inc

> Ema tminke@avaya.com

> Tel 303.538.0409

> Fax 303.538.5478

>

Entlicher,Martin at 2007-7-2 23:45:38 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 2

Hi Martin,

Thanks for your response!

The COMMIT_TEMPLATE_GETTER command is...

cmd /X /C "cd /D \"D:\cvs_local_tminketesting\\.\"&&echo a | \"D:\cvs_client\cvs.exe\" -d \":ext:tminke@dura:/usr/add-on/si/tminke_cvsroot\" -f -e \"d:\\java_src\\system\\vcs\\wincat.bat\" commit \"sockets\Makefile\" "

The Standard Output is...

CVS: -

CVS: Enter Log. Lines beginning with `CVS:' are removed automatically

CVS:

CVS: Committing in .

CVS:

CVS: Modified Files:

CVS: sockets/Makefile

CVS: -

Log message unchanged or not specified

a)bort, c)ontinue, e)dit, !)reuse this message unchanged for remaining dirs

Action: (continue)

The Standard Error is...

cvs.exe [commit aborted]: aborted by user

I'm assuming the template getter command

is failing because I've not entered any input,

because it succeeds when I do. So this is

probably as excpected? Either way the commit

command itself succeeds. The issue is that

when I commit outside netbeans my template

is displayed before the standard CVS

"Enter Log" information.

Thanks again!

Travis

Travis D. Minke

Avaya Inc

Ema tminke@avaya.com

Tel 303.538.0409

Fax 303.538.5478

--Original Message--

From: Martin Entlicher [mailto:Martin.Entlicher@Sun.COM]

Sent: Friday, July 26, 2002 5:24 AM

To: nbusers@netbeans.org

Subject: Re: CVS Commit Template Problem

In :local: mode this works perfectly for me on Windows NT 4.0.

Can you please send the output (both standard and error output) from the

COMMIT_TEMPLATE_GETTER command?

Thanks,

Martin

"Minke, Travis D (Travis)" wrote:

>

> Hello,

>I'm using NetBeans3.3.1 (Build 200202011224)

> on WinNT4.0 with J2SDK1.4.0. I'm also using

> the CVS command line WinNT exe (cvs1-11-1p1.zip),

> and ssh (ssh-1.2.14-win32.exe) to talk to the

> CVS server on a unix box.

>

>I'm attempting to change the default CVS

> commit template. I've added the necessary

> info to $CVSROOT/CVSROOT/rcsinfo, and of

> course the template we want to use.

>

>The template appears as excpected when I commit

> via the cvs command line either on unix or on NT,

> but NOT from within NetBeans? I've verified

> that the workspace file ".../CVS/Template" is

> created upon checkout as expected.

>

>The NetBeans CVS command properties, in the

> CVS filesystem customizer windows, seem to

> refer to a ${TEMPLATE_FILE} but I don't know

> what to do with this info? I've been searching

> for any info on this and found one reference

> to it being supported? What am I missing?

>

> Any ideas appreciated!

> Thanks,

> Travis

>

>

> Travis D. Minke

> Avaya Inc

> Ema tminke@avaya.com

> Tel 303.538.0409

> Fax 303.538.5478

>

Travis at 2007-7-2 23:45:38 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 3

Hi Travis,

Thanks for the outputs.

The fact, that the command is "aborted by user" is O.K. It's used only to

retrieve the template.

Can the problem be, that the command is executed in the parent directory? There

should be no other difference from the command executed in the Command Prompt.

Can you please try to run the command in the command line in directory

D:\cvs_local_tminketesting?

If cvs commit sockets\Makefile provides no template, we have the problem

identified.

I would have to make some changes in the NetBeans integration is this case

(although I think that it would be a bug in CVS, the behavior should not be

dependent on your current directory).

Thanks for your tests!

-Martin

"Minke, Travis D (Travis)" wrote:

>

> Hi Martin,

>Thanks for your response!

>

>The COMMIT_TEMPLATE_GETTER command is...

>

> cmd /X /C "cd /D \"D:\cvs_local_tminketesting\\.\"&&echo a | \"D:\cvs_client\cvs.exe\" -d \":ext:tminke@dura:/usr/add-on/si/tminke_cvsroot\" -f -e \"d:\\java_src\\system\\vcs\\wincat.bat\" commit \"sockets\Makefile\" "

>

>The Standard Output is...

>

> CVS: -

> CVS: Enter Log. Lines beginning with `CVS:' are removed automatically

> CVS:

> CVS: Committing in .

> CVS:

> CVS: Modified Files:

> CVS:sockets/Makefile

> CVS: -

>

> Log message unchanged or not specified

> a)bort, c)ontinue, e)dit, !)reuse this message unchanged for remaining dirs

> Action: (continue)

>

>The Standard Error is...

>

> cvs.exe [commit aborted]: aborted by user

>

>I'm assuming the template getter command

> is failing because I've not entered any input,

> because it succeeds when I do. So this is

> probably as excpected? Either way the commit

> command itself succeeds. The issue is that

> when I commit outside netbeans my template

> is displayed before the standard CVS

> "Enter Log" information.

>

> Thanks again!

> Travis

>

> Travis D. Minke

> Avaya Inc

> Ema tminke@avaya.com

> Tel 303.538.0409

> Fax 303.538.5478

>

>

> --Original Message--

> From: Martin Entlicher [mailto:Martin.Entlicher@Sun.COM]

> Sent: Friday, July 26, 2002 5:24 AM

> To: nbusers@netbeans.org

> Subject: Re: CVS Commit Template Problem

>

> In :local: mode this works perfectly for me on Windows NT 4.0.

> Can you please send the output (both standard and error output) from the

> COMMIT_TEMPLATE_GETTER command?

>

> Thanks,

> Martin

>

> "Minke, Travis D (Travis)" wrote:

> >

> > Hello,

> >I'm using NetBeans3.3.1 (Build 200202011224)

> > on WinNT4.0 with J2SDK1.4.0. I'm also using

> > the CVS command line WinNT exe (cvs1-11-1p1.zip),

> > and ssh (ssh-1.2.14-win32.exe) to talk to the

> > CVS server on a unix box.

> >

> >I'm attempting to change the default CVS

> > commit template. I've added the necessary

> > info to $CVSROOT/CVSROOT/rcsinfo, and of

> > course the template we want to use.

> >

> >The template appears as excpected when I commit

> > via the cvs command line either on unix or on NT,

> > but NOT from within NetBeans? I've verified

> > that the workspace file ".../CVS/Template" is

> > created upon checkout as expected.

> >

> >The NetBeans CVS command properties, in the

> > CVS filesystem customizer windows, seem to

> > refer to a ${TEMPLATE_FILE} but I don't know

> > what to do with this info? I've been searching

> > for any info on this and found one reference

> > to it being supported? What am I missing?

> >

> > Any ideas appreciated!

> > Thanks,

> > Travis

> >

> >

> > Travis D. Minke

> > Avaya Inc

> > Ema tminke@avaya.com

> > Tel 303.538.0409

> > Fax 303.538.5478

> >

Entlicher,Martin at 2007-7-2 23:45:38 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 4

Hi Martin,

I did as you requested and you are correct!

This command works OK...

D:\cvs_local_tminketesting>cmd /X /C "cd /D D:\cvs_local_tminketesting\sockets &

echo a | D:\cvs_client\cvs.exe -t -d :ext:tminke@dura:/usr/add-on/si/tminke_cv

sroot -f commit client.c "

While this command FAILS...

D:\cvs_local_tminketesting>cmd /X /C "cd /D D:\cvs_local_tminketesting &

echo a | D:\cvs_client\cvs.exe -t -d :ext:tminke@dura:/usr/add-on/si/tminke_cv

sroot -f commit sockets\client.c "

The difference between the two is the initial

"cd" and related relative path. Apparently

CVS DOES care, and I agree that it SHOULDN'T.

As previously stated NetBeans is using the

latter method - hence the problem.

I certainly agree with you that this is a CVS

problem and one of us should raise it with them.

I am happy to do so, but you may carry more clout!

I leave it to you to decide whether NetBeans

should be modified to better handle this. Please

let me know of your decision on both issues.

If you have any advice on how we might work

around this issue in the meantime that would be

appreciated as well.

Thanks once again for the great "support"!

Travis

Travis D. Minke

Avaya Inc

Ema tminke@avaya.com

Tel 303.538.0409

Fax 303.538.5478

--Original Message--

From: Martin Entlicher [mailto:Martin.Entlicher@Sun.COM]

Sent: Friday, July 26, 2002 8:17 AM

To: nbusers@netbeans.org

Subject: Re: CVS Commit Template Problem

Hi Travis,

Thanks for the outputs.

The fact, that the command is "aborted by user" is O.K. It's used only to

retrieve the template.

Can the problem be, that the command is executed in the parent directory? There

should be no other difference from the command executed in the Command Prompt.

Can you please try to run the command in the command line in directory

D:\cvs_local_tminketesting?

If cvs commit sockets\Makefile provides no template, we have the problem

identified.

I would have to make some changes in the NetBeans integration is this case

(although I think that it would be a bug in CVS, the behavior should not be

dependent on your current directory).

Thanks for your tests!

-Martin

"Minke, Travis D (Travis)" wrote:

>

> Hi Martin,

>Thanks for your response!

>

>The COMMIT_TEMPLATE_GETTER command is...

>

> cmd /X /C "cd /D \"D:\cvs_local_tminketesting\\.\"&&echo a | \"D:\cvs_client\cvs.exe\" -d \":ext:tminke@dura:/usr/add-on/si/tminke_cvsroot\" -f -e \"d:\\java_src\\system\\vcs\\wincat.bat\" commit \"sockets\Makefile\" "

>

>The Standard Output is...

>

> CVS: -

> CVS: Enter Log. Lines beginning with `CVS:' are removed automatically

> CVS:

> CVS: Committing in .

> CVS:

> CVS: Modified Files:

> CVS:sockets/Makefile

> CVS: -

>

> Log message unchanged or not specified

> a)bort, c)ontinue, e)dit, !)reuse this message unchanged for remaining dirs

> Action: (continue)

>

>The Standard Error is...

>

> cvs.exe [commit aborted]: aborted by user

>

>I'm assuming the template getter command

> is failing because I've not entered any input,

> because it succeeds when I do. So this is

> probably as excpected? Either way the commit

> command itself succeeds. The issue is that

> when I commit outside netbeans my template

> is displayed before the standard CVS

> "Enter Log" information.

>

> Thanks again!

> Travis

>

> Travis D. Minke

> Avaya Inc

> Ema tminke@avaya.com

> Tel 303.538.0409

> Fax 303.538.5478

>

>

> --Original Message--

> From: Martin Entlicher [mailto:Martin.Entlicher@Sun.COM]

> Sent: Friday, July 26, 2002 5:24 AM

> To: nbusers@netbeans.org

> Subject: Re: [nbusers] CVS Commit Template Problem

>

> In :local: mode this works perfectly for me on Windows NT 4.0.

> Can you please send the output (both standard and error output) from the

> COMMIT_TEMPLATE_GETTER command?

>

> Thanks,

> Martin

>

> "Minke, Travis D (Travis)" wrote:

> >

> > Hello,

> >I'm using NetBeans3.3.1 (Build 200202011224)

> > on WinNT4.0 with J2SDK1.4.0. I'm also using

> > the CVS command line WinNT exe (cvs1-11-1p1.zip),

> > and ssh (ssh-1.2.14-win32.exe) to talk to the

> > CVS server on a unix box.

> >

> >I'm attempting to change the default CVS

> > commit template. I've added the necessary

> > info to $CVSROOT/CVSROOT/rcsinfo, and of

> > course the template we want to use.

> >

> >The template appears as excpected when I commit

> > via the cvs command line either on unix or on NT,

> > but NOT from within NetBeans? I've verified

> > that the workspace file ".../CVS/Template" is

> > created upon checkout as expected.

> >

> >The NetBeans CVS command properties, in the

> > CVS filesystem customizer windows, seem to

> > refer to a ${TEMPLATE_FILE} but I don't know

> > what to do with this info? I've been searching

> > for any info on this and found one reference

> > to it being supported? What am I missing?

> >

> > Any ideas appreciated!

> > Thanks,

> > Travis

> >

> >

> > Travis D. Minke

> > Avaya Inc

> > Ema tminke@avaya.com

> > Tel 303.538.0409

> > Fax 303.538.5478

> >

Travis at 2007-7-2 23:45:38 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 5

Hi Travis,

Thanks for your tests. Although it's a CVS problem, we should probably

implement some workaround in NetBeans (to work correctly with older versions of

cvs.exe).

I've filled issue #26079

(http://www.netbeans.org/issues/show_bug.cgi?id=26079).

I have currently no advice regarding a workaround. The execution string of

COMMIT_TEMPLATE_GETTER must change to "cd" to the correct directory. It will

need some support in the command invocation process, so that it can determine

the directory even when multiple files are selected.

Regards,

Martin

"Minke, Travis D (Travis)" wrote:

>

> Hi Martin,

>I did as you requested and you are correct!

>

> This command works OK...

>

> D:\cvs_local_tminketesting>cmd /X /C "cd /D D:\cvs_local_tminketesting\sockets &

> echo a | D:\cvs_client\cvs.exe -t -d :ext:tminke@dura:/usr/add-on/si/tminke_cv

> sroot -f commit client.c "

>

> While this command FAILS...

>

> D:\cvs_local_tminketesting>cmd /X /C "cd /D D:\cvs_local_tminketesting &

> echo a | D:\cvs_client\cvs.exe -t -d :ext:tminke@dura:/usr/add-on/si/tminke_cv

> sroot -f commit sockets\client.c "

>

>The difference between the two is the initial

> "cd" and related relative path. Apparently

> CVS DOES care, and I agree that it SHOULDN'T.

> As previously stated NetBeans is using the

> latter method - hence the problem.

>I certainly agree with you that this is a CVS

> problem and one of us should raise it with them.

> I am happy to do so, but you may carry more clout!

> I leave it to you to decide whether NetBeans

> should be modified to better handle this. Please

> let me know of your decision on both issues.

>If you have any advice on how we might work

> around this issue in the meantime that would be

> appreciated as well.

>

> Thanks once again for the great "support"!

> Travis

>

>

> Travis D. Minke

> Avaya Inc

> Ema tminke@avaya.com

> Tel 303.538.0409

> Fax 303.538.5478

>

>

> --Original Message--

> From: Martin Entlicher [mailto:Martin.Entlicher@Sun.COM]

> Sent: Friday, July 26, 2002 8:17 AM

> To: nbusers@netbeans.org

> Subject: Re: CVS Commit Template Problem

>

> Hi Travis,

>

> Thanks for the outputs.

> The fact, that the command is "aborted by user" is O.K. It's used only to

> retrieve the template.

>

> Can the problem be, that the command is executed in the parent directory? There

> should be no other difference from the command executed in the Command Prompt.

> Can you please try to run the command in the command line in directory

> D:\cvs_local_tminketesting?

> If cvs commit sockets\Makefile provides no template, we have the problem

> identified.

> I would have to make some changes in the NetBeans integration is this case

> (although I think that it would be a bug in CVS, the behavior should not be

> dependent on your current directory).

>

> Thanks for your tests!

>

> -Martin

>

> "Minke, Travis D (Travis)" wrote:

> >

> > Hi Martin,

> >Thanks for your response!

> >

> >The COMMIT_TEMPLATE_GETTER command is...

> >

> > cmd /X /C "cd /D \"D:\cvs_local_tminketesting\\.\"&&echo a | \"D:\cvs_client\cvs.exe\" -d \":ext:tminke@dura:/usr/add-on/si/tminke_cvsroot\" -f -e \"d:\\java_src\\system\\vcs\\wincat.bat\" commit \"sockets\Makefile\" "

> >

> >The Standard Output is...

> >

> > CVS: -

> > CVS: Enter Log. Lines beginning with `CVS:' are removed automatically

> > CVS:

> > CVS: Committing in .

> > CVS:

> > CVS: Modified Files:

> > CVS:sockets/Makefile

> > CVS: -

> >

> > Log message unchanged or not specified

> > a)bort, c)ontinue, e)dit, !)reuse this message unchanged for remaining dirs

> > Action: (continue)

> >

> >The Standard Error is...

> >

> > cvs.exe [commit aborted]: aborted by user

> >

> >I'm assuming the template getter command

> > is failing because I've not entered any input,

> > because it succeeds when I do. So this is

> > probably as excpected? Either way the commit

> > command itself succeeds. The issue is that

> > when I commit outside netbeans my template

> > is displayed before the standard CVS

> > "Enter Log" information.

> >

> > Thanks again!

> > Travis

> >

> > Travis D. Minke

> > Avaya Inc

> > Ema tminke@avaya.com

> > Tel 303.538.0409

> > Fax 303.538.5478

> >

> >

> > --Original Message--

> > From: Martin Entlicher [mailto:Martin.Entlicher@Sun.COM]

> > Sent: Friday, July 26, 2002 5:24 AM

> > To: nbusers@netbeans.org

> > Subject: Re: [nbusers] CVS Commit Template Problem

> >

> > In :local: mode this works perfectly for me on Windows NT 4.0.

> > Can you please send the output (both standard and error output) from the

> > COMMIT_TEMPLATE_GETTER command?

> >

> > Thanks,

> > Martin

> >

> > "Minke, Travis D (Travis)" wrote:

> > >

> > > Hello,

> > >I'm using NetBeans3.3.1 (Build 200202011224)

> > > on WinNT4.0 with J2SDK1.4.0. I'm also using

> > > the CVS command line WinNT exe (cvs1-11-1p1.zip),

> > > and ssh (ssh-1.2.14-win32.exe) to talk to the

> > > CVS server on a unix box.

> > >

> > >I'm attempting to change the default CVS

> > > commit template. I've added the necessary

> > > info to $CVSROOT/CVSROOT/rcsinfo, and of

> > > course the template we want to use.

> > >

> > >The template appears as excpected when I commit

> > > via the cvs command line either on unix or on NT,

> > > but NOT from within NetBeans? I've verified

> > > that the workspace file ".../CVS/Template" is

> > > created upon checkout as expected.

> > >

> > >The NetBeans CVS command properties, in the

> > > CVS filesystem customizer windows, seem to

> > > refer to a ${TEMPLATE_FILE} but I don't know

> > > what to do with this info? I've been searching

> > > for any info on this and found one reference

> > > to it being supported? What am I missing?

> > >

> > > Any ideas appreciated!

> > > Thanks,

> > > Travis

> > >

> > >

> > > Travis D. Minke

> > > Avaya Inc

> > > Ema tminke@avaya.com

> > > Tel 303.538.0409

> > > Fax 303.538.5478

> > >

Entlicher,Martin at 2007-7-2 23:45:38 > top of Java-index,Archived Forums,Sun ONE Studio 4...