summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsJava.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-03-01 17:21:34 (GMT)
committerBrad King <brad.king@kitware.com>2005-03-01 17:21:34 (GMT)
commite979735a195d45c3c1ed8657b0c4bad96aad90cf (patch)
tree8fc69403de7d5273b4507101845e7e9c86f4f88d /Source/cmDependsJava.cxx
parentb636a0f20aa9f94940acd109e3717ef79730d168 (diff)
downloadCMake-e979735a195d45c3c1ed8657b0c4bad96aad90cf.zip
CMake-e979735a195d45c3c1ed8657b0c4bad96aad90cf.tar.gz
CMake-e979735a195d45c3c1ed8657b0c4bad96aad90cf.tar.bz2
ENH: Framework for java dependency scanner. Right now it does nothing but always reports success. This is enough to get the Java test to pass with the new generator because the old implementation did not do dependencies anyway.
Diffstat (limited to 'Source/cmDependsJava.cxx')
-rw-r--r--Source/cmDependsJava.cxx59
1 files changed, 59 insertions, 0 deletions
diff --git a/Source/cmDependsJava.cxx b/Source/cmDependsJava.cxx
new file mode 100644
index 0000000..ebd1d83
--- /dev/null
+++ b/Source/cmDependsJava.cxx
@@ -0,0 +1,59 @@
+/*=========================================================================
+
+ 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"
+
+//----------------------------------------------------------------------------
+cmDependsJava::cmDependsJava(const char* dir, const char* targetFile):
+ cmDepends(dir, targetFile),
+ m_SourceFile()
+{
+}
+
+//----------------------------------------------------------------------------
+cmDependsJava::cmDependsJava(const char* dir, const char* targetFile,
+ const char* sourceFile):
+ cmDepends(dir, targetFile),
+ m_SourceFile(sourceFile)
+{
+}
+
+//----------------------------------------------------------------------------
+cmDependsJava::~cmDependsJava()
+{
+}
+
+//----------------------------------------------------------------------------
+bool cmDependsJava::WriteDependencies(std::ostream& os)
+{
+ // 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;
+}