krysalis-version/src/java/org/krysalis/version/sample FilenameExtractor.java,1.2,1.3 Construction.java,1.5,1.6

[email protected]
Newsgroups gmane.comp.krysalis.sandbox
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/sample
In directory sc8-pr-cvs1:/tmp/cvs-serv20296/src/java/org/krysalis/version/sample

Modified Files:
	FilenameExtractor.java Construction.java 
Log Message:
First stab at replacing Formats with Specifications for "non-Krysalis" formats.
Fixed some bugs via new tests.

Index: FilenameExtractor.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/sample/FilenameExtractor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** FilenameExtractor.java	5 Mar 2003 19:57:02 -0000	1.2
--- FilenameExtractor.java	10 Mar 2003 20:44:17 -0000	1.3
***************
*** 57,60 ****
--- 57,61 ----
  
  import org.krysalis.version.Version;
+ import org.krysalis.version.exception.VersionException;
  import org.krysalis.version.formatting.exception.VersionFormatException;
  import org.krysalis.version.impl.KrysalisVersion;
***************
*** 83,87 ****
      */
      public static Version filenameVersionExtractor(String id, String fileName)
!         throws VersionFormatException {
          Version version = null;
  
--- 84,88 ----
      */
      public static Version filenameVersionExtractor(String id, String fileName)
!         throws VersionFormatException, VersionException {
          Version version = null;
  
***************
*** 105,109 ****
      }
  
!     public static void main(String args[]) throws VersionFormatException {
          String filenames[] = { "foo", "foo.jar", "foo-1.2.jar",
              // Not Supported "foo-1.2.3" for this sample,
--- 106,110 ----
      }
  
!     public static void main(String args[]) throws VersionFormatException, VersionException {
          String filenames[] = { "foo", "foo.jar", "foo-1.2.jar",
              // Not Supported "foo-1.2.3" for this sample,

Index: Construction.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/sample/Construction.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Construction.java	5 Mar 2003 19:57:02 -0000	1.5
--- Construction.java	10 Mar 2003 20:44:17 -0000	1.6
***************
*** 70,74 ****
  public class Construction {
  
!     public static void basicConstruction() throws VersionFormatException {
          String input = "1.2.3";
          KrysalisVersion v1 = new KrysalisVersion("a.b.c", input);
--- 70,74 ----
  public class Construction {
  
!     public static void basicConstruction() throws VersionFormatException, VersionException {
          String input = "1.2.3";
          KrysalisVersion v1 = new KrysalisVersion("a.b.c", input);
***************
*** 80,84 ****
  
      public static void constructFromStrings(String args[])
!         throws VersionFormatException {
  
          ArrayList formats = new ArrayList();
--- 80,84 ----
  
      public static void constructFromStrings(String args[])
!         throws VersionFormatException, VersionException {
  
          ArrayList formats = new ArrayList();




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.