${cf} with the extension included?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
dave_mwi
Posts: 3
Joined: Thu Sep 22, 2005 3:55 pm

${cf} with the extension included?

Post by dave_mwi »

I'm creating an extenal tool for CVS. However, there is no macro for the current file and it's extension. ${cfn} is the current file without extension and ${cf} is the whole pat of the file which CVS does not allow.

Maybe I'm missing the fact that there might be a plugin or some integrated way to use CVS??

Having a tool macro for the file with extension seems pretty standard...anyone have any suggesions? Thanks!

Dave
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Post by Radu »

Hello Dave,

Th reason the External Tools editor does not support a macro like you suggested is that it was originally intended for external transformations where the current file name without extension could be used to compose the output file name.
I'm placing a bug do add an additional macro to the external tools section which will be expanded as the complete current file name.
In the meantime you can make different external tools for each file extension you want to commit and for example run the external tool with ${cfn}.xml when an xml file is selected in the editor or run another external tool when a stylesheet is selected.
Another workaround would be to use Oxygen as an Eclipse plugin as CVS support is built into Eclipse.

Regards, Radu.
Post Reply