Added: #1440 Some notes

--HG--
branch : build_pipeline_v3
hg/feature/build_pipeline_v3
kaetemi 12 years ago
parent cefc026b1c
commit 5fbdda3f64

@ -554,12 +554,12 @@ public:
} }
} }
return true; return true;
} } // ok
bool isDirectoryDependency(const std::string &path) bool isDirectoryDependency(const std::string &path)
{ {
return m_ListDependentDirectories.find(path) != m_ListDependentDirectories.end(); return m_ListDependentDirectories.find(path) != m_ListDependentDirectories.end();
} } // ok
bool hasInputDirectoryBeenModified(const std::string &inputDirectory) bool hasInputDirectoryBeenModified(const std::string &inputDirectory)
{ {
@ -597,15 +597,16 @@ public:
return true; return true;
} }
} }
// nldebug("Input directory '%s' not modified", inputDirectory.c_str());
return false; return false;
} } // ok
bool hasInputFileBeenModified(const std::string &inputFile) bool hasInputFileBeenModified(const std::string &inputFile)
{ {
return m_ListInputAdded.find(inputFile) != m_ListInputAdded.end() return m_ListInputAdded.find(inputFile) != m_ListInputAdded.end()
|| m_ListInputChanged.find(inputFile) != m_ListInputChanged.end() || m_ListInputChanged.find(inputFile) != m_ListInputChanged.end()
|| m_ListInputRemoved.find(inputFile) != m_ListInputRemoved.end(); || m_ListInputRemoved.find(inputFile) != m_ListInputRemoved.end();
} } // ok
bool needsToBeRebuilt(const std::vector<std::string> &inputPaths) bool needsToBeRebuilt(const std::vector<std::string> &inputPaths)
{ {
@ -680,7 +681,7 @@ public:
{ {
nldebug("Not all input files have an .output files, rebuild"); nldebug("Not all input files have an .output files, rebuild");
m_SubTaskResult = FINISH_SUCCESS; m_SubTaskResult = FINISH_SUCCESS;
return true; return true; // Rebuild
} }
else else
{ {
@ -690,7 +691,7 @@ public:
} }
} }
// not reachable // not reachable
} } // ok
bool needsToBeRebuildSubByOutput(const std::vector<std::string> &inputPaths, bool inputChanged) bool needsToBeRebuildSubByOutput(const std::vector<std::string> &inputPaths, bool inputChanged)
{ {

Loading…
Cancel
Save