mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-21 14:35:21 -04:00
automatically be expanded to include useful information about the checkin (including the file's revision number). With the switch over to SVN this was lost because SVN only does this expansion if you explicitly ask for it (for every single file). I have added a script to the contrib directory that sets the appropriate property to get SVN to do this expansion. This script will make it easy to do this every time new source files are added. It is called svn_expand_Id, the script contains some comments that explain the issue and how it addresses this. This checkin sets this property for a subset of the relevant files (trying to commit all files at once failed with svn crashing). In future the script will only affect those files for which the property was not set before.
23 lines
714 B
Java
23 lines
714 B
Java
// $Id$
|
|
|
|
public class whichjava implements Runnable {
|
|
public static void main(String[] args){
|
|
System.out.println("The Java Version in your path is " + System.getProperty("java.version"));
|
|
if (System.getProperty("java.version").indexOf("1.1")>=0){
|
|
// System.out.println(" should be zero status" + System.getProperty("java.version").substring(0,3));
|
|
System.exit((int)0);
|
|
} else {
|
|
// System.out.println(" should be nonzero status " + System.getProperty("java.version").substring(0,3));
|
|
System.out.println (" This code requires Java 1.1 or greater");
|
|
System.exit((int)1);
|
|
};
|
|
}
|
|
|
|
public void init(){};
|
|
|
|
public void start(){};
|
|
|
|
public void run(){};
|
|
|
|
}
|
|
|