[Jsmooth-cvs] jsmooth/skeletons/simplewrap main.cpp,1.25,1.26
Status: Beta
Brought to you by:
reyes
From: Rodrigo R. <re...@us...> - 2007-04-28 08:51:28
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/simplewrap In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv19089 Modified Files: main.cpp Log Message: Changed the command line arguments for the ResourceManager refactoring Index: main.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/simplewrap/main.cpp,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** main.cpp 4 Apr 2007 19:47:09 -0000 1.25 --- main.cpp 28 Apr 2007 08:51:24 -0000 1.26 *************** *** 58,63 **** atexit(lastExit); - DEBUGCONSOLE = new DebugConsole("JSmooth Debug"); - globalResMan = new ResourceManager("JAVA", PROPID, JARID); --- 58,61 ---- *************** *** 66,79 **** if ((lpszArgument!=NULL) && (strlen(lpszArgument)>0)) { - DEBUG(string("Setting arguments: ") + lpszArgument); - // std::vector<std::string> args = StringUtils::split(lpszArgument, " \t\n\r", "\"'", true); - // globalResMan->setUserArguments( args ); - std::vector<std::string> args = StringUtils::split(lpszArgument, " \t\n\r", "\"'", false); - for (int i=0; i<args.size(); i++) - args[i] = StringUtils::fixArgumentString(args[i]); globalResMan->setUserArguments( args ); } std::string dodebug = globalResMan->getProperty("skel_Debug"); if ((StringUtils::parseInt(dodebug) != 0) && (DEBUGCONSOLE==0)) --- 64,72 ---- if ((lpszArgument!=NULL) && (strlen(lpszArgument)>0)) { std::vector<std::string> args = StringUtils::split(lpszArgument, " \t\n\r", "\"'", false); globalResMan->setUserArguments( args ); } + std::string dodebug = globalResMan->getProperty("skel_Debug"); if ((StringUtils::parseInt(dodebug) != 0) && (DEBUGCONSOLE==0)) *************** *** 82,85 **** --- 75,79 ---- } + if (DEBUGCONSOLE!=0) globalResMan->printDebug(); |