2006/unicorn/src/org/w3c/unicorn/tests UnicornClient.java,1.3,1.4

Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/tests
In directory hutz:/tmp/cvs-serv4610/src/org/w3c/unicorn/tests

Modified Files:
	UnicornClient.java 
Log Message:
Fixed MimeType issue with file upload (guessContentFromName() couldn't find the mimetype of a .css file)
Also fixed command line client

Index: UnicornClient.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/tests/UnicornClient.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- UnicornClient.java	1 Sep 2009 16:00:24 -0000	1.3
+++ UnicornClient.java	4 Sep 2009 15:49:48 -0000	1.4
@@ -7,8 +7,10 @@
 import java.util.LinkedHashMap;
 import java.util.Map;
 
+import org.w3c.unicorn.Framework;
 import org.w3c.unicorn.UnicornCall;
 import org.w3c.unicorn.contract.EnumInputMethod;
+import org.w3c.unicorn.exceptions.InitializationFailedException;
 import org.w3c.unicorn.output.OutputFactory;
 import org.w3c.unicorn.output.OutputFormater;
 import org.w3c.unicorn.output.OutputModule;
@@ -62,7 +64,9 @@
 			if (args.length > 4) { // this argument is optional
 				pParams = args[4];
 			}
-
+			
+			Framework.init();
+			
 			UnicornCall aUnicornCall = new UnicornCall();
 
 			// parse other parameters: "x2=on,toto=titi" to a
@@ -95,8 +99,7 @@
 
 					// read content in the file pInput[2], example:
 					// pInput[2]=base.css alors content=".h1{color:#FA0012}";
-					BufferedReader bfr = new BufferedReader(new FileReader(
-							pInput[2]));
+					BufferedReader bfr = new BufferedReader(new FileReader(pInput[2]));
 					String content = "";
 					String line;
 					while ((line = bfr.readLine()) != null) {

Received on Friday, 4 September 2009 15:50:00 UTC