diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-07-03 00:55:31 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-07-03 00:55:31 +0000 |
commit | 2913e17def90109ac83922e55a9df8999844ec58 (patch) | |
tree | 435d08bb62e3bfa045bcb4a59a9fcfba049fae1d /src/build.cpp | |
parent | a1bc3936b85eab573361026ae323c1a02e0f0ccd (diff) | |
download | build-2913e17def90109ac83922e55a9df8999844ec58.tar.gz build-2913e17def90109ac83922e55a9df8999844ec58.tar.bz2 build-2913e17def90109ac83922e55a9df8999844ec58.tar.xz build-2913e17def90109ac83922e55a9df8999844ec58.zip |
Since libbu++-reorg is now the trunk, build has been updated to work with it.
Diffstat (limited to 'src/build.cpp')
-rw-r--r-- | src/build.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/build.cpp b/src/build.cpp index 113f61f..c92d804 100644 --- a/src/build.cpp +++ b/src/build.cpp | |||
@@ -1,7 +1,8 @@ | |||
1 | #include "build.h" | 1 | #include "build.h" |
2 | #include "function.h" | 2 | #include "function.h" |
3 | #include "viewerfactory.h" | 3 | #include "viewerfactory.h" |
4 | #include "serializerbinary.h" | 4 | #include "bu/archive.h" |
5 | #include "bu/file.h" | ||
5 | 6 | ||
6 | subExceptionDef( BuildException ); | 7 | subExceptionDef( BuildException ); |
7 | 8 | ||
@@ -18,11 +19,12 @@ Build::~Build() | |||
18 | { | 19 | { |
19 | try | 20 | try |
20 | { | 21 | { |
21 | SerializerBinary ar( sCacheName.c_str(), Serializer::save ); | 22 | Bu::File f( sCacheName.c_str(), "wb" ); |
23 | Bu::Archive ar( f, Bu::Archive::save ); | ||
22 | 24 | ||
23 | ar << cRequires; | 25 | ar << cRequires; |
24 | } | 26 | } |
25 | catch( ExceptionBase &e ) | 27 | catch( Bu::ExceptionBase &e ) |
26 | { | 28 | { |
27 | } | 29 | } |
28 | } | 30 | } |
@@ -39,11 +41,12 @@ void Build::setCache( const std::string &sFileName ) | |||
39 | 41 | ||
40 | try | 42 | try |
41 | { | 43 | { |
42 | SerializerBinary ar( sCacheName.c_str(), Serializer::load ); | 44 | Bu::File f( sCacheName.c_str(), "rb" ); |
45 | Bu::Archive ar( f, Bu::Archive::load ); | ||
43 | 46 | ||
44 | ar >> cRequires; | 47 | ar >> cRequires; |
45 | } | 48 | } |
46 | catch( ExceptionBase &e ) | 49 | catch( Bu::ExceptionBase &e ) |
47 | { | 50 | { |
48 | } | 51 | } |
49 | } | 52 | } |