mil.dod.th.ose.sdk/src/mil/dod/th/ose/sdk/those/ProjectProperties.java
private static String locateSdkDirectory()
    {
        final String classpath = System.getProperty("java.class.path");
        final int index = classpath.toLowerCase().indexOf(JAR_NAME);
        final int start = classpath.lastIndexOf(File.pathSeparator, index) + 1;
        File sdkDir;//NOCHECKSTYLE will get assigned in if/else statement
        if (index >= start)
        {
            final String libDirPath = classpath.substring(start, index);
            sdkDir = new File(libDirPath).getParentFile();
        }
        else
        {
            // Can't figure it out so use the current directory as default.
            sdkDir = new File(System.getProperty("user.dir"));
        }

        // ensures paths are correctly interpreted by ant
        return sdkDir.getAbsolutePath().replace('\\', '/');
    }
/**
     * Returns a reference to the sdk directory.
     * 
     * @return {@link File} reference to the sdk directory.
     */
Returns a reference to the sdk directory.

@return  File reference to the sdk directory.
Returns a reference to the sdk directory . @return File reference to the sdk directory .
private static String locateSdkDirectory()
    {
        final String classpath = System.getProperty("java.class.path");
        final int index = classpath.toLowerCase().indexOf(JAR_NAME);
        final int start = classpath.lastIndexOf(File.pathSeparator, index) + 1;
        File sdkDir;
        if (index >= start)
        {
            final String libDirPath = classpath.substring(start, index);
            sdkDir = new File(libDirPath).getParentFile();
        }
        else
        {
            sdkDir = new File(System.getProperty("user.dir"));
        }
        return sdkDir.getAbsolutePath().replace('\\', '/');
    }
private static String locateSdkDirectory ( ) { final String classpath = System . getProperty ( "java.class.path" ) ; final int index = classpath . toLowerCase ( ) . indexOf ( JAR_NAME ) ; final int start = classpath . lastIndexOf ( File . pathSeparator , index ) + 1 ; File sdkDir ; if ( index >= start ) { final String libDirPath = classpath . substring ( start , index ) ; sdkDir = new File ( libDirPath ) . getParentFile ( ) ; } else { sdkDir = new File ( System . getProperty ( "user.dir" ) ) ; } return sdkDir . getAbsolutePath ( ) . replace ( '\\' , '/' ) ; }
Returns a reference to the sdk directory.
Returns a reference to the sdk directory .
//NOCHECKSTYLE will get assigned in if/else statement // Can't figure it out so use the current directory as default. // ensures paths are correctly interpreted by ant