1 /*============================================================================
2 CMake - Cross Platform Makefile Generator
3 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5 Distributed under the OSI-approved BSD License (the "License");
6 see accompanying file Copyright.txt for details.
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"
14 #include "cmDependsJavaParserHelper.h"
15 #include "cmSystemTools.h"
17 //----------------------------------------------------------------------------
18 cmDependsJava::cmDependsJava()
22 //----------------------------------------------------------------------------
23 cmDependsJava::~cmDependsJava()
27 //----------------------------------------------------------------------------
28 bool cmDependsJava::WriteDependencies(const std::set<std::string>& sources,
29 const std::string&, std::ostream&, std::ostream&)
31 // Make sure this is a scanning instance.
32 if(sources.empty() || sources.begin()->empty())
34 cmSystemTools::Error("Cannot scan dependencies without an source file.");
41 bool cmDependsJava::CheckDependencies(std::istream&, const char*,
42 std::map<std::string, DependencyVector >&)