The output directory is now correctly set on sections.
The output directory is now correctly set so that a section's resource's compiled output will be placed in the correct spot.
This commit is contained in:
parent
931ea0c4aa
commit
3a9802d301
@ -321,6 +321,7 @@ impl Processor
|
||||
let mut dst_dir: PathBuf;
|
||||
|
||||
// Adjust the src path to be from the resources directory.
|
||||
// Adjust the destination path to be rooted at the output directory.
|
||||
for section in self.sections.iter_mut()
|
||||
{
|
||||
dir = self.resources_dir.clone();
|
||||
@ -339,6 +340,23 @@ impl Processor
|
||||
"source filename into a string.");
|
||||
}
|
||||
}
|
||||
|
||||
dir = self.output_dir.clone();
|
||||
dir.push(section.dst_path.clone());
|
||||
match dir.to_str()
|
||||
{
|
||||
Some(dst_filename) =>
|
||||
{
|
||||
section.dst_path.clear();
|
||||
section.dst_path.push_str(dst_filename);
|
||||
}
|
||||
|
||||
None =>
|
||||
{
|
||||
warn!("{} {}", "There was an issue converting the resource's",
|
||||
"destination filename into a string.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Handle making sure that each directory is present
|
||||
|
Loading…
x
Reference in New Issue
Block a user