ruper2/src/java/core/org/krysalis/ruper2/util FileHelper.java,NONE,1.1 RuperConstants.java,1.5,1.6

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/util
In directory sc8-pr-cvs1:/tmp/cvs-serv7074/src/java/core/org/krysalis/ruper2/util

Modified Files:
	RuperConstants.java 
Added Files:
	FileHelper.java 
Log Message:
Eclipse plugin start

--- NEW FILE: FileHelper.java ---
/*
 * Created on Oct 13, 2003
  */
package org.krysalis.ruper2.util;

import java.util.StringTokenizer;

/**
 * @author anou_mana
 */
public class FileHelper {

	public static String createURLForPath(String path) {
		StringBuffer url = new StringBuffer(RuperConstants.FILE_PREFIX);
		for (StringTokenizer tokens = new StringTokenizer(path, "\\");
			tokens.hasMoreTokens();
			) {

			url.append(tokens.nextToken());

			if (tokens.hasMoreTokens())
				url.append('/');
		}

		return url.toString();
	}

}

Index: RuperConstants.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/util/RuperConstants.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** RuperConstants.java	9 Oct 2003 16:02:23 -0000	1.5
--- RuperConstants.java	13 Oct 2003 21:14:01 -0000	1.6
***************
*** 17,20 ****
--- 17,21 ----
  
  	public final static String DEFAULT_CONFIG_XML = "ruper.xml";
+ 	public final static String FILE_PREFIX = "file://";
  
  	public final static String STANDARD = "standard";




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.