Page 1 of 1

${cf} with the extension included?

Posted: Thu Sep 22, 2005 4:07 pm
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

Posted: Thu Sep 22, 2005 4:28 pm
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.