Package net.bnubot.util

Examples of net.bnubot.util.SortedProperties.store()


        }
      }

      VER = new VersionNumber(RELEASE_TYPE, VER_MAJOR, VER_MINOR, VER_REVISION, VER_RELEASE, VER_SVN_REVISION, BUILD_DATE);
      if(!fromJar)
        versionprops.store(new FileOutputStream(f), VER.toString());
      return VER;
    } catch(Exception e) {
      Out.exception(e);
      throw new IllegalStateException(e.getMessage(), e);
    }
View Full Code Here


      versionprops.setProperty(sVerRelease, vnCurrent.getRelease().toString());
      versionprops.setProperty(sVerSVNRevision, vnCurrent.getSvnRevision().toString());
      versionprops.setProperty(sBuildDate, Long.toString(vnCurrent.getBuildDate().getTime()));

      File file = new File("src/net/bnubot/version.properties");
      versionprops.store(new FileOutputStream(file), VER.toString());
    } catch (Exception e) {
      Out.exception(e);
      throw new IllegalStateException(e.getMessage(), e);
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.