summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-01-04 17:39:45 +0100
committerAndras Timar <atimar@suse.com>2012-01-04 17:41:00 +0100
commit8f21e3b66c2a7b0e60aa3a61ffff0509a2170e21 (patch)
treed22a704aab5398917636fb8ca1e9f0e162374956 /l10ntools
parent58c4853f5489d8e23ae7aabdb544cde80a711ece (diff)
help compiler: less verbose output to console
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/help/HelpIndexerTool.java23
-rw-r--r--l10ntools/source/help/HelpLinker.cxx17
-rw-r--r--l10ntools/source/xmlparse.cxx2
3 files changed, 0 insertions, 42 deletions
diff --git a/l10ntools/source/help/HelpIndexerTool.java b/l10ntools/source/help/HelpIndexerTool.java
index c20d9f108ced..d1d0873e87b5 100644
--- a/l10ntools/source/help/HelpIndexerTool.java
+++ b/l10ntools/source/help/HelpIndexerTool.java
@@ -185,21 +185,11 @@ public class HelpIndexerTool
try
{
- Date start = new Date();
Analyzer analyzer = aLanguageStr.equals("ja") ? (Analyzer)new CJKAnalyzer() : (Analyzer)new StandardAnalyzer();
IndexWriter writer = new IndexWriter( aIndexDir, analyzer, true );
- if( !bExtensionMode )
- System.out.println( "Lucene: Indexing to directory '" + aIndexDir + "'..." );
int nRet = indexDocs( writer, aModule, bExtensionMode, aCaptionFilesDir, aContentFilesDir );
if( nRet != -1 )
- {
- if( !bExtensionMode )
- {
- System.out.println();
- System.out.println( "Optimizing ..." );
- }
writer.optimize();
- }
writer.close();
boolean bCfsFileOk = true;
@@ -229,8 +219,6 @@ public class HelpIndexerTool
if( nRet == -1 )
deleteRecursively( aIndexDir );
- if( bCfsFileOk && bSegmentFileOk )
- System.out.println( "Zipping ..." );
File aDirToZipFile = new File( aDirToZipStr );
createZipFile( aDirToZipFile, aTargetZipFileStr );
deleteRecursively( aDirToZipFile );
@@ -247,10 +235,6 @@ public class HelpIndexerTool
System.out.println( "segment file check failed, terminating..." );
System.exit( -1 );
}
-
- Date end = new Date();
- if( !bExtensionMode )
- System.out.println(end.getTime() - start.getTime() + " total milliseconds");
}
catch (IOException e)
{
@@ -288,8 +272,6 @@ public class HelpIndexerTool
HashSet aContentFilesHashSet = new HashSet( aContentFilesList );
// Loop over caption files and find corresponding content file
- if( !bExtensionMode )
- System.out.println( "Indexing, adding files" );
int nCaptionFilesLen = aCaptionFiles.length;
for( int i = 0 ; i < nCaptionFilesLen ; i++ )
{
@@ -298,9 +280,6 @@ public class HelpIndexerTool
File aContentFile = null;
if( aContentFilesHashSet.contains( aCaptionFileStr ) )
aContentFile = new File( aContentFilesDir, aCaptionFileStr );
-
- if( !bExtensionMode )
- System.out.print( "." );
writer.addDocument( HelpFileDocument.Document( aModule, aCaptionFile, aContentFile ) );
}
@@ -314,8 +293,6 @@ public class HelpIndexerTool
// Not already handled in caption files loop
File aCaptionFile = null;
File aContentFile = new File( aContentFilesDir, aContentFileStr );
- if( !bExtensionMode )
- System.out.print( "." );
writer.addDocument( HelpFileDocument.Document( aModule, aCaptionFile, aContentFile ) );
}
}
diff --git a/l10ntools/source/help/HelpLinker.cxx b/l10ntools/source/help/HelpLinker.cxx
index b75499126dd3..bf237c0e8ca8 100644
--- a/l10ntools/source/help/HelpLinker.cxx
+++ b/l10ntools/source/help/HelpLinker.cxx
@@ -483,22 +483,10 @@ void HelpLinker::link() throw( HelpProcessingException )
if ( (!bExtensionMode || bIndexForExtension) && !helpFiles.empty())
initIndexerPreProcessor();
- if( !bExtensionMode )
- {
- std::cout << "Making " << outputFile.native_file_string() <<
- " from " << helpFiles.size() << " input files" << std::endl;
- }
-
// here we start our loop over the hzip files.
HashSet::iterator end = helpFiles.end();
for (HashSet::iterator iter = helpFiles.begin(); iter != end; ++iter)
{
- if( !bExtensionMode )
- {
- std::cout << ".";
- std::cout.flush();
- }
-
// process one file
// streamTable contains the streams in the hzip file
StreamTable streamTable;
@@ -671,8 +659,6 @@ void HelpLinker::link() throw( HelpProcessingException )
}
} // while loop over hzip files ending
- if( !bExtensionMode )
- std::cout << std::endl;
} // try
catch( const HelpProcessingException& )
@@ -1040,7 +1026,6 @@ void HelpLinker::main( std::vector<std::string> &args,
int main(int argc, char**argv)
{
- sal_uInt32 starttime = osl_getGlobalTimer();
std::vector<std::string> args;
for (int i = 1; i < argc; ++i)
args.push_back(std::string(argv[i]));
@@ -1055,8 +1040,6 @@ int main(int argc, char**argv)
std::cerr << e.m_aErrorMsg;
exit(1);
}
- sal_uInt32 endtime = osl_getGlobalTimer();
- std::cout << "time taken was " << (endtime-starttime)/1000.0 << " seconds" << std::endl;
return 0;
}
diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx
index d8c9ed1b0ba6..829bd76627a3 100644
--- a/l10ntools/source/xmlparse.cxx
+++ b/l10ntools/source/xmlparse.cxx
@@ -581,13 +581,11 @@ XMLFile& XMLFile::operator=(const XMLFile& obj){
LangHashMap* newelem = new LangHashMap();
for(LangHashMap::iterator pos2=elem->begin(); pos2!=elem->end();++pos2){
(*newelem)[ pos2->first ] = new XMLElement( *pos2->second );
- printf("*");
}
(*XMLStrings)[ pos->first ] = newelem;
}
}
}
- printf("done!\n");
return *this;
}