protected String appendClasspath ( String commandLine , boolean unix ) { String pathSeperator ; String seperator ; if ( unix ) { pathSeperator = "/" ; seperator = ":" ; } else { pathSeperator = "\\" ; seperator = ";" ; } for ( Iterator i = classpathElements . iterator ( ) ; i . hasNext ( ) ; ) { String cpPath = ( String ) i . next ( ) ; cpPath = cpPath . replace ( "/" , pathSeperator ) ; commandLine += cpPath + ( i . hasNext ( ) ? seperator : "" ) ; } return commandLine ; }
Appends the classpath onto the command line .