Skip to content

Commit 3a06d56

Browse files
committed
Mon Jun 17 14:17:49 UTC 2019 Chad Elliott <elliottc@objectcomputing.com>
1 parent 9ec8b97 commit 3a06d56

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Mon Jun 17 14:17:49 UTC 2019 Chad Elliott <elliottc@objectcomputing.com>
2+
3+
* modules/CommandHelper.pm:
4+
* modules/ProjectCreator.pm:
5+
6+
Provide a ProjectCreator reference to the CommandHelper.
7+
18
Wed May 22 13:21:16 UTC 2019 Chad Elliott <elliott_c@ociweb.com>
29

310
* docs/templates/iar.txt:

modules/CommandHelper.pm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,9 @@ sub get_tied {
9797
return [], undef;
9898
}
9999

100+
sub set_creator {
101+
my($self, $creator) = @_;
102+
$self->{'creator'} = $creator;
103+
}
104+
100105
1;

modules/ProjectCreator.pm

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2492,6 +2492,11 @@ sub add_explicit_output {
24922492

24932493
sub generated_filenames {
24942494
my($self, $part, $type, $tag, $file, $noext, $arrs) = @_;
2495+
## $part - The full path of the input file minus the extension
2496+
## $type - The input file type (e.g., 'java_files')
2497+
## $file - The full path of the input file
2498+
## $noext - bool indicating an inverse need for an extension
2499+
## $arrs - bool indicating that the return array should be made of arrays
24952500

24962501
## A custom type is not allowed to generate it's own input files
24972502
return () if ($type eq $tag);
@@ -5713,7 +5718,12 @@ sub find_command_helper {
57135718

57145719
## See if we have a command helper for this tag
57155720
my $ch = CommandHelper::get($tag);
5716-
return $ch if (defined $ch);
5721+
if (defined $ch) {
5722+
## Give the command helper a reference to the creator. The helper
5723+
## can benefit from many of the infrastructure functions available.
5724+
$ch->set_creator($self);
5725+
return $ch;
5726+
}
57175727

57185728
## None for the base define custom, try again with the parent
57195729
return $self->find_command_helper($self->{'define_custom_parent'}->{$tag});

0 commit comments

Comments
 (0)