2005-03-01 20:21:34 +03:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
Program: CMake - Cross-Platform Makefile Generator
|
|
|
|
Module: $RCSfile$
|
|
|
|
Language: C++
|
|
|
|
Date: $Date$
|
|
|
|
Version: $Revision$
|
|
|
|
|
|
|
|
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
|
|
|
|
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
|
|
|
|
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
PURPOSE. See the above copyright notices for more information.
|
|
|
|
|
|
|
|
=========================================================================*/
|
|
|
|
#include "cmDependsJava.h"
|
|
|
|
|
|
|
|
#include "cmDependsJavaParserHelper.h"
|
|
|
|
#include "cmSystemTools.h"
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
2005-05-06 17:58:58 +04:00
|
|
|
cmDependsJava::cmDependsJava(const char* dir, const char* targetFile,
|
|
|
|
bool verbose):
|
|
|
|
cmDepends(dir, targetFile, verbose),
|
2005-03-01 20:21:34 +03:00
|
|
|
m_SourceFile()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
cmDependsJava::cmDependsJava(const char* dir, const char* targetFile,
|
|
|
|
const char* sourceFile):
|
2005-05-06 17:58:58 +04:00
|
|
|
cmDepends(dir, targetFile, false),
|
2005-03-01 20:21:34 +03:00
|
|
|
m_SourceFile(sourceFile)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
cmDependsJava::~cmDependsJava()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
2005-03-01 21:32:58 +03:00
|
|
|
bool cmDependsJava::WriteDependencies(std::ostream&)
|
2005-03-01 20:21:34 +03:00
|
|
|
{
|
|
|
|
// Make sure this is a scanning instance.
|
|
|
|
if(m_SourceFile == "")
|
|
|
|
{
|
|
|
|
cmSystemTools::Error("Cannot scan dependencies without an source file.");
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
bool cmDependsJava::CheckDependencies(std::istream&)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|