Commit Graph
27 Commits
Author SHA1 Message Date
Christoph Kutzinski 2e0ed4650b minor optimization 2011-07-26 22:03:26 +02:00
Jerome Lacoste b58044ada6 Unused import 2011-07-23 07:11:06 -07:00
Kohsuke Kawaguchi 599888fec1 [FIXED JENKINS-4525]
I'd like to believe that the original reason was because earlier
versions of XStream that we used early on didn't support the methods
that take InputStream as a parameter.
2011-06-28 22:14:03 -07:00
Kohsuke Kawaguchi 39a9b8fe3c [FIXED JENKINS-8042] Fixed a file handle leak 2011-06-28 19:25:18 -07:00
Kohsuke Kawaguchi 071dd5917f really clean up all the atomic*.xmp 2010-11-22 10:37:31 -08:00
jglick 5b7c857cfd [HUDSON-4941] Log which file had an XML parse error to assist in diagnosis & fix.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24022 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-24 16:36:07 +00:00
kohsuke 720be7d7a1 Merged revisions 23183,23185,23245,23256,23266,23279-23284,23286 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/multiple-update-sources

........
  r23183 | abayer | 2009-10-25 11:53:17 -0700 (Sun, 25 Oct 2009) | 1 line
  
  First chunk of work towards supporting multiple update centers - infrastructure in place for it, and default update center treated as only one of multiple - have to use slightly modified update-center.json though
........
  r23185 | abayer | 2009-10-25 12:25:49 -0700 (Sun, 25 Oct 2009) | 1 line
  
  a number of tweaks - among other things, now works properly with additional update centers defined in hudson.model.UpdateCenter.xml - try using http://andrewbayer.com/images/hello-world/helloWorld-update-center.json as second update center
........
  r23245 | abayer | 2009-10-27 13:45:25 -0700 (Tue, 27 Oct 2009) | 1 line
  
  Modified to support existing default update-center.json
........
  r23256 | kohsuke | 2009-10-27 18:30:15 -0700 (Tue, 27 Oct 2009) | 7 lines
  
  - moved data binding of update-center.json to UpdateSource.
  - moved some of the UpdateSource property into JSON, to improve the user experience when adding an update source.
    the user should just type in one URL, and everything else should happen automatically.
  - it doesn't make sense for UpdateSource to rely on UpdateCenterConfiguration, since behaviors cannot be
    modified per UpdateSource basis. Instead, leaving it in UpdateCenter allows us to maintain backward compatible
    behaviors with the existing custom UpdateCenterConfiguration implementation.
........
  r23266 | kohsuke | 2009-10-27 19:29:24 -0700 (Tue, 27 Oct 2009) | 1 line
  
  serve id inside JSON.
........
  r23279 | kohsuke | 2009-10-28 10:44:00 -0700 (Wed, 28 Oct 2009) | 1 line
  
  Do not special-case "default" ID. Receive hudson.war updates from wherever that provides one.
........
  r23280 | kohsuke | 2009-10-28 10:50:57 -0700 (Wed, 28 Oct 2009) | 1 line
  
  formatting change.
........
  r23281 | kohsuke | 2009-10-28 11:30:40 -0700 (Wed, 28 Oct 2009) | 1 line
  
  typo
........
  r23282 | kohsuke | 2009-10-28 11:45:06 -0700 (Wed, 28 Oct 2009) | 2 lines
  
  - added the UI to remove sites.
  - persistence of UpdateSource happens more automatically now.
........
  r23283 | kohsuke | 2009-10-28 11:50:04 -0700 (Wed, 28 Oct 2009) | 1 line
  
  UpdateSource -> UpdateSite to align terminology with Eclipse.
........
  r23284 | kohsuke | 2009-10-28 11:55:03 -0700 (Wed, 28 Oct 2009) | 5 lines
  
  Actually, for now, just having a programmatic modification to UpdateSite would satisfy the primary use case.
  
  And I'd like to upgrade YUI to a more recent version so that we can use its DataTable for UI. Plus the single update center model encourages the community to bring the code into the Hudson project, which is something we'd like to keep.
  
  So all in all, I'm postponing the UI work.
