Commit Graph
98 Commits
Author SHA1 Message Date
Jonathan Bernard d0e968b2b7 New jlp-based documentation for pit-cli. 2012-02-13 12:12:26 -06:00
Jonathan Bernard c0b02ca222 Bugfixes on pit-cli:
* Fixed a bug in the option parsing. When no options (or unknown options) where
  presented it was not properly defaulting.
* Fixed a bug when incorrect options where given. Apache Commons CLI fails
  entirely when it is unable to parse an option. This means we cannot get the
  `--dir` option and we default to the program's working directory. When running
  on Nailgun this is not the desired behavior and can cause pit to look through
  a very deep file heirarchy to find issues.
2012-02-13 10:49:27 -06:00
Jonathan Bernard 85753de955 PIT CLI agenda sorting, FileIssue bug fixed.
* Fixed the bug in FileIssue where it would append a blank line to the body of
  an issue every time it wrote the issue to the file. Fixed by making the
  parser consume a line break before the property section.
* Fixed PIT CLI -D option sorting of issues so that it will sort issues by
  priority, then due date.
2011-12-19 16:25:25 -06:00
Jonathan Bernard 0441f3c510 Added -R option for PIT CLI. 2011-12-19 16:13:15 -06:00
Jonathan Bernard c01eaa0255 Issue tracker: started issue tracking. 2011-12-18 22:57:19 -06:00
Jonathan Bernard ec7c07f81f Bug fix in FileIssue.
* Property changes that changed the filename of the underlying file were
  neglecting to update the internal file pointer to the new file.
2011-12-12 15:56:10 -06:00
Jonathan Bernard 952064d903 Fixed FileIssue formatting and extended properties.
* The extended properties table was using the maxKeyLength for both keys and
  values.
* FileIssue was not persisting the file when extended properties were updated.
2011-12-08 16:01:54 -06:00
Jonathan Bernard 31b9802477 Fixed PIT CLI output when setting extended properties. 2011-12-08 15:37:06 -06:00
Jonathan Bernard ae0d782a5b PIT CLI options -e, -E, --title, --text.
PIT CLI
-------

* Added an option, `-e`, to filter by extended properties and its complement,
  `-E`, to set extended properties. Format of the option argument is
  `<propName>=<propValue>`.
* Added the `--title` and `--text` options to specify the title and text of an
  issue on the command line.
* When a new issue is created or an issue is set to rejected or resolved status
  a timestamp is added as an extended property: `created`, `rejected`, and
  `resolved` are the property names respectively.
2011-12-08 15:02:33 -06:00
Jonathan Bernard 846d1edc74 Filter and FileProject support for extended properties.
* Added support for extended properties to `Filter`. Unlike the basic
  properties, which allow the caller to specify a list of acceptable values, the
  extended properties only supports a map of properties, all of which must be
  available on the issue and match the given value.
* Made `Issue` a concrete class. There was no reason it could not be a concrete
  object. The main difference is that the extending classes all add some sort of
  persistence to the issue, but having an in-memory `Issue` in its most basic
  form can be useful and should be allowed.
* Changed the default priority for new issues from 9 to 5.
* Bug fix on `FileIssue.formatIssue()`. If was not properly returning its
  result leading to failure if no extended properties were given.
* Reworked `FileIssue.formatIssue()` to only print the horizontal rule
  seperating the issue text from the extended properties if there are extended
  properties to print as well.
* Changed the `FileProject.createNewIssue()` to handle extended properties and
  handle the basic properties in a manner more consistent with `Issue`. It is
  now creating an `Issue` object and using the `FileIssue.formatIssue()`
  function to write that to a new issue file, then loading that file back in as
  a `FileIssue`. This cuts down on code duplication and makes it so that the
  options map that `FileProject.createNewIssue()` expects is the same as the
  options to the `Issue` constructor.
2011-12-08 14:38:24 -06:00
Jonathan Bernard fd94f0e41a PIT CLI Options -o (order issues), -D (daily list).
* Added the order issues option (`-o`) to pit-cli. This option allows you to
  specific a sorting criteria for the issues returned. The form of the option is
  `-o <property>,<property>` where the properties can be any properties of the
  issues being sorted. The option supports short one-letter forms of the basic
  properties (id, priority, status, and category).
