diff --git a/libpit/project.properties b/libpit/project.properties index 3dea12d..1348ca1 100644 --- a/libpit/project.properties +++ b/libpit/project.properties @@ -1,10 +1,10 @@ -#Sun Feb 21 16:03:56 CST 2010 +#Mon Feb 22 07:08:09 CST 2010 build.dir=build src.dir=src lib.shared.dir=../shared-libs test.dir=test -build.number=1 -expected.application.version=1.1.3 +build.number=2 +expected.application.version=1.1.4 lib.dir=lib release.dir=release release.jar=pit-${application.version}.jar diff --git a/libpit/release/pit-1.1.3.jar b/libpit/release/pit-1.1.3.jar deleted file mode 100644 index a2d6b71..0000000 Binary files a/libpit/release/pit-1.1.3.jar and /dev/null differ diff --git a/libpit/release/pit-1.1.4.jar b/libpit/release/pit-1.1.4.jar new file mode 100644 index 0000000..8dc6a2a Binary files /dev/null and b/libpit/release/pit-1.1.4.jar differ diff --git a/libpit/src/com/jdbernard/pit/FileIssue.groovy b/libpit/src/com/jdbernard/pit/FileIssue.groovy index 808c41d..df42258 100644 --- a/libpit/src/com/jdbernard/pit/FileIssue.groovy +++ b/libpit/src/com/jdbernard/pit/FileIssue.groovy @@ -11,7 +11,9 @@ public class FileIssue extends Issue { super('REPLACE_ME') def matcher = file.name =~ /(\d{4})([bftc])(\d).*/ - if (!matcher) return null + if (!matcher) + throw new IllegalArgumentException("${file} " + + "is not a valid Issue file.") super.@id = matcher[0][1] super.@category = Category.toCategory(matcher[0][2]) diff --git a/libpit/src/com/jdbernard/pit/FileProject.groovy b/libpit/src/com/jdbernard/pit/FileProject.groovy index 8cf441b..199899d 100644 --- a/libpit/src/com/jdbernard/pit/FileProject.groovy +++ b/libpit/src/com/jdbernard/pit/FileProject.groovy @@ -21,7 +21,8 @@ class FileProject extends Project { // otherwise build and add to list projects[(child.name)] = new FileProject(child) - } else if (child.isFile()) { + } else if (child.isFile() && + FileIssue.isValidFilename(child.name)) { def issue // if exception, then not an issue diff --git a/pit-cli/lib/pit-1.1.3.jar b/pit-cli/lib/pit-1.1.3.jar deleted file mode 100644 index a2d6b71..0000000 Binary files a/pit-cli/lib/pit-1.1.3.jar and /dev/null differ diff --git a/pit-cli/lib/pit-1.1.4.jar b/pit-cli/lib/pit-1.1.4.jar new file mode 100644 index 0000000..8dc6a2a Binary files /dev/null and b/pit-cli/lib/pit-1.1.4.jar differ diff --git a/pit-cli/project.properties b/pit-cli/project.properties index 002b903..a4646d3 100644 --- a/pit-cli/project.properties +++ b/pit-cli/project.properties @@ -1,9 +1,9 @@ -#Sun Feb 21 16:05:16 CST 2010 +#Mon Feb 22 08:26:47 CST 2010 build.dir=build src.dir=src build.jar=pit-cli-${application.version}.${build.number}.jar -build.number=1 -expected.application.version=1.1.3 +build.number=2 +expected.application.version=1.1.4 lib.dir=lib release.dir=release release.jar=pit-cli-${application.version}.jar diff --git a/pit-cli/release/pit-cli-1.1.1.jar b/pit-cli/release/pit-cli-1.1.1.jar deleted file mode 100644 index d457464..0000000 Binary files a/pit-cli/release/pit-cli-1.1.1.jar and /dev/null differ diff --git a/pit-cli/src/com/jdbernard/pit/PersonalIssueTrackerCLI.groovy b/pit-cli/src/com/jdbernard/pit/PersonalIssueTrackerCLI.groovy index 5d878b5..5b117d6 100644 --- a/pit-cli/src/com/jdbernard/pit/PersonalIssueTrackerCLI.groovy +++ b/pit-cli/src/com/jdbernard/pit/PersonalIssueTrackerCLI.groovy @@ -93,7 +93,7 @@ else if (opts.C) { else if (opts.n) { def cat, priority String text = "" - Issue ussie + Issue issue def sin = System.in.newReader() while(true) { @@ -119,14 +119,18 @@ else if (opts.n) { println "Enter issue (use EOF of ^D to end): " try { sin.eachLine { line -> + println ">>${line}" def m = line =~ /(.*)EOF.*/ if (m) { - text << m[0][1] + text += m[0][1] sin.close() - } else text << line + } else text += line } } catch (e) {} + println text + println "------------------------" + issue = issuedb.createNewIssue(category: cat, priority: priority, text: text) println "New issue created: " diff --git a/version.properties b/version.properties index 92d84e4..a70b734 100644 --- a/version.properties +++ b/version.properties @@ -1 +1 @@ -application.version=1.1.3 +application.version=1.1.4