/[gcjwebplugin]/gcjwebplugin/src/gnu/gcjwebplugin/StandaloneAppletViewer.java
ViewVC logotype

Diff of /gcjwebplugin/src/gnu/gcjwebplugin/StandaloneAppletViewer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by mkoch, Tue Jun 29 19:09:22 2004 UTC revision 1.9 by fitzsim, Wed May 25 00:13:00 2005 UTC
# Line 72  class StandaloneAppletViewer extends App Line 72  class StandaloneAppletViewer extends App
72        {        {
73          for (int i = firstNonOptIndex; i < args.length; i++)          for (int i = firstNonOptIndex; i < args.length; i++)
74            {            {
             // If this argument doesn't end in a file separator and there  
             // is no dot between the last file separator and the end of  
             // the string, then assume we're dealing with a class file and  
             // append the .class extension.  
             String basename =  
               args[i].substring(args[i].lastIndexOf(File.separatorChar) + 1,  
                                 args[i].length());  
   
             if (! basename.equals("") && basename.lastIndexOf('.') < 0)  
               args[i] = args[i] + ".class";  
   
75              if (args[i].endsWith(".class"))              if (args[i].endsWith(".class"))
76                {                {
77                  classFileGiven = true;                  classFileGiven = true;

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26