Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore client generated files in Perforce workspace view

Is there a way to have Perforce ignore new files in a client workspace in the workspace view?

I have 120 java files that generate over 700 class files, so managing these files in a single folder view is tedious. I recognize generating the output in a separate folder is an elegant solution but not one that is feasible at the moment.

Question 55449 relates to ignoring files that exist on the server, but the workspace view still includes these files.

EDIT: I'm trying to exclude just .class files (or some other arbitrary filter) not ALL files. Reconcile Offline Work still shows these class files as well.

like image 689
BrianH Avatar asked Jun 04 '09 20:06

BrianH


2 Answers

 -//folderName/folderName/folderName/*.class //workspaceName/folderName/folderName/*.class

If this line is in the "View" area of the Workspace, the "Reconcile Offline Work" will group all the .class files in an "Excluded Files" branch. The class files will still show up in the workspace view however.

like image 186
BrianH Avatar answered Oct 23 '22 10:10

BrianH


If you don't want to remember to put BrianH's exclusion line in all your workspaces (aka client specs), then ask your administrator to filer out .class files in the P4 server permissions table. This will make it transparent to all users.

like image 33
Greg Whitfield Avatar answered Oct 23 '22 09:10

Greg Whitfield