Changeset 2278 for trunk


Ignore:
Timestamp:
2001-04-04T15:01:52+12:00 (23 years ago)
Author:
say1
Message:

changed JAVACOPTIONS. log files now written to home directory. error catching in CSModel. ChangeLog.

Location:
trunk/java-client
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-client/ChangeLog

    r2277 r2278  
     12001-04-04 11:29  say1
     2
     3    * ChangeLog, org/nzdl/gsdl/util/NzdlConstants.java,
     4    org/nzdl/gsdl/util/NzdlPreferences.java,
     5    org/nzdl/gsdl/util/NzdlServiceFactory.java: fixed properties
     6    problem. saving IORs and properties in the users home directory.
     7    ChangeLog
     8
    192001-04-03 22:29  daven
    210
  • trunk/java-client/org/nzdl/gsdl/Makefile

    r2269 r2278  
    2626JAVAC=javac
    2727
    28 JAVACOPTIONS= -g:lines
     28#JAVACOPTIONS= -g:lines
    2929#JAVACOPTIONS= -g:none -O
    3030
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/CSModel.java

    r2262 r2278  
    166166            String longCollectionName = "";
    167167            Set n = nzdl.getMetaData(collectionName, "collection", "collectionname");
    168             if (n.size() == 1)
    169                 longCollectionName = (String) n.toArray()[0];
    170             else
    171                 longCollectionName = collectionName + " has more than 1 collectionname";
    172             collectionNameMap.put(collectionName,longCollectionName );
    173             System.err.println("Adding " + collectionName + " to collection list...");
    174             } // end if
    175             else {
    176             System.err.println("Collection " + collectionName + " getBuildDate() returned 0");
    177             } // end else
     168            if (n != null) {
     169              if (n.size() == 1)
     170            longCollectionName = (String) n.toArray()[0];
     171              else
     172            longCollectionName = collectionName + " has more than 1 collectionname";
     173              collectionNameMap.put(collectionName,longCollectionName );
     174              System.err.println("Adding " + collectionName + " to collection list...");
     175            }
     176          } // end if
     177          else {
     178            System.err.println("Collection " + collectionName + " getBuildDate() returned 0");
     179          } // end else
    178180        } // end while 
    179181        setCurrentCollection(getFirstCollection()); //assume at least one collection
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/Makefile

    r2260 r2278  
    2222JAVAC=javac
    2323
    24 JAVACOPTIONS= -g:lines
     24#JAVACOPTIONS= -g:lines
    2525#JAVACOPTIONS= -g:none -O
    2626
  • trunk/java-client/org/nzdl/gsdl/service/Makefile

    r2178 r2278  
    44#javac options
    55#JAVACOPTIONS= -g:none -O
    6 JAVACOPTIONS= -deprecation -g:lines
     6#JAVACOPTIONS= -deprecation -g:lines
    77
    88#complete compilation
  • trunk/java-client/org/nzdl/gsdl/service/NzdlLogWrapper.java

    r2220 r2278  
    6262      Date date = new Date();
    6363      // the true is append ...
    64       logFile = new FileWriter(logFilename, true);
     64      String dir = System.getProperties().getProperty("user.home");
     65      String sep = System.getProperties().getProperty("file.separator");
     66      logFile = new FileWriter(dir+sep+logFilename, true);
    6567      logFile.write(tag + "Log started at:" + date + " == " +
    6668            date.getTime() + "\n");
  • trunk/java-client/org/nzdl/gsdl/util/Makefile

    r2188 r2278  
    44#javac options
    55#JAVACOPTIONS= -g:none -O
    6 JAVACOPTIONS= -deprecation -g:lines
     6#JAVACOPTIONS= -deprecation -g:lines
    77
    88#complete compilation
Note: See TracChangeset for help on using the changeset viewer.