base/run-plugin/src/main/com/thesett/maven/run/ProductionScriptGenMojo.java
protected String appendClasspath(String commandLine, boolean unix)
    {
        String pathSeperator;
        String seperator;
        String classpathDirPrefix;

        if (unix)
        {
            pathSeperator = "/";
            seperator = ":";
            classpathDirPrefix = JAR_DIR_PREFIX_UNIX;
        }
        else
        {
            pathSeperator = "\\";
            seperator = ";";
            classpathDirPrefix = JAR_DIR_PREFIX_WINDOWS;
        }

        for (Iterator i = classpathElements.iterator(); i.hasNext();)
        {
            String cpPath = (String) i.next();

            int lastSlash = cpPath.lastIndexOf("/");
            int lastBackslash = cpPath.lastIndexOf("\\");

            int lastPathSeperator = (lastSlash > lastBackslash) ? lastSlash : lastBackslash;

            if (lastPathSeperator != -1)
            {
                cpPath = cpPath.substring(lastPathSeperator + 1);
            }

            //cpPath = cpPath.replace("/", pathSeperator);

            if (cpPath.endsWith(".jar"))
            {
                commandLine += classpathDirPrefix + pathSeperator + cpPath + seperator;
            }
        }

        commandLine += classpathDirPrefix + pathSeperator + outputJar + ".jar";

        return commandLine;
    }
protected String appendClasspath(String commandLine, boolean unix)
    {
        String pathSeperator;
        String seperator;
        String classpathDirPrefix;

        if (unix)
        {
            pathSeperator = "/";
            seperator = ":";
            classpathDirPrefix = JAR_DIR_PREFIX_UNIX;
        }
        else
        {
            pathSeperator = "\\";
            seperator = ";";
            classpathDirPrefix = JAR_DIR_PREFIX_WINDOWS;
        }

        for (Iterator i = classpathElements.iterator(); i.hasNext();)
        {
            String cpPath = (String) i.next();

            int lastSlash = cpPath.lastIndexOf("/");
            int lastBackslash = cpPath.lastIndexOf("\\");

            int lastPathSeperator = (lastSlash > lastBackslash) ? lastSlash : lastBackslash;

            if (lastPathSeperator != -1)
            {
                cpPath = cpPath.substring(lastPathSeperator + 1);
            }

            //cpPath = cpPath.replace("/", pathSeperator);

            if (cpPath.endsWith(".jar"))
            {
                commandLine += classpathDirPrefix + pathSeperator + cpPath + seperator;
            }
        }

        commandLine += classpathDirPrefix + pathSeperator + outputJar + ".jar";

        return commandLine;
    }
protected String appendClasspath ( String commandLine , boolean unix ) { String pathSeperator ; String seperator ; String classpathDirPrefix ; if ( unix ) { pathSeperator = "/" ; seperator = ":" ; classpathDirPrefix = JAR_DIR_PREFIX_UNIX ; } else { pathSeperator = "\\" ; seperator = ";" ; classpathDirPrefix = JAR_DIR_PREFIX_WINDOWS ; } for ( Iterator i = classpathElements . iterator ( ) ; i . hasNext ( ) ; ) { String cpPath = ( String ) i . next ( ) ; int lastSlash = cpPath . lastIndexOf ( "/" ) ; int lastBackslash = cpPath . lastIndexOf ( "\\" ) ; int lastPathSeperator = ( lastSlash > lastBackslash ) ? lastSlash : lastBackslash ; if ( lastPathSeperator != - 1 ) { cpPath = cpPath . substring ( lastPathSeperator + 1 ) ; } //cpPath = cpPath.replace("/", pathSeperator); if ( cpPath . endsWith ( ".jar" ) ) { commandLine += classpathDirPrefix + pathSeperator + cpPath + seperator ; } } commandLine += classpathDirPrefix + pathSeperator + outputJar + ".jar" ; return commandLine ; }
{@inheritDoc}
{