Merge pull request #228 from DOCGroup/jwillemsen-patch-1
[MPC.git] / modules / SLEWorkspaceCreator.pm
blob52ee2691a0bbf347278c9e0a489047fef8fd5dff
1 package SLEWorkspaceCreator;
3 # ************************************************************
4 # Description : The SLE Workspace Creator
5 # Author : Johnny Willemsen
6 # Create Date : 3/23/2004
7 # ************************************************************
9 # ************************************************************
10 # Pragmas
11 # ************************************************************
13 use strict;
15 use SLEProjectCreator;
16 use WorkspaceCreator;
18 use vars qw(@ISA);
19 @ISA = qw(WorkspaceCreator);
21 # ************************************************************
22 # Subroutine Section
23 # ************************************************************
26 sub compare_output {
27 #my $self = shift;
28 return 1;
32 sub workspace_file_extension {
33 #my $self = shift;
34 return '.vpw';
38 sub pre_workspace {
39 my($self, $fh) = @_;
40 my $crlf = $self->crlf();
42 print $fh "<!DOCTYPE Workspace SYSTEM \"http://www.slickedit.com/dtd/vse/8.1/vpw.dtd\">$crlf" .
43 "<Workspace Version=\"8.1\" VendorName=\"SlickEdit\">$crlf";
47 sub write_comps {
48 my($self, $fh) = @_;
49 my $crlf = $self->crlf();
51 print $fh "\t<Projects>$crlf";
52 foreach my $project ($self->sort_dependencies($self->get_projects(), 0)) {
53 print $fh "\t\t<Project File=\"$project\"/>$crlf";
55 print $fh "\t</Projects>$crlf";
59 sub post_workspace {
60 my($self, $fh) = @_;
61 print $fh '</Workspace>' . $self->crlf();