* Added the daily list mode (activated with the `-D` option). This mode prints
  out the tasks scheduled for today (based on the `scheduled` property, the
  tasks due today (based on he `due` property), the issues which have a reminder
  that is active (based on the `reminder` property), and the remaining open
  issues (those which do not fall in any of the other categories). This mode
  looks through all projects in the given repository and does not do any
  filtering or visual seperation by project.

  The individual sections can be suppressed or singled out by using the
  following options.

    Additive options (if none are given all sections are present).

    * `--dl-scheduled`
    * `--dl-due`
    * `--dl-reminder`
    * `--dl-open`

    Negative options (these suppress a specific section).

    * `--dl-hide-scheduled`
    * `--dl-hide-due`
    * `--dl-hide-reminder`
    * `--dl-hide-open`

  Additive options are useful if you only want one or two sections. Negative
  options are useful if you only want to exclude one or two sections.  It does
  not make sense to use both additive options and negative options, but it is
  allowed.
2011-12-07 18:15:01 -06:00
Jonathan Bernard 6f58a83ad4 Multiple sort criteria to filters, bugfix, and cleanup.
* Fixed a bug in the common build. This bug is fixed in version 1.9, but I am
  patching this bug locally in 1.6 until I have evaluated 1.9 with this project.
* Moved `ExtendedPropertyHelp` to `com.jdbernard.pit` from
  `com.jdbernard.pit.file`.
* Added a number of property types to `ExtendedPropertyHelp`. New additions are:

    * `java.util.Calendar` *object -> string value only*
    * `java.util.Date` *object -> string value only*
    * `java.lang.Long` *this replaces `java.util.Integer`*
    * `java.lang.Float` *object -> string value only*
    * `java.lang.Double`
* Cleaned up the `matches(String)` and `matches(Class)` functions of
  `ExtendedPropertyHelp`
* Modified `Filter` sorter behaviours. The `issueSorter` and `projectSorter`
  fields are now allowed to be either a closure or a list of closures. A single
  closure works as it did before. The list of closures allows the caller to
  specify multiple sort criteria. The individual criteria closures are applied
  in reverse order, so that the first item in the sorter list is the most
  significant criteria. For example, if the caller set the sorter to
  `[{it.category},{it.priority}]` then the issues would be sorted first by
  priority and then sorted again by category, meaning that the resulting data
  would be ordered first by the category of the issue and then by the priority
  for issues that share the same category.
* Modified the methods in `Project` that use `Filter` objects to conform to the
  above behavior regarding sorting. It may be a better idea though to move the
  sort code all into `Filter` so that it is in one place.
* Cleaned up the code in `Status` for matching status based on given symbols or
  partial status names.
2011-12-07 18:01:18 -06:00
Jonathan Bernard 47cf3cf0a4 Updated build to include pit-cli runtime libs. 2011-11-22 14:44:48 -06:00
Jonathan Bernard e00e2e296e Updated and optimized --version option in pit-clit. 2011-11-22 14:39:55 -06:00
Jonathan Bernard f86316c68f Continued implementation of extended attributes.
* Changed the `Issue` constructor to use an attribute map instead of an
  increasingly long parameter list. Of course we lose some control over required
  parameters.
* Added the Joda Time and SLF4J logging libraries.
* Implemented the `FileIssue` constructor for the new `Issue` refactor.
2011-11-05 08:44:47 -05:00
Jonathan Bernard 5ff4665a07 Starting work on extended attributes.
* `Issue` implementation is tentatively complete.
* Started ona direction for implementation with `FileIssue`.
* Revisiting the code for `XmlIssue` to polish it up. The XML code was never
  really finished, but it should be for 3.0.x
2011-11-03 02:39:36 -05:00
Jonathan Bernard faacfd859a Starting version 3.0.x.
* Major differences will be with `Issues`. The structure of issues will not be
  as tied to the original `FileIssue` implementation and will support arbitrary
  attributes.
* Removed 2.6.x files and updated versioning properties.
* Fixed a typo in pit-cli
* Temporarily removed the invocation of pit-swing's build file until I have that
  sorted. It was not working.
2011-11-03 02:36:35 -05:00
Jonathan Bernard 6c36d78b7d Incremental work on XML implementation. 2011-05-27 10:25:57 -05:00
Jonathan Bernard 482330d02a Incremental commit. Reorganizing libpit implementations. Starting XML implementation. 2010-08-28 07:24:05 -05:00
Jonathan Bernard 63d47d8d9c Serious bug-fixing, yo. 2010-08-27 03:07:54 -05:00
Jonathan Bernard 4d77789e78 Added tag pit-swing-2.5.0 for changeset cca45654350d 2010-06-01 08:16:52 -05:00
Jonathan Bernard 957a503bf2 Building pit-swing-2.5.0 2010-06-01 08:16:45 -05:00
Jonathan Bernard 966ebbf36a Added logging support using SLF4J backed by Log4J. 2010-06-01 07:52:45 -05:00
Jonathan Bernard 790d2c2a77 Switched from groovy script config to java.util.Properties based config. 2010-05-30 23:22:10 -05:00
Jonathan Bernard 501bb04b89 Added tag pit-swing-2.4.0 for changeset 3b123cf4b667 2010-05-27 05:13:37 -05:00
Jonathan Bernard 5650034cff Added rst2html code to convert issue text to HTML and display nicely. 2010-05-27 05:13:29 -05:00
Jonathan Bernard 1beb2397e1 Added tag libpit-2.3.1 for changeset 08307fee1714 2010-05-21 14:31:30 -05:00
Jonathan Bernard c281ea30ac Added tag pit-swing-2.3.1 for changeset 1895b6922cc4 2010-05-21 14:30:57 -05:00
Jonathan Bernard a5d01b05d2 pit-swing 2.3.1: switched to using a table for the issue list. 2010-05-21 14:25:21 -05:00
Jonathan Bernard b7670e69f3 Added throws declarations for IOExceptions on Issue setters.
The FileIssue implementation now checks to ensure the success of the setters.
2010-05-19 09:54:18 -05:00
Jonathan Bernard c39061f771 Added initialRepositories configurable option. Upgraded to Griffon 0.3 2010-05-13 17:12:31 -05:00
Jonathan Bernard fceb9878ce Small bugfix 2010-04-24 20:53:25 -05:00
Jonathan Bernard 966c287bce Added tag pit-swing-2.3.0 for changeset 2334b0652d8a 2010-04-24 18:20:37 -05:00
Jonathan Bernard cb0766d4fd Added tag libpit-2.3.0 for changeset ce2f3d84509f 2010-04-24 18:20:30 -05:00
Jonathan Bernard cd7f14cb2d Added FlatProjectView. Used it to create an 'All Issues' project in pit-swing.
Solves issue #11: pit-swing: Add a default, "all-projects" view.
2010-04-24 18:10:19 -05:00
Jonathan Bernard f2f470ff2a Issue tracking for this project has moved to the BitBucket issue tracker.
Project URL is: http://bitbucket.org/jdbernard/personal-issue-tracker/
2010-04-20 21:25:31 -05:00
Jonathan Bernard 33281f2a10 Added tag pit-swing-2.2.0 for changeset d938576f5ac8 2010-04-20 14:02:34 -05:00
Jonathan Bernard 740f6360d5 Added tag lib-pit-2.2.0 for changeset 6d59ecc48460 2010-04-20 14:02:29 -05:00
Jonathan Bernard e65e2bbe47 Resolves issues 0013, 0022, and 0019.
0013: Hide a new issue after a delay if does not match the viewing criteria.
0022: New 'Bugs' created are not correctly categorized.
0019: Add the ability to change the Issue text size.
2010-04-20 14:02:08 -05:00
Jonathan Bernard 591fb91d17 Trying to add FEST-Swing tests. 2010-03-23 07:53:29 -05:00
Jonathan Bernard ec690f8a98 Split pit-swing into multiple MVC components. Added the ability to open
multiple issue repos simultaneously.

Seperated the main split pane into its own MVC.
Seperated out the new issue dialog into its own MVC

Need to write testing code.
2010-03-09 10:17:26 -06:00
Jonathan Bernard fcec66de70 Still updating pit-swing. 2010-03-09 00:28:26 -06:00
Jonathan Bernard cd8cdf02a4 In the middle of updating pit-swing. 2010-03-08 21:33:49 -06:00
Jonathan Bernard a3f9f4b291 Restructered pit-swing to better follow MVC paradigm.
Adding extensibility features for pit-swing.
2010-03-02 11:59:33 -06:00
Jonathan Bernard d77f04f12e Created splash image (now just have to get it to work).
Also added some issues for pit-swing
2010-03-01 15:58:03 -06:00
Jonathan Bernard 6fcab47fe9 Added tag pit-swing-2.1.0 for changeset 80b2a9cfc033 2010-02-27 04:22:59 -06:00
Jonathan Bernard d4a6ebc412 pit-swing 2.1.0
* Added sorting
* added gutter around GUI elements
2010-02-27 04:22:53 -06:00
Jonathan Bernard 7a4b030a4d Added tag pit-cli-2.1.0 for changeset 3c915e92028c 2010-02-27 03:07:15 -06:00
Jonathan Bernard 5bed487225 pit-cli 2.1.0 2010-02-27 03:07:09 -06:00
Jonathan Bernard cc4ac844ca Added tag libpit-2.1.0 for changeset c5af33d99cdf 2010-02-27 03:06:41 -06:00
Jonathan Bernard 85bd269c55 Release 2.1.0
libpit:
* hidden directories are ignored

pit-swing:
* added new/delete project/issue buttons
* added word wrap
* changed default issue status to NEW
2010-02-27 03:06:35 -06:00
Jonathan Bernard 3208be8e04 Added tag pit-swing-2.0.1 for changeset f6728463e91b 2010-02-26 13:22:35 -06:00
Jonathan Bernard c2f2ddcd6c Added tag pit-cli-2.0.1 for changeset 2cb3e62720ce 2010-02-26 13:22:29 -06:00
Jonathan Bernard b8aedd1f43 Tagged libpit-2.0.1 2010-02-26 13:22:20 -06:00
Jonathan Bernard 4179b993f4 HG corrupted local copy, lost 22 changesets 2010-02-26 13:21:24 -06:00
Jonathan Bernard 39d98f7dde Added tag pit-swing-1.1.8 for changeset bc7b992a6c26 2010-02-25 19:38:45 -06:00
Jonathan Bernard f408de8750 Added tag pit-cli-1.1.8 for changeset 4a803746565c 2010-02-25 19:38:16 -06:00
Jonathan Bernard 8f48a85dd9 Release for pit-cli-1.1.8 2010-02-25 19:38:08 -06:00
Jonathan Bernard 3975971cab Added tag libpit-1.1.8 for changeset 82601809667a 2010-02-25 19:29:41 -06:00
Jonathan Bernard 7263cd1521 Building 1.1.8 2010-02-25 19:29:35 -06:00
Jonathan Bernard 0d8be72c71 Adding 'Create Issue...' dialog. 2010-02-25 07:52:18 -06:00
Jonathan Bernard 9202d42d38 Added tag pit-cli-1.1.6 for changeset f4847c6896f1 2010-02-24 08:41:48 -06:00
Jonathan Bernard eb88f8b871 Rebuilt pit-cli for 1.1.6 2010-02-24 08:41:42 -06:00
Jonathan Bernard 0a6656d769 Added tag libpit-1.1.6 for changeset 725f7242d421 2010-02-24 08:39:31 -06:00
Jonathan Bernard 177b14c785 Updated global build. 2010-02-24 08:39:23 -06:00
Jonathan Bernard df8edca3fb Fixed typo 2010-02-24 08:33:38 -06:00
Jonathan Bernard 7a4f21c3f4 Began main project build file. 2010-02-24 08:32:27 -06:00
Jonathan Bernard 978f1f0d3e Fixed FileProject.delete() bug. Preparing for libpit 1.1.6 2010-02-24 07:58:37 -06:00
Jonathan Bernard 240329aaef Added tag libpit-1.1.5 for changeset d396e6068261 2010-02-24 03:05:49 -06:00
Jonathan Bernard 60109087e5 Small enhancements to libpit to facilitate pit-swing.
Added delete() and createNewProject(String) to Project class.
Added nicer toString() method to Category enum.
2010-02-24 03:05:37 -06:00
Jonathan Bernard 45516a5cd9 Began work on pit-swing. 2010-02-23 21:01:55 -06:00
Jonathan Bernard c601910557 Beginning work on pit-swing 2010-02-22 11:50:42 -06:00
Jonathan Bernard b5009af2b5 Added tag pit-cli-1.1.4 for changeset 34ea30ccab1a 2010-02-22 10:20:59 -06:00
Jonathan Bernard 5303467175 Updated CLI to 1.1.4 2010-02-22 10:20:52 -06:00
Jonathan Bernard 72ee16ef57 Added tag libpit-1.1.4 for changeset 0c2c23a25049 2010-02-22 08:37:59 -06:00
Jonathan Bernard d8eae1b405 Fixed bug in FileIssue constructor 2010-02-22 08:37:41 -06:00
Jonathan Bernard 9a06c7f2ef Added tag libpit-1.1.3 for changeset 33ae45f7b959 2010-02-21 16:09:20 -06:00
Jonathan Bernard d642be27e8 Bugfix in defaultSorters for Filter 2010-02-21 16:09:13 -06:00
Jonathan Bernard 8ffd3ccdf3 Added tag libpit-1.1.2 for changeset 372972f30a60 2010-02-21 15:43:34 -06:00
Jonathan Bernard ce35e14694 Fixed ugly inheritance issue with Issue and FileIssue.
Added Filter unit tests.
2010-02-21 15:43:24 -06:00
Jonathan Bernard 7ff8806544 Refactored Issues/Projects in to abstract classes with further implementations.
ALl tests passing. Ran into some frustrationg aspects of Groovy
2010-02-20 22:31:33 -06:00
Jonathan Bernard fe6ce85a73 Embellishing editing environment. Added CategoryTest 2010-02-20 11:00:07 -06:00
Jonathan Bernard 1e5ebe89bf Awaiting testing before releasing 1.1.2 2010-02-18 20:45:20 -06:00
Jonathan Bernard 9c2898729f Added tag libpit-1.1.1 for changeset a95dfd74ede1 2010-02-18 11:25:25 -06:00
Jonathan Bernard b6b190e480 Bugfix for 1.1.0 2010-02-18 11:24:22 -06:00
Jonathan Bernard d596bea075 Added tag libpit-1.1.0 for changeset a103971959d2 2010-02-18 11:02:26 -06:00
Jonathan Bernard 4035f366f3 Finished libpit 1.1.0. Added change operations (priority, category, etc)
Began unit testing of libpit.
Made most of the changes to pit-cli needed to incorporate the new libpit
features.
2010-02-18 11:02:20 -06:00
Jonathan Bernard cfed10c3ed Implemented category and priority setters in libpit. Started writing unit tests. 2010-02-16 09:15:33 -06:00
Jonathan Bernard c103591941 Added tag pit-cli-1.0.0 for changeset 3f69b0e165e6 2010-02-15 15:46:48 -06:00
Jonathan Bernard b0f143713f Added support for versioning to pit-cli build process. 2010-02-15 11:06:28 -06:00
Jonathan Bernard 52816b3d3c Added tag libpit-1.0.0 for changeset f6b799d2acba 2010-02-13 21:31:13 -06:00
Jonathan Bernard bb56b706f8 Finished 1.0.0 of libpit. Other housekeeping performed as well.
Moved issue for the PIT project to top-level.
Created top-level versioning properties and project properties for pit-cli
2010-02-13 21:30:31 -06:00
Jonathan Bernard f3f30237b2 Reorganizing into subprojects.
libpit      - Personal Issue Tracker core libraries (Filter, Issue, Project, Category)
pit-cli     - Command Line Interface (CLI) to libpit
pit-swing   - Graphical, Swing interface to libpit (built using Griffon)

libpit and pit-swing both build, though pit-swing is just an empty griffon poject.
2010-02-13 11:58:00 -06:00
Jonathan Bernard a369b06115 Split into classes. Created build file and formal project. 2010-02-13 06:31:28 -06:00
Jonathan Bernard 75faf9ffc7 Bugfix for issue sorting. Issues sorted by ids as Integers, not Strings 2010-02-12 10:07:51 -06:00
Jonathan Bernard ddc34722c8 Reorganized into classes. Implemented generic filtering. 2010-02-12 10:04:51 -06:00
Jonathan Bernard 249c1b39c4 Adding issues to resolve 2010-02-12 05:29:28 -06:00
Jonathan Bernard bde8d01aae Initial commit 2010-02-12 05:21:08 -06:00