........
  r23286 | kohsuke | 2009-10-28 13:07:19 -0700 (Wed, 28 Oct 2009) | 1 line
  
  Renaming and bug fixes.
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23326 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 21:27:46 +00:00
kohsuke d3b5cde166 improved the error handling
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21858 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-18 18:09:11 +00:00
mindless 9fed9823f5 Add @Override annotations, remove unused imports,
add some copyright headers, some tab->ws


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21654 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-14 18:08:34 +00:00
kohsuke 1a1d0d74d5 license header clean up
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15081 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-06 20:05:24 +00:00
kohsuke 1a5d0d13ef one more convenience method.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10077 71c3de6d-444a-0410-be80-ed276b4c234a
2008-06-13 17:37:47 +00:00
kohsuke 8e5fe562be getRootDir() isn't avaiable when it's called from the constructor (see #740), so instead make sure XmlFile creates directories.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4327 71c3de6d-444a-0410-be80-ed276b4c234a
2007-08-18 14:16:19 +00:00
kohsuke 2f99ea2605 added a method to read it into a string.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3908 71c3de6d-444a-0410-be80-ed276b4c234a
2007-07-29 17:45:22 +00:00
kohsuke 26fa803ddb added one more convenience method.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3904 71c3de6d-444a-0410-be80-ed276b4c234a
2007-07-29 17:22:32 +00:00
kohsuke 82fe674184 added a method to read XML in the proper encoding.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3902 71c3de6d-444a-0410-be80-ed276b4c234a
2007-07-29 17:20:15 +00:00
kohsuke e334c7b300 2-arg constructor not supported on Tiger.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3901 71c3de6d-444a-0410-be80-ed276b4c234a
2007-07-29 17:20:14 +00:00
kohsuke 471ddaddac formatting changes.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3900 71c3de6d-444a-0410-be80-ed276b4c234a
2007-07-29 17:20:13 +00:00
kohsuke d13fe3cea2 added a method to sniff XML encoding.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3899 71c3de6d-444a-0410-be80-ed276b4c234a
2007-07-29 17:17:26 +00:00
kohsuke 6c7d0ce837 added loggign.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2151 71c3de6d-444a-0410-be80-ed276b4c234a
2007-02-11 00:28:46 +00:00
kohsuke 61a522671a I messed up the branching. So merging the maven2 branch to the trunk. If we need a quick fix release for 1.74, I'll see if I can move this all to a branch again.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1808 71c3de6d-444a-0410-be80-ed276b4c234a
2007-01-20 02:10:59 +00:00
kohsuke 19860fa070 merging remoting-integration branch
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1523 71c3de6d-444a-0410-be80-ed276b4c234a
2006-12-29 19:15:53 +00:00
kohsuke 4cabee9f18 typo fixes.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1396 71c3de6d-444a-0410-be80-ed276b4c234a
2006-12-20 19:20:31 +00:00
jglick 239948d4d4 Some compiler lint.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1236 71c3de6d-444a-0410-be80-ed276b4c234a
2006-11-23 00:30:05 +00:00
kohsuke 7131034de9 added a note about the data structure evolution rule.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1184 71c3de6d-444a-0410-be80-ed276b4c234a
2006-11-19 00:32:03 +00:00
kohsuke 3dd4a1ec8e added a note about the data structure evolution rule.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1183 71c3de6d-444a-0410-be80-ed276b4c234a
2006-11-19 00:31:06 +00:00
kohsuke 6a186623c1 modified the Descriptor persistence scheme.
We used to use Map<String,Object> as a data store for Descriptor, but this requires a lot of boiler plate code to move values in/out from this Map, making the code uglier.
I modified this to just use XStream like the rest of the Hudson, so that the information can be persisted by simply storing them in fields.
Existing Descriptors are enhanced so that they can convert formats from pre-1.62 XML format.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1126 71c3de6d-444a-0410-be80-ed276b4c234a
2006-11-16 14:34:02 +00:00
kohsuke 8a0dc230f4 initial commit for a new layout.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@969 71c3de6d-444a-0410-be80-ed276b4c234a
2006-11-05 21:16:01 +00:00