Imported Upstream version 2.8.12.2
[platform/upstream/cmake.git] / Source / cmDependsJava.cxx
1 /*============================================================================
2   CMake - Cross Platform Makefile Generator
3   Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
4
5   Distributed under the OSI-approved BSD License (the "License");
6   see accompanying file Copyright.txt for details.
7
8   This software is distributed WITHOUT ANY WARRANTY; without even the
9   implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10   See the License for more information.
11 ============================================================================*/
12 #include "cmDependsJava.h"
13
14 #include "cmDependsJavaParserHelper.h"
15 #include "cmSystemTools.h"
16
17 //----------------------------------------------------------------------------
18 cmDependsJava::cmDependsJava()
19 {
20 }
21
22 //----------------------------------------------------------------------------
23 cmDependsJava::~cmDependsJava()
24 {
25 }
26
27 //----------------------------------------------------------------------------
28 bool cmDependsJava::WriteDependencies(const std::set<std::string>& sources,
29     const std::string&, std::ostream&, std::ostream&)
30 {
31   // Make sure this is a scanning instance.
32   if(sources.empty() || sources.begin()->empty())
33     {
34     cmSystemTools::Error("Cannot scan dependencies without an source file.");
35     return false;
36     }
37
38   return true;
39 }
40
41 bool cmDependsJava::CheckDependencies(std::istream&, const char*,
42                              std::map<std::string, DependencyVector >&)
43 {
44   return true;
45 }