Make Webclient compile and run on GNU/Linux with Mozilla 1.0.1.

Continue migration to ant.

Start out some JUnit tests.


git-svn-id: svn://10.0.0.236/trunk@130858 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
2002-10-01 00:39:31 +00:00
parent 82affdbd0d
commit ca91238f57
31 changed files with 2598 additions and 110 deletions

View File

@@ -472,8 +472,9 @@ void DoMozInitialization(WebShellInitContext * initContext)
nsILocalFile * pathFile = nsnull;
nsresult rv = nsnull;
JNIEnv * env = initContext->env;
const char * BinDir = gBinDir;
nsAutoString BinDir;
BinDir.AssignWithConversion(gBinDir);
rv = NS_NewLocalFile(BinDir, PR_TRUE, &pathFile);
if (NS_FAILED(rv)) {
::util_ThrowExceptionToJava(env, "call to NS_NewLocalFile failed.");
@@ -488,7 +489,6 @@ void DoMozInitialization(WebShellInitContext * initContext)
::util_ThrowExceptionToJava(env, "NS_GetGlobalComponentManager() failed.");
return;
}
prLogModuleInfo = PR_NewLogModule("webclient");
const char *webclientLogFile = PR_GetEnv("WEBCLIENT_LOG_FILE");
if (nsnull != webclientLogFile) {
PR_SetLogFile(webclientLogFile);